]> git.notmuchmail.org Git - notmuch/commit
emacs: Avoid infinite loop when marking up citations.
authorCarl Worth <cworth@cworth.org>
Fri, 11 Dec 2009 23:25:55 +0000 (15:25 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 11 Dec 2009 23:54:45 +0000 (15:54 -0800)
commit8d2f19b896af55d256f970d71727e621255a58cb
tree1db9a811110837b93df351f7ca807535ab79a0e6
parent0d340415c942a87cb29f6507979266751020109a
emacs: Avoid infinite loop when marking up citations.

Thanks to Dirk Hohndel for reporting the bug. The infinite loop was first
noticed in the following message (available from the Linux kernel mailing list):

alpine.LFD.2.00.0912081304070.3560@localhost.localdomain

Note that the bug does not show up when viewing the message in
isolation---the bug was triggered only when viewing this file indented
to a depth of at least 13.

The fix is simply to use a marker rather than an integer position when
recording a point we plan to move back to later, (since inserting the
indented button causes the buffer position of the desired marker to
change).
notmuch.el