aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-12-04 18:27:06 +0000
committerEli Zaretskii2001-12-04 18:27:06 +0000
commit02c6a1ccf0e98cf71c1b647750c04a2b42025ff9 (patch)
treefa425bf8cabe63cca0499981ba9f023cbf83b0bb
parent273a39301b3938e98c9007c4ede317852c83a0e9 (diff)
downloademacs-02c6a1ccf0e98cf71c1b647750c04a2b42025ff9.tar.gz
emacs-02c6a1ccf0e98cf71c1b647750c04a2b42025ff9.zip
(save-abbrevs, save-some-buffers): Don't ask the user
before saving abbrevs if `save-abbrevs' has the value `silently'.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/files.el6
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8f4bccc8480..e20bdca5859 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-12-04 Juanma Barranquero <lektu@terra.es>
2
3 * files.el (save-abbrevs, save-some-buffers): Don't ask the user
4 before saving abbrevs if `save-abbrevs' has the value `silently'.
5
12001-12-04 Andreas Schwab <schwab@suse.de> 62001-12-04 Andreas Schwab <schwab@suse.de>
2 7
3 * xt-mouse.el (turn-off-xterm-mouse-tracking): Doc fix. 8 * xt-mouse.el (turn-off-xterm-mouse-tracking): Doc fix.
diff --git a/lisp/files.el b/lisp/files.el
index 20bd88fc34b..2c03d0fcadf 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -312,8 +312,9 @@ editing a remote file."
312 :version "21.1") 312 :version "21.1")
313 313
314(defcustom save-abbrevs t 314(defcustom save-abbrevs t
315 "*Non-nil means save word abbrevs too when files are saved." 315 "*Non-nil means save word abbrevs too when files are saved.
316 :type 'boolean 316If `silently', don't ask the user before saving."
317 :type '(choice (const t) (const nil) (const silently))
317 :group 'abbrev) 318 :group 'abbrev)
318 319
319(defcustom find-file-run-dired t 320(defcustom find-file-run-dired t
@@ -2804,6 +2805,7 @@ to consider it or not when called with that buffer current."
2804 (and save-abbrevs abbrevs-changed 2805 (and save-abbrevs abbrevs-changed
2805 (progn 2806 (progn
2806 (if (or arg 2807 (if (or arg
2808 (eq save-abbrevs 'silently)
2807 (y-or-n-p (format "Save abbrevs in %s? " 2809 (y-or-n-p (format "Save abbrevs in %s? "
2808 abbrev-file-name))) 2810 abbrev-file-name)))
2809 (write-abbrev-file nil)) 2811 (write-abbrev-file nil))