aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2013-11-11 13:05:47 -0500
committerStefan Monnier2013-11-11 13:05:47 -0500
commitecda65d4f7ea34faca40cd188fb5bb095e874092 (patch)
treedfff4cf951a1bb5ba227677295ccd160a598152c /lisp
parent5389db9e7160a85080078a1cf26dbc46ace55c21 (diff)
downloademacs-ecda65d4f7ea34faca40cd188fb5bb095e874092.tar.gz
emacs-ecda65d4f7ea34faca40cd188fb5bb095e874092.zip
* lisp/subr.el (force-mode-line-update): Delete, move to buffer.c.
* src/buffer.c (Frestore_buffer_modified_p): Sync it with Fset_buffer_modified_p. (Fforce_mode_line_update): New function, moved from subr.el. (Fset_buffer_modified_p): Use them. (syms_of_buffer): Defsubr Fforce_mode_line_update.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/subr.el8
2 files changed, 4 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7c4c76eeb12..e12b9252df8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12013-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * subr.el (force-mode-line-update): Delete, move to buffer.c.
4
12013-11-11 Michael Albinus <michael.albinus@gmx.de> 52013-11-11 Michael Albinus <michael.albinus@gmx.de>
2 6
3 * net/tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer) 7 * net/tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer)
diff --git a/lisp/subr.el b/lisp/subr.el
index 6bcbe6b9687..e8d3245ff10 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2382,14 +2382,6 @@ This finishes the change group by reverting all of its changes."
2382(define-obsolete-function-alias 'redraw-modeline 2382(define-obsolete-function-alias 'redraw-modeline
2383 'force-mode-line-update "24.3") 2383 'force-mode-line-update "24.3")
2384 2384
2385(defun force-mode-line-update (&optional all)
2386 "Force redisplay of the current buffer's mode line and header line.
2387With optional non-nil ALL, force redisplay of all mode lines and
2388header lines. This function also forces recomputation of the
2389menu bar menus and the frame title."
2390 (if all (with-current-buffer (other-buffer)))
2391 (set-buffer-modified-p (buffer-modified-p)))
2392
2393(defun momentary-string-display (string pos &optional exit-char message) 2385(defun momentary-string-display (string pos &optional exit-char message)
2394 "Momentarily display STRING in the buffer at POS. 2386 "Momentarily display STRING in the buffer at POS.
2395Display remains until next event is input. 2387Display remains until next event is input.