diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-01-28 17:03:14 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-01-28 17:03:14 +0100 |
commit | fdc72729802a60c64e44251b5a69824393ccd170 (patch) | |
tree | 6ccd45a69ce6ef98a82209164358f2e0a9efb2aa /lisp/minibuffer.el | |
parent | 87c23670111b03768dc722208dfe11183cebc5d5 (diff) | |
download | emacs-fdc72729802a60c64e44251b5a69824393ccd170.tar.gz emacs-fdc72729802a60c64e44251b5a69824393ccd170.tar.bz2 emacs-fdc72729802a60c64e44251b5a69824393ccd170.zip |
Improve the read-file-name doc string slightly
* lisp/minibuffer.el (read-file-name): Note that the semantics of
INITIAL are odd (bug#37883).
Diffstat (limited to 'lisp/minibuffer.el')
-rw-r--r-- | lisp/minibuffer.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 917879fb692..c9f58239403 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -3066,7 +3066,10 @@ Fourth arg MUSTMATCH can take the following values: - anything else behaves like t except that typing RET does not exit if it does non-null completion. -Fifth arg INITIAL specifies text to start with. +Fifth arg INITIAL specifies text to start with. It will be +interpreted as the trailing part of DEFAULT-FILENAME, so using a +full file name for INITIAL will usually lead to surprising +results. Sixth arg PREDICATE, if non-nil, should be a function of one argument; then a file name is considered an acceptable completion |