Mercurial > emacs
comparison lisp/files.el @ 41817:ce19ab149767
(save-abbrevs, save-some-buffers): Don't ask the user
before saving abbrevs if `save-abbrevs' has the value `silently'.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Tue, 04 Dec 2001 18:25:57 +0000 |
parents | 570eb21cf9d8 |
children | faa66f17e91f |
comparison
equal
deleted
inserted
replaced
41816:51c83c94195a | 41817:ce19ab149767 |
---|---|
310 :group 'auto-save | 310 :group 'auto-save |
311 :type '(repeat (list (string :tag "Regexp") (string :tag "Replacement"))) | 311 :type '(repeat (list (string :tag "Regexp") (string :tag "Replacement"))) |
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 | 316 If `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 |
320 "*Non-nil means allow `find-file' to visit directories. | 321 "*Non-nil means allow `find-file' to visit directories. |
321 To visit the directory, `find-file' runs `find-directory-functions'." | 322 To visit the directory, `find-file' runs `find-directory-functions'." |
2802 "display the current buffer")))) | 2803 "display the current buffer")))) |
2803 (abbrevs-done | 2804 (abbrevs-done |
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)) |
2810 ;; Don't keep bothering user if he says no. | 2812 ;; Don't keep bothering user if he says no. |
2811 (setq abbrevs-changed nil) | 2813 (setq abbrevs-changed nil) |