emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image autodetection


From: Chong Yidong
Subject: Re: Image autodetection
Date: Tue, 30 Jan 2007 11:58:18 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux)

"Juanma Barranquero" <address@hidden> writes:

> On 1/30/07, Juanma Barranquero <address@hidden> wrote:
>
>> so I like Richard's idea of bypassing #1 of Chong's
>> proposals (no more options, please!) and just implementing #2 (with
>> image-toggle-display disabled, as you note).
>
> Something like the attached patch, which couldn't be simpler.

> -  (if (and (display-images-p)
> -        (not (get-text-property (point-min) 'display)))
> -      (image-toggle-display)
> -    ;; Set next vars when image is already displayed but local
> -    ;; variables were cleared by kill-all-local-variables
> -    (setq cursor-type nil truncate-lines t))
> +  (setq cursor-type nil truncate-lines t)

This last line should not be present; its purpose was to hide the
cursor in case we are already displaying as an image and run
image-mode again.  I've checked in the patch, with this additional
correction.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]