mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-03-14 03:25:15 +01:00
emacs: Don't regard a manually indented '>' as introducing a citation.
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.
This commit is contained in:
parent
8d2f19b896
commit
2e3d07b8d5
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue