changeset 101850:3d797aaa6494

(save-buffer): Display "Saving file FOO..." message regardless of buffer's size. (Bug#2137)
author Eli Zaretskii <eliz@gnu.org>
date Sat, 07 Feb 2009 10:23:45 +0000
parents 0750b250db3d
children ca3a01ea9572
files lisp/files.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Sat Feb 07 05:51:27 2009 +0000
+++ b/lisp/files.el	Sat Feb 07 10:23:45 2009 +0000
@@ -4024,11 +4024,14 @@
 See the subroutine `basic-save-buffer' for more information."
   (interactive "p")
   (let ((modp (buffer-modified-p))
-	(large (> (buffer-size) 50000))
 	(make-backup-files (or (and make-backup-files (not (eq args 0)))
 			       (memq args '(16 64)))))
     (and modp (memq args '(16 64)) (setq buffer-backed-up nil))
-    (if (and modp large (buffer-file-name))
+    ;; We used to display the message below only for files > 50KB, but
+    ;; then Rmail-mbox never displays it due to buffer swapping.  If
+    ;; the test is ever re-introduced, be sure to handle saving of
+    ;; Rmail files.
+    (if (and modp (buffer-file-name))
 	(message "Saving file %s..." (buffer-file-name)))
     (basic-save-buffer)
     (and modp (memq args '(4 64)) (setq buffer-backed-up nil))))