]> git.eshelyaron.com Git - emacs.git/commitdiff
Use format-prompt a couple of places
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 26 Aug 2020 12:08:21 +0000 (14:08 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 26 Aug 2020 12:08:21 +0000 (14:08 +0200)
* lisp/ps-print.el (ps-print-preprint):
* lisp/help-fns.el (describe-function): Use `format-prompt'
(bug#12443).

lisp/help-fns.el
lisp/ps-print.el

index a137c5048888b2dc01baf6f604ac5af0e7a20887..d302c05283cccc2fe1d90064e9ebb9b80b5ef87c 100644 (file)
@@ -152,7 +152,7 @@ When called from lisp, FUNCTION may also be a function object."
           (enable-recursive-minibuffers t)
           (val (completing-read
                 (if fn
-                    (format "Describe function (default %s): " fn)
+                    (format-prompt "Describe function" fn)
                   "Describe function: ")
                 #'help--symbol-completion-table
                 (lambda (f) (or (fboundp f) (get f 'function-documentation)))
index 1ca4a23ab2c7dcc126ccb3a2e66e654354e5ab9f..67ee4d24390d9f588cc6b5c33230aa1bc59c7b5e 100644 (file)
@@ -4523,7 +4523,7 @@ page-height == ((floor print-height ((th + ls) * zh)) * ((th + ls) * zh)) - th
        (let* ((name   (concat (file-name-nondirectory (or (buffer-file-name)
                                                          (buffer-name)))
                              ".ps"))
-             (prompt (format "Save PostScript to file (default %s): " name))
+             (prompt (format-prompt "Save PostScript to file" name))
              (res    (read-file-name prompt default-directory name nil)))
         (while (cond ((file-directory-p res)
                       (ding)