diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2011-02-02 10:53:20 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2011-02-02 10:53:20 -0500 |
commit | 12df40f07f029c47f70a632356c3042b14142b46 (patch) | |
tree | 731a86e443254c144cc4692dfc2feb60a4b495a8 | |
parent | 301ea744c40db57a7bb9eb1ff29d367f3626dff7 (diff) | |
download | emacs-12df40f07f029c47f70a632356c3042b14142b46.tar.gz |
* src/editfns.c (save_restriction_restore): Don't forget to invalidate the
current_column cache.
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/editfns.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 95c702fecd3..8ef209aba2c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-02-02 Stefan Monnier <monnier@iro.umontreal.ca> + + * editfns.c (save_restriction_restore): Don't forget to invalidate the + current_column cache (bug#7946). + 2011-02-02 Kenichi Handa <handa@m17n.org> * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined. diff --git a/src/editfns.c b/src/editfns.c index e8c1aef3503..fe5b039625f 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3347,6 +3347,9 @@ save_restriction_restore (data) } } + /* Changing the buffer bounds invalidates any recorded current column. */ + invalidate_current_column (); + if (cur) set_buffer_internal (cur); |