[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 672f9f787f: Improve keystrokes in doc strings in some find-file
From: |
Lars Ingebrigtsen |
Subject: |
emacs-28 672f9f787f: Improve keystrokes in doc strings in some find-file functions |
Date: |
Thu, 2 Jun 2022 08:30:22 -0400 (EDT) |
branch: emacs-28
commit 672f9f787fb34919b35d6fdb30f56083b8b7fb79
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Improve keystrokes in doc strings in some find-file functions
* lisp/files.el (find-file):
(find-file-other-window):
(find-file-other-frame): Include the correct keymap so that
keystrokes are displayed better (bug#55761).
Copyright-paperwork-exempt: yes
---
lisp/files.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lisp/files.el b/lisp/files.el
index b187c0b3a0..5e9dce555f 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1706,7 +1706,7 @@ rather than FUN itself, to `minibuffer-setup-hook'."
(defun find-file (filename &optional wildcards)
"Edit file FILENAME.
-Switch to a buffer visiting file FILENAME,
+\\<minibuffer-local-map>Switch to a buffer visiting file FILENAME,
creating one if none already exists.
Interactively, the default if you just type RET is the current directory,
but the visited file name is available through the minibuffer history:
@@ -1731,7 +1731,7 @@ Interactively, or if WILDCARDS is non-nil in a call from
Lisp,
expand wildcards (if any) and visit multiple files. You can
suppress wildcard expansion by setting `find-file-wildcards' to nil.
-To visit a file without any kind of conversion and without
+\\<global-map>To visit a file without any kind of conversion and without
automatically choosing a major mode, use \\[find-file-literally]."
(interactive
(find-file-read-args "Find file: "
@@ -1747,6 +1747,7 @@ automatically choosing a major mode, use
\\[find-file-literally]."
Like \\[find-file] (which see), but creates a new window or reuses
an existing one. See the function `display-buffer'.
+\\<minibuffer-local-map>\
Interactively, the default if you just type RET is the current directory,
but the visited file name is available through the minibuffer history:
type \\[next-history-element] to pull it into the minibuffer.
@@ -1779,6 +1780,7 @@ expand wildcards (if any) and visit multiple files."
Like \\[find-file] (which see), but creates a new frame or reuses
an existing one. See the function `display-buffer'.
+\\<minibuffer-local-map>\
Interactively, the default if you just type RET is the current directory,
but the visited file name is available through the minibuffer history:
type \\[next-history-element] to pull it into the minibuffer.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-28 672f9f787f: Improve keystrokes in doc strings in some find-file functions,
Lars Ingebrigtsen <=