]> git.cworth.org Git - obsolete/notmuch-old/commitdiff
Carefully manage save/restore of point in `notmuch-wash-toggle-invisible-action'.
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Tue, 24 May 2011 23:02:43 +0000 (03:02 +0400)
committerCarl Worth <cworth@cworth.org>
Tue, 24 May 2011 23:33:09 +0000 (16:33 -0700)
Before the change, save-excursion was used to save the point.  But the
marker saved by save-excursion was inside a region that was deleted,
so that approach is unreliable, (leading to point jumping to a new
position past the button). This patch instead saves point in an
integer variable, and when restoring, carefully avoids moving point
past the button, (in case the new button label is shorter than the old
button label).


No differences found