Function: image-toggle-display-text
image-toggle-display-text is a byte-compiled function defined in
image-mode.el.gz.
Signature
(image-toggle-display-text)
Documentation
Show the image file as text.
Remove text properties that display the image.
Probably introduced at or before Emacs version 23.2.
Source Code
;; Defined in /usr/src/emacs/lisp/image-mode.el.gz
(defun image-toggle-display-text ()
"Show the image file as text.
Remove text properties that display the image."
(let ((inhibit-read-only t)
(buffer-undo-list t)
(create-lockfiles nil) ; avoid changing dir mtime by lock_file
(modified (buffer-modified-p)))
(remove-list-of-text-properties (point-min) (point-max)
'(display read-nonsticky ;; intangible
read-only front-sticky))
(set-buffer-modified-p modified)
(if (called-interactively-p 'any)
(message "Repeat this command to go back to displaying the image"))))