GNU bug report logs - #73663
29.4; indirect-buffer behaviour is not correct

Previous Next

Package: emacs;

Reported by: PENG Kevin <kevin.remegame <at> gmail.com>

Date: Sun, 6 Oct 2024 16:06:04 UTC

Severity: normal

Found in version 29.4

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: PENG Kevin <kevin.remegame <at> gmail.com>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 73663 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#73663: 29.4; indirect-buffer behaviour is not correct
Date: Wed, 09 Oct 2024 13:23:23 +0800
[Message part 1 (text/plain, inline)]
Ok, i got a mistake to use indirect buffer in this way.
The text properties of base buffer are shared with indirect buffers.

Due to svg in emacs is not fully support, i have implemented this
by using =impatient-mode= with web-browser, when the svg file modified the
preview will be changed at the same time.

Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> PENG Kevin <kevin.remegame <at> gmail.com> writes:
>
> [+]
>> The text of the indirect buffer is always identical to the text of its
>> base buffer; changes made by editing either one are visible
>> immediately in the other. “Text” here includes both the characters and
>> their text properties.
>
> `image-mode' uses text properties to display the image!  Most major
> modes use text properties to font-lock the buffer and change the way how
> its contents are displayed.
>
> Use cases of indirect buffers are limited, maybe we need to warn more
> explicitly that their usefulness is very restricted.  IIRC, having
> indirect and base buffer using different major modes is something that
> was never supported.
>
> From the past discussions about the matter I also recall that the
> limitations are lying in the concept and we can't do much here without a
> reimplementation of the idea.
>
> So I would suggest to rather think about how to get what you want
> without using indirect buffers.
>
>
> Michael.


[Message part 2 (text/html, inline)]
[Message part 3 (text/plain, inline)]

-- 
Best Regards.

This bug report was last modified 224 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.