aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-12-24 06:03:20 +0000
committerJim Blandy1992-12-24 06:03:20 +0000
commit76f590d740e5b60c0159ebed682e83bccc8a32c8 (patch)
tree36967119d65aa4c8509e2d6281d8d5eff5bc517f /src
parent307436bb71c08aa008d7fd05c3e8c5dc4505112c (diff)
downloademacs-76f590d740e5b60c0159ebed682e83bccc8a32c8.tar.gz
emacs-76f590d740e5b60c0159ebed682e83bccc8a32c8.zip
* buffer.c (Frename_buffer): Set update_mode_lines.
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 3a318190725..4a78b568176 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -535,6 +535,11 @@ This does not change the name of the visited file (if any).")
535 } 535 }
536 536
537 current_buffer->name = name; 537 current_buffer->name = name;
538
539 /* Catch redisplay's attention. Unless we do this, the mode lines for
540 any windows displaying current_buffer will stay unchanged. */
541 update_mode_lines++;
542
538 XSET (buf, Lisp_Buffer, current_buffer); 543 XSET (buf, Lisp_Buffer, current_buffer);
539 Fsetcar (Frassq (buf, Vbuffer_alist), name); 544 Fsetcar (Frassq (buf, Vbuffer_alist), name);
540 if (NILP (current_buffer->filename) && !NILP (current_buffer->auto_save_file_name)) 545 if (NILP (current_buffer->filename) && !NILP (current_buffer->auto_save_file_name))