From 65e70fc4528848b70e99814160398eb57eec4fb7 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 5 Feb 2001 04:10:38 +0000 Subject: [PATCH] (insert-image-file): When visiting an image, set `truncate-lines' to t so that any fringe arrow looks correct. --- lisp/ChangeLog | 5 +++++ lisp/image-file.el | 7 +++++-- 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 @@ +2001-02-05 Miles Bader + + * image-file.el (insert-image-file): When visiting an image, also + set `truncate-lines' to t so that any fringe arrow looks correct. + 2001-02-05 Kenichi Handa * 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 @@ ;;; 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 ;; 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) -- 2.39.5