emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Unexpected hiding of identical images


From: Kim F. Storm
Subject: Re: Unexpected hiding of identical images
Date: Fri, 22 Jul 2005 11:29:04 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Richard M. Stallman" <address@hidden> writes:

>     So I have added a yank-handler on images created by image-file that
>     ensures that unique copies of the images are yanked.
>
> Oh, do you mean that you yank several copies consecutively in the buffer?
> Yes, I see how that would give bad results, for images,
>
> As long as we always put an image property over a single character,
> I think your fix is fully correct.  Is that the case?

There are two cases that I know of:

Either it is put on a single character, e.g. by insert-image, or on
the full string representing the image data, e.g. by auto-image-file-mode.

My patch only changes the behaviour for the auto-image-file-mode case,
so it is not a single character...  

What is the problem of one vs. multiple chars?

I do see there is still a problem with my patch, as the inserted
image no longer has a yank-handler (removed by yank-excluded-properties)
so if it is again copied from the buffer and yanked multiple times,
the visible result is still just one copy of the image.

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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