diff src/widget.c @ 60937:ddcbccff39ce

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.
author Juri Linkov <juri@jurta.org>
date Fri, 25 Mar 2005 19:57:21 +0000
parents d25b6aeb9747
children a8fa7c632ee4 b9eee0a7bef5
line wrap: on
line diff