summaryrefslogtreecommitdiff
path: root/lisp/abbrev.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-09-07 22:10:01 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-09-07 22:10:06 +0200
commitde4f347901adffd07bc9bff028dc073fb3c6df33 (patch)
treea7b6653904dde6260d8708e94877a9a4e6e9b3c1 /lisp/abbrev.el
parent151486931c82f6af38a912631c9cd41b677aae47 (diff)
downloademacs-de4f347901adffd07bc9bff028dc073fb3c6df33.tar.gz
emacs-de4f347901adffd07bc9bff028dc073fb3c6df33.tar.bz2
emacs-de4f347901adffd07bc9bff028dc073fb3c6df33.zip
Use format-prompt in read-file-name calls that have a default
* lisp/xwidget.el (xwidget-webkit-save-as-file): * lisp/vc/vc.el (vc-backend-for-registration, vc-delete-file) (vc-rename-file): * lisp/vc/ediff-ptch.el (ediff-prompt-for-patch-file): * lisp/vc/diff-mode.el (diff-tell-file-name): * lisp/progmodes/etags.el (visit-tags-table) (visit-tags-table-buffer): * lisp/misearch.el (multi-isearch-read-files): * lisp/mail/rmailmm.el (rmail-mime-save): * lisp/help-fns.el (doc-file-to-man, doc-file-to-info): * lisp/gnus/gnus-bookmark.el (gnus-bookmark-load): * lisp/files.el (write-file, basic-save-buffer): * lisp/dired.el (dired-read-dir-and-switches): * lisp/bookmark.el (bookmark-save, bookmark-load): * lisp/abbrev.el (write-abbrev-file, abbrev-edit-save-to-file): Use format-prompt in read-file-name calls that have a default.
Diffstat (limited to 'lisp/abbrev.el')
-rw-r--r--lisp/abbrev.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/abbrev.el b/lisp/abbrev.el
index be6f9ee3437..50d0011e812 100644
--- a/lisp/abbrev.el
+++ b/lisp/abbrev.el
@@ -233,7 +233,7 @@ If VERBOSE is non-nil, display a message indicating where abbrevs
have been saved."
(interactive
(list
- (read-file-name "Write abbrev file: "
+ (read-file-name (format-prompt "Write abbrev file" abbrev-file-name)
(file-name-directory (expand-file-name abbrev-file-name))
abbrev-file-name)))
(or (and file (> (length file) 0))
@@ -262,7 +262,7 @@ have been saved."
(defun abbrev-edit-save-to-file (file)
"Save all user-level abbrev definitions in current buffer to FILE."
(interactive
- (list (read-file-name "Save abbrevs to file: "
+ (list (read-file-name (format-prompt "Save abbrevs to file" abbrev-file-name)
(file-name-directory
(expand-file-name abbrev-file-name))
abbrev-file-name)))