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

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

bug#68251: message-yank-buffer insert many copies of image


From: Joseph Turner
Subject: bug#68251: message-yank-buffer insert many copies of image
Date: Fri, 05 Jan 2024 08:22:01 -0800

Happy New Year, Eli!

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Thu, 04 Jan 2024 21:09:23 -0800
>> From:  Joseph Turner via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>>
>> To reproduce:
>> - ~emacs -Q~
>> - Open an image in a buffer
>> - Create another buffer, call ~M-x message-mode~
>> - Run ~message-yank-buffer~, select the buffer with the image
>>
>> Expected:
>>
>> One image is inserted into the buffer.
>>
>> Actual:
>>
>> Many images are inserted into the buffer.
>
> It isn't specific to images: it happens with any 'display' property
> that spans more than one text line.  message-yank-buffer looks at
> buffer text and ignores the 'display' properties, so it inserts every
> line after quoting it, and this you get as many copies of the
> 'display' property as there are newlines in the text covered by the
> 'display' property.

Thank you for explaining what's going on!  Closing now.





reply via email to

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