[notmuch] [PATCH 1/4] emacs: Don't eat last newline character of	citations
    Kan-Ru Chen 
    kanru at kanru.info
       
    Sun Dec 13 21:41:32 PST 2009
    
    
  
In case of a citation following immediately new contents. When the citation
was collapsed:
    [1-line citation. Click/Enter to show.]
Lorem ipsum dolor sit amet, consectetur adipisicin
When it was expanded:
    [10-line citation. Click/Enter to show.]
    >
    Lorem ipsum dolor sit amet, consectetur adipisicin
The indentation was wrong.
Signed-off-by: Kan-Ru Chen <kanru at kanru.info>
---
 notmuch.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/notmuch.el b/notmuch.el
index 97914f2..5823094 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -606,7 +606,8 @@ which this thread was originally shown."
 	    (while (looking-at citation)
 	      (forward-line)
 	      (move-to-column depth))
-	    (let ((overlay (make-overlay beg-sub (point)))
+	    (end-of-line 0)
+	    (let ((overlay (make-overlay beg-sub  (1+ (point-marker))))
                   (invis-spec (make-symbol "notmuch-citation-region")))
               (add-to-invisibility-spec invis-spec)
 	      (overlay-put overlay 'invisible invis-spec)
-- 
1.6.5.5
    
    
More information about the notmuch
mailing list