aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2001-02-05 04:10:38 +0000
committerMiles Bader2001-02-05 04:10:38 +0000
commit65e70fc4528848b70e99814160398eb57eec4fb7 (patch)
treecd594a01197cb03cbc79bd95e250cd8fcc7f982a
parent3116502899eec4852e1ac780f4597b535377a6bc (diff)
downloademacs-65e70fc4528848b70e99814160398eb57eec4fb7.tar.gz
emacs-65e70fc4528848b70e99814160398eb57eec4fb7.zip
(insert-image-file): When visiting an image, set `truncate-lines' to t
so that any fringe arrow looks correct.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/image-file.el7
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cc38fee5c99..fb98d98b7e6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-02-05 Miles Bader <miles@gnu.org>
2
3 * image-file.el (insert-image-file): When visiting an image, also
4 set `truncate-lines' to t so that any fringe arrow looks correct.
5
12001-02-05 Kenichi Handa <handa@etl.go.jp> 62001-02-05 Kenichi Handa <handa@etl.go.jp>
2 7
3 * isearch.el (isearch-forward): Add description about input method 8 * isearch.el (isearch-forward): Add description about input method
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 @@
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
@@ -129,7 +129,10 @@ the command `insert-file-contents'."
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)