aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMichael Albinus2015-08-26 10:33:29 +0200
committerMichael Albinus2015-08-26 10:33:29 +0200
commit920a0adab326aeb02981f2dcd41b215259544798 (patch)
treedc6c8a42ad5770ecb168aa95c038667a95fab887 /lisp
parent4a18d16e511ba0ef203d8addc8836618956667b0 (diff)
parent4786618fe7240e613434f30b9362826fab566b46 (diff)
downloademacs-920a0adab326aeb02981f2dcd41b215259544798.tar.gz
emacs-920a0adab326aeb02981f2dcd41b215259544798.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'lisp')
-rw-r--r--lisp/allout.el5
-rw-r--r--lisp/apropos.el9
-rw-r--r--lisp/cus-edit.el4
-rw-r--r--lisp/descr-text.el3
-rw-r--r--lisp/dired-aux.el20
-rw-r--r--lisp/dired-x.el8
-rw-r--r--lisp/dired.el7
-rw-r--r--lisp/dirtrack.el2
-rw-r--r--lisp/disp-table.el3
-rw-r--r--lisp/find-dired.el3
-rw-r--r--lisp/forms.el10
-rw-r--r--lisp/hexl.el5
-rw-r--r--lisp/ido.el6
-rw-r--r--lisp/info.el10
-rw-r--r--lisp/outline.el4
-rw-r--r--lisp/printing.el8
-rw-r--r--lisp/proced.el4
-rw-r--r--lisp/ps-print.el6
-rw-r--r--lisp/recentf.el5
-rw-r--r--lisp/savehist.el8
-rw-r--r--lisp/server.el3
-rw-r--r--lisp/ses.el6
-rw-r--r--lisp/simple.el5
-rw-r--r--lisp/startup.el5
-rw-r--r--lisp/strokes.el9
-rw-r--r--lisp/wdired.el16
26 files changed, 98 insertions, 76 deletions
diff --git a/lisp/allout.el b/lisp/allout.el
index 9f790871eed..3ba440f4886 100644
--- a/lisp/allout.el
+++ b/lisp/allout.el
@@ -6490,8 +6490,9 @@ not its value."
6490 got) 6490 got)
6491 (dolist (sym configvar-value) 6491 (dolist (sym configvar-value)
6492 (if (not (boundp sym)) 6492 (if (not (boundp sym))
6493 (if (yes-or-no-p (format "%s entry `%s' is unbound -- remove it? " 6493 (if (yes-or-no-p (format-message
6494 configvar-name sym)) 6494 "%s entry `%s' is unbound -- remove it? "
6495 configvar-name sym))
6495 (delq sym (symbol-value configvar-name))) 6496 (delq sym (symbol-value configvar-name)))
6496 (push (symbol-value sym) got))) 6497 (push (symbol-value sym) got)))
6497 (reverse got))) 6498 (reverse got)))
diff --git a/lisp/apropos.el b/lisp/apropos.el
index 38b583c9706..73f86df11e4 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -727,11 +727,10 @@ the output includes key-bindings of commands."
727 (let ((alias (get symbol 'face-alias))) 727 (let ((alias (get symbol 'face-alias)))
728 (if alias 728 (if alias
729 (if (facep alias) 729 (if (facep alias)
730 (format "%slias for the face `%s'." 730 (format-message
731 (if (get symbol 'obsolete-face) 731 "%slias for the face `%s'."
732 "Obsolete a" 732 (if (get symbol 'obsolete-face) "Obsolete a" "A")
733 "A") 733 alias)
734 alias)
735 ;; Never happens in practice because fails 734 ;; Never happens in practice because fails
736 ;; (facep symbol) test. 735 ;; (facep symbol) test.
737 "(alias for undefined face)") 736 "(alias for undefined face)")
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 2b5ada19974..70308334183 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1599,7 +1599,7 @@ This button will have a menu with all three reset operations."
1599 1599
1600(defcustom custom-raised-buttons (not (equal (face-valid-attribute-values :box) 1600(defcustom custom-raised-buttons (not (equal (face-valid-attribute-values :box)
1601 '(("unspecified" . unspecified)))) 1601 '(("unspecified" . unspecified))))
1602 "If non-nil, indicate active buttons in a `raised-button' style. 1602 "If non-nil, indicate active buttons in a raised-button style.
1603Otherwise use brackets." 1603Otherwise use brackets."
1604 :type 'boolean 1604 :type 'boolean
1605 :version "21.1" 1605 :version "21.1"
@@ -1748,7 +1748,7 @@ Operate on all settings in this buffer:\n"))
1748on a button to invoke its action. 1748on a button to invoke its action.
1749Invoke [+] to expand a group, and [-] to collapse an expanded group.\n" 1749Invoke [+] to expand a group, and [-] to collapse an expanded group.\n"
1750 (if custom-raised-buttons 1750 (if custom-raised-buttons
1751 "`Raised' text indicates" 1751 "Raised text indicates"
1752 "Square brackets indicate"))) 1752 "Square brackets indicate")))
1753 1753
1754 1754
diff --git a/lisp/descr-text.el b/lisp/descr-text.el
index 825ab80f211..237cc00a36f 100644
--- a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -799,7 +799,8 @@ relevant to POS."
799 (insert "\n " (car elt) ":" 799 (insert "\n " (car elt) ":"
800 (propertize " " 'display '(space :align-to 4)) 800 (propertize " " 'display '(space :align-to 4))
801 (or (cdr elt) "-- not encodable --")))) 801 (or (cdr elt) "-- not encodable --"))))
802 (insert "\nSee the variable `reference-point-alist' for " 802 (insert (substitute-command-keys
803 "\nSee the variable `reference-point-alist' for ")
803 "the meaning of the rule.\n"))) 804 "the meaning of the rule.\n")))
804 805
805 (unless eight-bit-p 806 (unless eight-bit-p
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index 63ee75f1ff0..a67b11fb6a6 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -686,9 +686,11 @@ can be produced by `dired-get-marked-files', for example."
686 (if (cond ((not (or on-each no-subst)) 686 (if (cond ((not (or on-each no-subst))
687 (error "You can not combine `*' and `?' substitution marks")) 687 (error "You can not combine `*' and `?' substitution marks"))
688 ((and star on-each) 688 ((and star on-each)
689 (y-or-n-p "Confirm--do you mean to use `*' as a wildcard? ")) 689 (y-or-n-p (format-message
690 "Confirm--do you mean to use `*' as a wildcard? ")))
690 ((and qmark no-subst) 691 ((and qmark no-subst)
691 (y-or-n-p "Confirm--do you mean to use `?' as a wildcard? ")) 692 (y-or-n-p (format-message
693 "Confirm--do you mean to use `?' as a wildcard? ")))
692 (t)) 694 (t))
693 (if on-each 695 (if on-each
694 (dired-bunch-files 696 (dired-bunch-files
@@ -1497,7 +1499,7 @@ or with the current marker character if MARKER-CHAR is t."
1497 (let* ((overwrite (file-exists-p to)) 1499 (let* ((overwrite (file-exists-p to))
1498 (dired-overwrite-confirmed ; for dired-handle-overwrite 1500 (dired-overwrite-confirmed ; for dired-handle-overwrite
1499 (and overwrite 1501 (and overwrite
1500 (let ((help-form '(format "\ 1502 (let ((help-form '(format-message "\
1501Type SPC or `y' to overwrite file `%s', 1503Type SPC or `y' to overwrite file `%s',
1502DEL or `n' to skip to next, 1504DEL or `n' to skip to next,
1503ESC or `q' to not overwrite any of the remaining files, 1505ESC or `q' to not overwrite any of the remaining files,
@@ -1878,11 +1880,11 @@ of `dired-dwim-target', which see."
1878 ;; Optional arg MARKER-CHAR as in dired-create-files. 1880 ;; Optional arg MARKER-CHAR as in dired-create-files.
1879 (let* ((fn-list (dired-get-marked-files nil arg)) 1881 (let* ((fn-list (dired-get-marked-files nil arg))
1880 (operation-prompt (concat operation " `%s' to `%s'?")) 1882 (operation-prompt (concat operation " `%s' to `%s'?"))
1881 (rename-regexp-help-form (format "\ 1883 (rename-regexp-help-form (format-message "\
1882Type SPC or `y' to %s one match, DEL or `n' to skip to next, 1884Type SPC or `y' to %s one match, DEL or `n' to skip to next,
1883`!' to %s all remaining matches with no more questions." 1885`!' to %s all remaining matches with no more questions."
1884 (downcase operation) 1886 (downcase operation)
1885 (downcase operation))) 1887 (downcase operation)))
1886 (regexp-name-constructor 1888 (regexp-name-constructor
1887 ;; Function to construct new filename using REGEXP and NEWNAME: 1889 ;; Function to construct new filename using REGEXP and NEWNAME:
1888 (if whole-name ; easy (but rare) case 1890 (if whole-name ; easy (but rare) case
@@ -2003,11 +2005,11 @@ See function `dired-do-rename-regexp' for more info."
2003 (let ((to (concat (file-name-directory from) 2005 (let ((to (concat (file-name-directory from)
2004 (funcall basename-constructor 2006 (funcall basename-constructor
2005 (file-name-nondirectory from))))) 2007 (file-name-nondirectory from)))))
2006 (and (let ((help-form (format "\ 2008 (and (let ((help-form (format-message "\
2007Type SPC or `y' to %s one file, DEL or `n' to skip to next, 2009Type SPC or `y' to %s one file, DEL or `n' to skip to next,
2008`!' to %s all remaining matches with no more questions." 2010`!' to %s all remaining matches with no more questions."
2009 (downcase operation) 2011 (downcase operation)
2010 (downcase operation)))) 2012 (downcase operation))))
2011 (dired-query 'rename-non-directory-query 2013 (dired-query 'rename-non-directory-query
2012 (concat operation " `%s' to `%s'") 2014 (concat operation " `%s' to `%s'")
2013 (dired-make-relative from) 2015 (dired-make-relative from)
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index 4e5da0dd1b5..4903b152fac 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -1353,12 +1353,12 @@ otherwise."
1353 (interactive) 1353 (interactive)
1354 (let ((file (dired-get-filename t))) 1354 (let ((file (dired-get-filename t)))
1355 (if dired-bind-vm 1355 (if dired-bind-vm
1356 (if (y-or-n-p (concat "Visit `" file 1356 (if (y-or-n-p (format-message
1357 "' as a mail folder with VM?")) 1357 "Visit ‘%s’ as a mail folder with VM?" file))
1358 (dired-vm)) 1358 (dired-vm))
1359 ;; Read mail folder using rmail. 1359 ;; Read mail folder using rmail.
1360 (if (y-or-n-p (concat "Visit `" file 1360 (if (y-or-n-p (format-message
1361 "' as a mailbox with RMAIL?")) 1361 "Visit ‘%s’ as a mailbox with RMAIL?" file))
1362 (dired-rmail))))) 1362 (dired-rmail)))))
1363 1363
1364 1364
diff --git a/lisp/dired.el b/lisp/dired.el
index 215906a32d4..6192b0a870e 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -3558,7 +3558,7 @@ Thus, use \\[backward-page] to find the beginning of a group of errors."
3558 (let ((inhibit-read-only t)) 3558 (let ((inhibit-read-only t))
3559 (cond ((stringp log) 3559 (cond ((stringp log)
3560 (insert (if args 3560 (insert (if args
3561 (apply (function format) log args) 3561 (apply #'format-message log args)
3562 log))) 3562 log)))
3563 ((bufferp log) 3563 ((bufferp log)
3564 (insert-buffer-substring log)) 3564 (insert-buffer-substring log))
@@ -3811,7 +3811,8 @@ Ask means pop up a menu for the user to select one of copy, move or link."
3811 ((memq action '(copy private move link)) 3811 ((memq action '(copy private move link))
3812 (let ((overwrite (and (file-exists-p to) 3812 (let ((overwrite (and (file-exists-p to)
3813 (y-or-n-p 3813 (y-or-n-p
3814 (format "Overwrite existing file `%s'? " to)))) 3814 (format-message
3815 "Overwrite existing file `%s'? " to))))
3815 ;; Binding dired-overwrite-confirmed to nil makes 3816 ;; Binding dired-overwrite-confirmed to nil makes
3816 ;; dired-handle-overwrite a no-op. We instead use 3817 ;; dired-handle-overwrite a no-op. We instead use
3817 ;; y-or-n-p, which pops a graphical menu. 3818 ;; y-or-n-p, which pops a graphical menu.
@@ -3824,7 +3825,7 @@ Ask means pop up a menu for the user to select one of copy, move or link."
3824 (car (find-backup-file-name to))) 3825 (car (find-backup-file-name to)))
3825 (or (eq dired-backup-overwrite 'always) 3826 (or (eq dired-backup-overwrite 'always)
3826 (y-or-n-p 3827 (y-or-n-p
3827 (format 3828 (format-message
3828 "Make backup for existing file `%s'? " to)))) 3829 "Make backup for existing file `%s'? " to))))
3829 (rename-file to backup-file 0) 3830 (rename-file to backup-file 0)
3830 (dired-relist-entry backup-file)) 3831 (dired-relist-entry backup-file))
diff --git a/lisp/dirtrack.el b/lisp/dirtrack.el
index d1c46dd8550..ab7e34cb7eb 100644
--- a/lisp/dirtrack.el
+++ b/lisp/dirtrack.el
@@ -218,7 +218,7 @@ the mode if ARG is omitted or nil."
218 (when dirtrack-debug-mode 218 (when dirtrack-debug-mode
219 (with-current-buffer (get-buffer-create dirtrack-debug-buffer) 219 (with-current-buffer (get-buffer-create dirtrack-debug-buffer)
220 (goto-char (point-max)) 220 (goto-char (point-max))
221 (insert msg1 msg2 "\n")))) 221 (insert (substitute-command-keys msg1) msg2 "\n"))))
222 222
223(declare-function shell-prefixed-directory-name "shell" (dir)) 223(declare-function shell-prefixed-directory-name "shell" (dir))
224(declare-function shell-process-cd "shell" (arg)) 224(declare-function shell-process-cd "shell" (arg))
diff --git a/lisp/disp-table.el b/lisp/disp-table.el
index 84f9c89237b..62ed10218e4 100644
--- a/lisp/disp-table.el
+++ b/lisp/disp-table.el
@@ -281,7 +281,8 @@ in `.emacs'."
281 (set-terminal-coding-system nil)))) 281 (set-terminal-coding-system nil))))
282 282
283 (display-warning 'i18n 283 (display-warning 'i18n
284 "`standard-display-european' is semi-obsolete; see its doc string for details" 284 (format-message
285 "`standard-display-european' is semi-obsolete; see its doc string for details")
285 :warning) 286 :warning)
286 287
287 ;; Switch to Latin-1 language environment 288 ;; Switch to Latin-1 language environment
diff --git a/lisp/find-dired.el b/lisp/find-dired.el
index c5b88281888..b53c1da2a80 100644
--- a/lisp/find-dired.el
+++ b/lisp/find-dired.el
@@ -151,7 +151,8 @@ use in place of \"-ls\" as the final argument."
151 (let ((find (get-buffer-process (current-buffer)))) 151 (let ((find (get-buffer-process (current-buffer))))
152 (when find 152 (when find
153 (if (or (not (eq (process-status find) 'run)) 153 (if (or (not (eq (process-status find) 'run))
154 (yes-or-no-p "A `find' process is running; kill it? ")) 154 (yes-or-no-p
155 (format-message "A `find' process is running; kill it? ")))
155 (condition-case nil 156 (condition-case nil
156 (progn 157 (progn
157 (interrupt-process find) 158 (interrupt-process find)
diff --git a/lisp/forms.el b/lisp/forms.el
index bccb4a05756..e7e399fd436 100644
--- a/lisp/forms.el
+++ b/lisp/forms.el
@@ -692,10 +692,12 @@ Commands: Equivalent keys in read-only mode:
692 (insert 692 (insert
693 "GNU Emacs Forms Mode\n\n" 693 "GNU Emacs Forms Mode\n\n"
694 (if (file-exists-p forms-file) 694 (if (file-exists-p forms-file)
695 (concat "No records available in file `" forms-file "'\n\n") 695 (format-message
696 (format "Creating new file `%s'\nwith %d field%s per record\n\n" 696 "No records available in file `%s'\n\n" forms-file)
697 forms-file forms-number-of-fields 697 (format-message
698 (if (= 1 forms-number-of-fields) "" "s"))) 698 "Creating new file `%s'\nwith %d field%s per record\n\n"
699 forms-file forms-number-of-fields
700 (if (= 1 forms-number-of-fields) "" "s")))
699 "Use " (substitute-command-keys "\\[forms-insert-record]") 701 "Use " (substitute-command-keys "\\[forms-insert-record]")
700 " to create new records.\n") 702 " to create new records.\n")
701 (setq forms--current-record 1) 703 (setq forms--current-record 1)
diff --git a/lisp/hexl.el b/lisp/hexl.el
index 27d46592698..3e0ea410620 100644
--- a/lisp/hexl.el
+++ b/lisp/hexl.el
@@ -940,8 +940,9 @@ and their encoded form is inserted byte by byte."
940 ch internal-hex)) 940 ch internal-hex))
941 (setq encoded internal) 941 (setq encoded internal)
942 (error 942 (error
943 "Can't encode `0x%x' with this buffer's coding system; try \\[hexl-insert-hex-string]" 943 "Can't encode `0x%x' with this buffer's coding system; %s"
944 ch))) 944 ch
945 (substitute-command-keys "try \\[hexl-insert-hex-string]"))))
945 (while (> num 0) 946 (while (> num 0)
946 (mapc 947 (mapc
947 (function (lambda (c) (hexl-insert-char c 1))) encoded) 948 (function (lambda (c) (hexl-insert-char c 1))) encoded)
diff --git a/lisp/ido.el b/lisp/ido.el
index ab461bdb007..95be6566ea6 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -2275,7 +2275,8 @@ If cursor is not at the end of the user input, move to end of input."
2275 2275
2276 ((and (eq ido-create-new-buffer 'prompt) 2276 ((and (eq ido-create-new-buffer 'prompt)
2277 (null require-match) 2277 (null require-match)
2278 (not (y-or-n-p (format "No buffer matching `%s', create one? " buf)))) 2278 (not (y-or-n-p (format-message
2279 "No buffer matching `%s', create one? " buf))))
2279 nil) 2280 nil)
2280 2281
2281 ;; buffer doesn't exist 2282 ;; buffer doesn't exist
@@ -2285,7 +2286,8 @@ If cursor is not at the end of the user input, move to end of input."
2285 2286
2286 ((and (eq ido-create-new-buffer 'prompt) 2287 ((and (eq ido-create-new-buffer 'prompt)
2287 (null require-match) 2288 (null require-match)
2288 (not (y-or-n-p (format "No buffer matching `%s', create one? " buf)))) 2289 (not (y-or-n-p (format-message
2290 "No buffer matching `%s', create one? " buf))))
2289 nil) 2291 nil)
2290 2292
2291 ;; create a new buffer 2293 ;; create a new buffer
diff --git a/lisp/info.el b/lisp/info.el
index 0e0e91d61fa..21dbca9ee58 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -3381,11 +3381,11 @@ Give an empty topic name to go to the Index node itself."
3381 (car (car Info-index-alternatives)) 3381 (car (car Info-index-alternatives))
3382 (nth 2 (car Info-index-alternatives)) 3382 (nth 2 (car Info-index-alternatives))
3383 (if (cdr Info-index-alternatives) 3383 (if (cdr Info-index-alternatives)
3384 (format "(%s total; use `%s' for next)" 3384 (format-message
3385 (length Info-index-alternatives) 3385 "(%s total; use `%s' for next)"
3386 (key-description (where-is-internal 3386 (length Info-index-alternatives)
3387 'Info-index-next overriding-local-map 3387 (key-description (where-is-internal
3388 t))) 3388 'Info-index-next overriding-local-map t)))
3389 "(Only match)"))) 3389 "(Only match)")))
3390 3390
3391(defun Info-find-index-name (name) 3391(defun Info-find-index-name (name)
diff --git a/lisp/outline.el b/lisp/outline.el
index 059ca626586..d9142c5a604 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -449,8 +449,8 @@ Otherwise, it will be one level below."
449 ;; Why bother checking that it is indeed higher/lower level ? 449 ;; Why bother checking that it is indeed higher/lower level ?
450 new-head 450 new-head
451 ;; Didn't work, so ask what to do. 451 ;; Didn't work, so ask what to do.
452 (read-string (format "%s heading for `%s': " 452 (read-string (format-message "%s heading for `%s': "
453 (if up "Parent" "Demoted") head) 453 (if up "Parent" "Demoted") head)
454 head nil nil t))))) 454 head nil nil t)))))
455 455
456(defun outline-promote (&optional which) 456(defun outline-promote (&optional which)
diff --git a/lisp/printing.el b/lisp/printing.el
index 86d569a6ac6..8ad56f413e2 100644
--- a/lisp/printing.el
+++ b/lisp/printing.el
@@ -5542,8 +5542,8 @@ If menu binding was not done, calls `pr-menu-bind'."
5542 ((file-exists-p res) 5542 ((file-exists-p res)
5543 (ding) 5543 (ding)
5544 (setq prompt "exists") 5544 (setq prompt "exists")
5545 (not (y-or-n-p (format "File `%s' exists; overwrite? " 5545 (not (y-or-n-p (format-message
5546 res)))) 5546 "File `%s' exists; overwrite? " res))))
5547 (t nil)) 5547 (t nil))
5548 (setq res (read-file-name 5548 (setq res (read-file-name
5549 (format "File %s; PostScript file: " prompt) 5549 (format "File %s; PostScript file: " prompt)
@@ -6540,8 +6540,8 @@ COMMAND.exe, COMMAND.bat and COMMAND.com in this order."
6540 ((or (not (file-exists-p pr-i-out-file)) 6540 ((or (not (file-exists-p pr-i-out-file))
6541 pr-i-answer-yes 6541 pr-i-answer-yes
6542 (setq pr-i-answer-yes 6542 (setq pr-i-answer-yes
6543 (y-or-n-p (format "File `%s' exists; overwrite? " 6543 (y-or-n-p (format-message "File `%s' exists; overwrite? "
6544 pr-i-out-file)))) 6544 pr-i-out-file))))
6545 pr-i-out-file) 6545 pr-i-out-file)
6546 (t 6546 (t
6547 (error "File already exists")))) 6547 (error "File already exists"))))
diff --git a/lisp/proced.el b/lisp/proced.el
index 922e016a765..5c65edfe818 100644
--- a/lisp/proced.el
+++ b/lisp/proced.el
@@ -1924,8 +1924,8 @@ and \f (formfeed) at the end."
1924 (unless (bolp) 1924 (unless (bolp)
1925 (insert "\n")) 1925 (insert "\n"))
1926 (insert (current-time-string) 1926 (insert (current-time-string)
1927 "\tBuffer `" (buffer-name obuf) "', " 1927 (format-message "\tBuffer ‘%s’, signal ‘%s’\n"
1928 (format "signal `%s'\n" (car args))) 1928 (buffer-name obuf) (car args)))
1929 (goto-char (point-max)) 1929 (goto-char (point-max))
1930 (insert "\f\n"))))))) 1930 (insert "\f\n")))))))
1931 1931
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 0ba470be68c..faafe9ce87f 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -4604,8 +4604,8 @@ page-height == ((floor print-height ((th + ls) * zh)) * ((th + ls) * zh)) - th
4604 (setq prompt "File is unwritable")) 4604 (setq prompt "File is unwritable"))
4605 ((file-exists-p res) 4605 ((file-exists-p res)
4606 (setq prompt "File exists") 4606 (setq prompt "File exists")
4607 (not (y-or-n-p (format "File `%s' exists; overwrite? " 4607 (not (y-or-n-p (format-message
4608 res)))) 4608 "File `%s' exists; overwrite? " res))))
4609 (t nil)) 4609 (t nil))
4610 (setq res (read-file-name 4610 (setq res (read-file-name
4611 (format "%s; save PostScript to file: " prompt) 4611 (format "%s; save PostScript to file: " prompt)
@@ -5711,7 +5711,7 @@ XSTART YSTART are the relative position for the first page in a sheet.")
5711 (error "Invalid %s `%S'%s" 5711 (error "Invalid %s `%S'%s"
5712 mess size 5712 mess size
5713 (if arg 5713 (if arg
5714 (format " for `%S'" arg) 5714 (format-message " for `%S'" arg)
5715 ""))) 5715 "")))
5716 siz)) 5716 siz))
5717 5717
diff --git a/lisp/recentf.el b/lisp/recentf.el
index da263fc0b41..a599383c09e 100644
--- a/lisp/recentf.el
+++ b/lisp/recentf.el
@@ -1224,7 +1224,7 @@ use for the dialog. It defaults to \"*`recentf-menu-title'*\"."
1224 ", or type the corresponding digit key," 1224 ", or type the corresponding digit key,"
1225 "") 1225 "")
1226 " to open it.\n" 1226 " to open it.\n"
1227 "Click on Cancel or type `q' to cancel.\n") 1227 (format-message "Click on Cancel or type q to cancel.\n"))
1228 ;; Use a L&F that looks like the recentf menu. 1228 ;; Use a L&F that looks like the recentf menu.
1229 (tree-widget-set-theme "folder") 1229 (tree-widget-set-theme "folder")
1230 (apply 'widget-create 1230 (apply 'widget-create
@@ -1281,7 +1281,8 @@ Write data into the file specified by `recentf-save-file'."
1281 (with-temp-buffer 1281 (with-temp-buffer
1282 (erase-buffer) 1282 (erase-buffer)
1283 (set-buffer-file-coding-system recentf-save-file-coding-system) 1283 (set-buffer-file-coding-system recentf-save-file-coding-system)
1284 (insert (format recentf-save-file-header (current-time-string))) 1284 (insert (format-message recentf-save-file-header
1285 (current-time-string)))
1285 (recentf-dump-variable 'recentf-list recentf-max-saved-items) 1286 (recentf-dump-variable 'recentf-list recentf-max-saved-items)
1286 (recentf-dump-variable 'recentf-filter-changer-current) 1287 (recentf-dump-variable 'recentf-filter-changer-current)
1287 (insert "\n \n;; Local Variables:\n" 1288 (insert "\n \n;; Local Variables:\n"
diff --git a/lisp/savehist.el b/lisp/savehist.el
index 692ee2e586f..607138ca31a 100644
--- a/lisp/savehist.el
+++ b/lisp/savehist.el
@@ -270,8 +270,12 @@ If AUTO-SAVE is non-nil, compare the saved contents to the one last saved,
270 (interactive) 270 (interactive)
271 (with-temp-buffer 271 (with-temp-buffer
272 (insert 272 (insert
273 (format ";; -*- mode: emacs-lisp; coding: %s -*-\n" savehist-coding-system) 273 (format-message
274 ";; Minibuffer history file, automatically generated by `savehist'.\n\n") 274 (concat
275 ";; -*- mode: emacs-lisp; coding: %s -*-\n"
276 ";; Minibuffer history file, automatically generated by `savehist'.\n"
277 "\n")
278 savehist-coding-system))
275 (run-hooks 'savehist-save-hook) 279 (run-hooks 'savehist-save-hook)
276 (let ((print-length nil) 280 (let ((print-length nil)
277 (print-string-length nil) 281 (print-string-length nil)
diff --git a/lisp/server.el b/lisp/server.el
index 5a8afb42984..57c16af0cd5 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -533,7 +533,8 @@ Creates the directory if necessary and makes sure:
533 ((and w32 (zerop uid)) ; on FAT32? 533 ((and w32 (zerop uid)) ; on FAT32?
534 (display-warning 534 (display-warning
535 'server 535 'server
536 (format "Using `%s' to store Emacs-server authentication files. 536 (format-message "\
537Using `%s' to store Emacs-server authentication files.
537Directories on FAT32 filesystems are NOT secure against tampering. 538Directories on FAT32 filesystems are NOT secure against tampering.
538See variable `server-auth-dir' for details." 539See variable `server-auth-dir' for details."
539 (file-name-as-directory dir)) 540 (file-name-as-directory dir))
diff --git a/lisp/ses.el b/lisp/ses.el
index e625e4ed593..0bc43ec8b58 100644
--- a/lisp/ses.el
+++ b/lisp/ses.el
@@ -3360,8 +3360,10 @@ highlighted range in the spreadsheet."
3360 (ses-is-cell-sym-p new-name) 3360 (ses-is-cell-sym-p new-name)
3361 (error "Already a cell name")) 3361 (error "Already a cell name"))
3362 (and (boundp new-name) 3362 (and (boundp new-name)
3363 (null (yes-or-no-p (format "`%S' is already bound outside this buffer, continue? " 3363 (null (yes-or-no-p
3364 new-name))) 3364 (format-message
3365 "`%S' is already bound outside this buffer, continue? "
3366 new-name)))
3365 (error "Already a bound cell name"))) 3367 (error "Already a bound cell name")))
3366 (let* (curcell 3368 (let* (curcell
3367 (sym (if (ses-cell-p cell) 3369 (sym (if (ses-cell-p cell)
diff --git a/lisp/simple.el b/lisp/simple.el
index 87d944482ab..6f76d755292 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3565,8 +3565,9 @@ Also, delete any process that is exited or signaled."
3565 (buf-label (if (buffer-live-p buf) 3565 (buf-label (if (buffer-live-p buf)
3566 `(,(buffer-name buf) 3566 `(,(buffer-name buf)
3567 face link 3567 face link
3568 help-echo ,(concat "Visit buffer `" 3568 help-echo ,(format-message
3569 (buffer-name buf) "'") 3569 "Visit buffer ‘%s’"
3570 (buffer-name buf))
3570 follow-link t 3571 follow-link t
3571 process-buffer ,buf 3572 process-buffer ,buf
3572 action process-menu-visit-buffer) 3573 action process-menu-visit-buffer)
diff --git a/lisp/startup.el b/lisp/startup.el
index 2d1bcc9f424..0da2e14199e 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1115,8 +1115,9 @@ please check its value")
1115 "~/.emacs") 1115 "~/.emacs")
1116 ((directory-files "~" nil "^_emacs\\(\\.elc?\\)?$") 1116 ((directory-files "~" nil "^_emacs\\(\\.elc?\\)?$")
1117 ;; Also support _emacs for compatibility, but warn about it. 1117 ;; Also support _emacs for compatibility, but warn about it.
1118 (push '(initialization 1118 (push `(initialization
1119 "`_emacs' init file is deprecated, please use `.emacs'") 1119 ,(format-message
1120 "`_emacs' init file is deprecated, please use `.emacs'"))
1120 delayed-warnings-list) 1121 delayed-warnings-list)
1121 "~/_emacs") 1122 "~/_emacs")
1122 (t ;; But default to .emacs if _emacs does not exist. 1123 (t ;; But default to .emacs if _emacs does not exist.
diff --git a/lisp/strokes.el b/lisp/strokes.el
index 2363d333d37..a4f4a14af32 100644
--- a/lisp/strokes.el
+++ b/lisp/strokes.el
@@ -423,8 +423,9 @@ or for window START-WINDOW if that is specified."
423 (interactive) 423 (interactive)
424 (let ((command (cdar strokes-global-map))) 424 (let ((command (cdar strokes-global-map)))
425 (if (y-or-n-p 425 (if (y-or-n-p
426 (format "Really delete last stroke definition, defined to `%s'? " 426 (format-message
427 command)) 427 "Really delete last stroke definition, defined to `%s'? "
428 command))
428 (progn 429 (progn
429 (setq strokes-global-map (cdr strokes-global-map)) 430 (setq strokes-global-map (cdr strokes-global-map))
430 (message "That stroke has been deleted")) 431 (message "That stroke has been deleted"))
@@ -868,8 +869,8 @@ If no stroke matches, nothing is done and return value is nil."
868 ((null strokes-global-map) 869 ((null strokes-global-map)
869 (if (file-exists-p strokes-file) 870 (if (file-exists-p strokes-file)
870 (and (y-or-n-p 871 (and (y-or-n-p
871 (format "No strokes loaded. Load `%s'? " 872 (format-message "No strokes loaded. Load `%s'? "
872 strokes-file)) 873 strokes-file))
873 (strokes-load-user-strokes)) 874 (strokes-load-user-strokes))
874 (error "No strokes defined; use `strokes-global-set-stroke'"))) 875 (error "No strokes defined; use `strokes-global-set-stroke'")))
875 (t 876 (t
diff --git a/lisp/wdired.el b/lisp/wdired.el
index c72e134b401..0c113b346be 100644
--- a/lisp/wdired.el
+++ b/lisp/wdired.el
@@ -494,8 +494,8 @@ non-nil means return old filename."
494 overwrite)) 494 overwrite))
495 (error 495 (error
496 (setq errors (1+ errors)) 496 (setq errors (1+ errors))
497 (dired-log (concat "Rename `" file-ori "' to `" 497 (dired-log "Rename ‘%s’ to ‘%s’ failed:\n%s\n"
498 file-new "' failed:\n%s\n") 498 file-ori file-new
499 err))))))))) 499 err)))))))))
500 errors)) 500 errors))
501 501
@@ -651,8 +651,8 @@ If OLD, return the old target. If MOVE, move point before it."
651 (substitute-in-file-name link-to-new) link-from)) 651 (substitute-in-file-name link-to-new) link-from))
652 (error 652 (error
653 (setq errors (1+ errors)) 653 (setq errors (1+ errors))
654 (dired-log (concat "Link `" link-from "' to `" 654 (dired-log "Link ‘%s’ to ‘%s’ failed:\n%s\n"
655 link-to-new "' failed:\n%s\n") 655 link-from link-to-new
656 err))))) 656 err)))))
657 (cons changes errors))) 657 (cons changes errors)))
658 658
@@ -837,11 +837,11 @@ Like original function but it skips read-only words."
837 (unless (equal 0 (process-file dired-chmod-program 837 (unless (equal 0 (process-file dired-chmod-program
838 nil nil nil perm-tmp filename)) 838 nil nil nil perm-tmp filename))
839 (setq errors (1+ errors)) 839 (setq errors (1+ errors))
840 (dired-log (concat dired-chmod-program " " perm-tmp 840 (dired-log "%s %s ‘%s’ failed\n\n"
841 " `" filename "' failed\n\n")))) 841 dired-chmod-program perm-tmp filename)))
842 (setq errors (1+ errors)) 842 (setq errors (1+ errors))
843 (dired-log (concat "Cannot parse permission `" perms-new 843 (dired-log "Cannot parse permission ‘%s’ for file ‘%s’\n\n"
844 "' for file `" filename "'\n\n")))) 844 perms-new filename)))
845 (goto-char (next-single-property-change (1+ (point)) prop-wanted 845 (goto-char (next-single-property-change (1+ (point)) prop-wanted
846 nil (point-max)))) 846 nil (point-max))))
847 (cons changes errors))) 847 (cons changes errors)))