summaryrefslogtreecommitdiff
path: root/lisp/image-file.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2001-02-05 04:10:38 +0000
committerMiles Bader <miles@gnu.org>2001-02-05 04:10:38 +0000
commit65e70fc4528848b70e99814160398eb57eec4fb7 (patch)
treecd594a01197cb03cbc79bd95e250cd8fcc7f982a /lisp/image-file.el
parent3116502899eec4852e1ac780f4597b535377a6bc (diff)
downloademacs-65e70fc4528848b70e99814160398eb57eec4fb7.tar.gz
(insert-image-file): When visiting an image, set `truncate-lines' to t
so that any fringe arrow looks correct.
Diffstat (limited to 'lisp/image-file.el')
-rw-r--r--lisp/image-file.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/image-file.el b/lisp/image-file.el
index afee88d1346..052cea8232b 100644
--- a/lisp/image-file.el
+++ b/lisp/image-file.el
@@ -1,6 +1,6 @@
;;; image-file.el --- Support for visiting image files
;;
-;; Copyright (C) 2000 Free Software Foundation, Inc.
+;; Copyright (C) 2000, 2001 Free Software Foundation, Inc.
;;
;; Author: Miles Bader <miles@gnu.org>
;; Keywords: multimedia
@@ -129,7 +129,10 @@ the command `insert-file-contents'."
(when visitingp
;; Inhibit the cursor when the buffer contains only an image,
;; because cursors look very strange on top of images.
- (setq cursor-type nil))))
+ (setq cursor-type nil)
+ ;; This just makes the arrow displayed in the right fringe
+ ;; area look correct when the image is wider than the window.
+ (setq truncate-lines t))))
rval))
(defun image-file-handler (operation &rest args)