emacs-devel
[Top][All Lists]
Advanced

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

Re: image-file-yank-handler


From: Basil L. Contovounesios
Subject: Re: image-file-yank-handler
Date: Thu, 01 Aug 2019 17:19:13 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

martin rudalics <address@hidden> writes:

> I don't use `image-file-yank-handler' but suppose its handling of
> `yank-excluded-properties' is wrong and something like the attached
> patch is needed.
>
> martin
>
> *** image-file.el.~1.34.~     2008-12-03 07:33:30.468750000 +0100
> --- image-file.el     2008-12-26 12:18:42.562500000 +0100
> ***************
> *** 143,149 ****
>     "Yank handler for inserting an image into a buffer."
>     (let ((len (length string))
>       (image (get-text-property 0 'display string)))
> !     (remove-text-properties 0 len yank-excluded-properties string)
>       (if (consp image)
>       (add-text-properties 0
>                            (or (next-single-property-change 0 'image-counter 
> string)
> --- 143,151 ----
>     "Yank handler for inserting an image into a buffer."
>     (let ((len (length string))
>       (image (get-text-property 0 'display string)))
> !     (if (eq yank-excluded-properties t)
> !     (set-text-properties 0 len nil string)
> !       (remove-list-of-text-properties 0 len yank-excluded-properties 
> string))
>       (if (consp image)
>       (add-text-properties 0
>                            (or (next-single-property-change 0 'image-counter 
> string)

I have now down so on master:

Fix usage of remove-text-properties
2267110b6f 2019-08-01 17:04:53 +0300
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=2267110b6f00bbb0ad87f4621e6ecd9dc1bd8581

Fix property stripping in image-file-yank-handler
1aa31b5f89 2019-08-01 17:16:05 +0300
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=1aa31b5f8911cc422644916c7652a90add7d5fd5

Thanks,

-- 
Basil



reply via email to

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