diff options
| author | Eli Zaretskii | 2023-10-02 10:18:10 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-10-02 10:18:10 +0300 |
| commit | bdd3013249634c86a2cd2b1973f8fe15da94ab8b (patch) | |
| tree | 099e5e1e23e970ad39585a57c916a67c70b6c925 /lisp | |
| parent | 5c2d9ae48ede95efac5f6919585ad3b98a51699a (diff) | |
| download | emacs-bdd3013249634c86a2cd2b1973f8fe15da94ab8b.tar.gz emacs-bdd3013249634c86a2cd2b1973f8fe15da94ab8b.zip | |
; * lisp/image-mode.el (image-mode-to-text, image-mode-as-hex): Doc fixes.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/image-mode.el | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lisp/image-mode.el b/lisp/image-mode.el index d701124f3f3..71b62d25a2d 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el | |||
| @@ -772,9 +772,8 @@ to switch back to | |||
| 772 | 772 | ||
| 773 | ;;;###autoload | 773 | ;;;###autoload |
| 774 | (defun image-mode-to-text () | 774 | (defun image-mode-to-text () |
| 775 | "Set a non-image mode as major mode in combination with image minor mode. | 775 | "Set current buffer's modes be a non-image major mode, plus `image-minor-mode'. |
| 776 | A non-image major mode found from `auto-mode-alist' or fundamental mode | 776 | A non-image major mode displays an image file as text." |
| 777 | displays an image file as text." | ||
| 778 | ;; image-mode-as-text = normal-mode + image-minor-mode | 777 | ;; image-mode-as-text = normal-mode + image-minor-mode |
| 779 | (let ((previous-image-type image-type)) ; preserve `image-type' | 778 | (let ((previous-image-type image-type)) ; preserve `image-type' |
| 780 | (major-mode-restore '(image-mode image-mode-as-text)) | 779 | (major-mode-restore '(image-mode image-mode-as-text)) |
| @@ -785,15 +784,14 @@ displays an image file as text." | |||
| 785 | (image-toggle-display-text)))) | 784 | (image-toggle-display-text)))) |
| 786 | 785 | ||
| 787 | (defun image-mode-as-hex () | 786 | (defun image-mode-as-hex () |
| 788 | "Set `hexl-mode' as major mode in combination with image minor mode. | 787 | "Set current buffer's modes be `hexl-mode' major mode, plus `image-minor-mode'. |
| 789 | A non-image major mode found from `auto-mode-alist' or fundamental mode | 788 | This will by default display an image file as hex. `image-minor-mode' |
| 790 | displays an image file as hex. `image-minor-mode' provides the key | 789 | provides the key sequence \\<image-mode-map>\\[image-toggle-hex-display] to \ |
| 791 | \\<image-mode-map>\\[image-toggle-hex-display] to switch back to `image-mode' \ | 790 | switch back to `image-mode' to display |
| 792 | to display an image file as | 791 | an image file's buffer as an image. |
| 793 | the actual image. | ||
| 794 | 792 | ||
| 795 | You can use `image-mode-as-hex' in `auto-mode-alist' when you want to | 793 | You can use `image-mode-as-hex' in `auto-mode-alist' when you want to |
| 796 | display an image file as hex initially. | 794 | display image files as hex by default. |
| 797 | 795 | ||
| 798 | See commands `image-mode' and `image-minor-mode' for more information | 796 | See commands `image-mode' and `image-minor-mode' for more information |
| 799 | on these modes." | 797 | on these modes." |