]> git.eshelyaron.com Git - emacs.git/commit
Optimize image filename extension regexps in
authorJuri Linkov <juri@jurta.org>
Fri, 25 Mar 2005 19:57:21 +0000 (19:57 +0000)
committerJuri Linkov <juri@jurta.org>
Fri, 25 Mar 2005 19:57:21 +0000 (19:57 +0000)
commitd90e651e6e5900a57f061d4e691c5e9409322ff9
treec2c6ba97fd7c9d817a901aac2211322af93cb975
parent5341e481c898eed728a270628e225f80b9de0506
Optimize image filename extension regexps in
autoload cookies.  Associate .x[bp]m with `image-mode-maybe'
in `auto-mode-alist'.
(image-mode): Add `image-toggle-display-text' to local hook
`change-major-mode-hook'.  Display the image as an image by
default.  Set `cursor-type' and `truncate-lines' if the image
is already displayed.  Take into account the current mode (image
or text) in message.
(image-minor-mode): New minor mode.
(image-mode-maybe, image-toggle-display-text): New functions.
(image-toggle-display): Use called-interactively-p.
Let-bind `inhibit-read-only' to t.
lisp/image-mode.el