diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2022-08-18 18:41:18 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2022-08-18 18:43:29 +0200 |
commit | ef1e68f11d9c5a4c66fa3b28c116ed3038a56496 (patch) | |
tree | 56cb5cbcad84895d90e053ad92ee22cac7e78650 /lisp/image-mode.el | |
parent | dc0fce3a7d94ce837420ced27d163ae889cbec89 (diff) | |
download | emacs-ef1e68f11d9c5a4c66fa3b28c116ed3038a56496.tar.gz |
* lisp/image-mode.el (image-mode-as-hex): Fix toggle instructions.
Diffstat (limited to 'lisp/image-mode.el')
-rw-r--r-- | lisp/image-mode.el | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 70f8746a3ac..383d1ac50b6 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -755,13 +755,9 @@ See commands `image-mode' and `image-minor-mode' for more information on these modes." (interactive) (image-mode-to-text) - ;; Turn on hexl-mode (hexl-mode) - (message "%s" (concat - (substitute-command-keys - "Type \\[image-toggle-hex-display] or \\[image-toggle-display] to view the image as ") - (if (image-get-display-property) - "hex" "an image or text") "."))) + (message "%s" (substitute-command-keys + "Type \\[hexl-mode-exit] to view the image as an image"))) (defun image-mode-as-text () "Set a non-image mode as major mode in combination with image minor mode. @@ -781,7 +777,7 @@ on these modes." (substitute-command-keys "Type \\[image-toggle-display] or \\[image-toggle-hex-display] to view the image as ") (if (image-get-display-property) - "text" "an image or hex") "."))) + "text" "an image or hex")))) (defun image-toggle-display-text () "Show the image file as text. |