]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Don't regard a manually indented '>' as introducing a citation.
authorCarl Worth <cworth@cworth.org>
Fri, 11 Dec 2009 23:31:10 +0000 (15:31 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 11 Dec 2009 23:54:53 +0000 (15:54 -0800)
In the message mentioned in the previous commit, an ASCII diagram was
included in which '>' was used as the first non-whitespace character
in a line. Notmuch previously (and mistakenly) regarded this as a
citation.

We fix this by only regarding a '>' in the first column of an email as
introducing a citation.

notmuch.el

index 9ec89ca0068ec2126e54d5a18c26300c265348b8..33e434f3ea68dff66a21e81957f066598df97290 100644 (file)
@@ -599,11 +599,13 @@ which this thread was originally shown."
   (while (< (point) end)
     (let ((beg-sub (point-marker))
          (indent (make-string depth ? ))
-         (citation "[[:space:]]*>"))
+         (citation ">"))
+      (move-to-column depth)
       (if (looking-at citation)
          (progn
            (while (looking-at citation)
-             (forward-line))
+             (forward-line)
+             (move-to-column depth))
            (let ((overlay (make-overlay beg-sub (point)))
                   (invis-spec (make-symbol "notmuch-citation-region")))
               (add-to-invisibility-spec invis-spec)