emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master c1ef2d6 1/2: Tweak text search in gnorb-org-view


From: Eric Abrahamsen
Subject: [elpa] master c1ef2d6 1/2: Tweak text search in gnorb-org-view
Date: Wed, 29 Nov 2017 21:18:51 -0500 (EST)

branch: master
commit c1ef2d643491c32d2a9365ba28f5d731c94456eb
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    Tweak text search in gnorb-org-view
    
    * packages/gnorb/nngnorb.el (nnir-run-gnorb): God knows why, but the
      original location of this clause once or twice gave me an "args out
      of range", possibly due to funky narrowing. Moving it to this spot
      seems bound to avoid an error, and should give the same result.
---
 packages/gnorb/nngnorb.el | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/packages/gnorb/nngnorb.el b/packages/gnorb/nngnorb.el
index f706883..dd6e23e 100644
--- a/packages/gnorb/nngnorb.el
+++ b/packages/gnorb/nngnorb.el
@@ -87,13 +87,12 @@ be scanned for gnus messages, and those messages displayed."
       (cond ((string-match "id\\+\\([[:alnum:]-]+\\)$" q)
             (with-demoted-errors "Error: %S"
               (org-id-goto (match-string 1 q))
-              (append-to-buffer
-               buf
-               (point)
-               (org-element-property
-                :end (org-element-at-point)))
               (save-restriction
                 (org-narrow-to-subtree)
+                (append-to-buffer
+                 buf
+                 (point-min)
+                 (point-max))
                 (setq org-ids
                       (append
                        (gnorb-collect-ids)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]