Mercurial > emacs
comparison lisp/image-file.el @ 35884:3d9c9fe711c4
(insert-image-file): When visiting an image, set `truncate-lines' to t
so that any fringe arrow looks correct.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 05 Feb 2001 04:08:26 +0000 |
parents | a8fd9112792b |
children | 0a4768a84aab |
comparison
equal
deleted
inserted
replaced
35883:aedc87e25ce2 | 35884:3d9c9fe711c4 |
---|---|
1 ;;; image-file.el --- Support for visiting image files | 1 ;;; image-file.el --- Support for visiting image files |
2 ;; | 2 ;; |
3 ;; Copyright (C) 2000 Free Software Foundation, Inc. | 3 ;; Copyright (C) 2000, 2001 Free Software Foundation, Inc. |
4 ;; | 4 ;; |
5 ;; Author: Miles Bader <miles@gnu.org> | 5 ;; Author: Miles Bader <miles@gnu.org> |
6 ;; Keywords: multimedia | 6 ;; Keywords: multimedia |
7 | 7 |
8 ;; This file is part of GNU Emacs. | 8 ;; This file is part of GNU Emacs. |
127 '(read-only t front-sticky (read-only)))))) | 127 '(read-only t front-sticky (read-only)))))) |
128 (add-text-properties ibeg iend props) | 128 (add-text-properties ibeg iend props) |
129 (when visitingp | 129 (when visitingp |
130 ;; Inhibit the cursor when the buffer contains only an image, | 130 ;; Inhibit the cursor when the buffer contains only an image, |
131 ;; because cursors look very strange on top of images. | 131 ;; because cursors look very strange on top of images. |
132 (setq cursor-type nil)))) | 132 (setq cursor-type nil) |
133 ;; This just makes the arrow displayed in the right fringe | |
134 ;; area look correct when the image is wider than the window. | |
135 (setq truncate-lines t)))) | |
133 rval)) | 136 rval)) |
134 | 137 |
135 (defun image-file-handler (operation &rest args) | 138 (defun image-file-handler (operation &rest args) |
136 "Filename handler for inserting image files. | 139 "Filename handler for inserting image files. |
137 OPERATION is the operation to perform, on ARGS. | 140 OPERATION is the operation to perform, on ARGS. |