GNU bug report logs - #3038
23.0.91; after-change-functions and indirect buffers

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Fri, 17 Apr 2009 21:40:16 UTC

Severity: normal

Merged with 3018

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 3038 in the body.
You can then email your comments to 3038 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3038; Package emacs. (Fri, 17 Apr 2009 21:40:16 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lennart Borgman <lennart.borgman <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 17 Apr 2009 21:40:16 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org, "Eric M. Ludlam" <eric <at> siege-engine.com>
Subject: 23.0.91; after-change-functions and indirect buffers
Date: Fri, 17 Apr 2009 16:12:54 +0200
I got this from Eric Ludlam. There seem to be a problem with
after-change-functions and indirect buffers. To me this looks like a
bug:

"Yes, I use after-change-functions.  ...

If you edit the base buffer, these functions don't get run in the
indirect buffer, but if you edit the indirect buffer, they do get run,
but not in the base buffer."


In GNU Emacs 23.0.91.1 (i386-mingw-nt5.1.2600)
 of 2009-02-26




Merged 3018 3038. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 26 Jan 2010 02:21:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#3038; Package emacs. (Tue, 19 Feb 2013 02:10:02 GMT) Full text and rfc822 format available.

Message #10 received at 3038 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 3038 <at> debbugs.gnu.org
Subject: Re: bug#3038: 23.0.91; after-change-functions and indirect buffers
Date: Mon, 18 Feb 2013 21:08:15 -0500
Lennart Borgman wrote:

> I got this from Eric Ludlam. There seem to be a problem with
> after-change-functions and indirect buffers. To me this looks like a
> bug:
>
> "Yes, I use after-change-functions.  ...
>
> If you edit the base buffer, these functions don't get run in the
> indirect buffer, but if you edit the indirect buffer, they do get run,
> but not in the base buffer."

It doesn't look like a bug to me. You'll have to explicitly check for
indirect buffers if that matter to you.




Added tag(s) notabug and wontfix. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 19 Feb 2013 02:10:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#3038; Package emacs. (Tue, 19 Feb 2013 03:08:02 GMT) Full text and rfc822 format available.

Message #15 received at 3038 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 3038 <at> debbugs.gnu.org
Subject: Re: bug#3038: 23.0.91; after-change-functions and indirect buffers
Date: Mon, 18 Feb 2013 22:06:30 -0500
>> I got this from Eric Ludlam. There seem to be a problem with
>> after-change-functions and indirect buffers. To me this looks like a
>> bug:
>> "Yes, I use after-change-functions.  ...
>> If you edit the base buffer, these functions don't get run in the
>> indirect buffer, but if you edit the indirect buffer, they do get run,
>> but not in the base buffer."
> It doesn't look like a bug to me.  You'll have to explicitly check for
> indirect buffers if that matter to you.

While it "works as designed" I can imagine it breaks lots of code which
assumes that an after-change-function lets you be kept informed of "all"
buffer modifications.
IOW, even if it's not a bug in after-change-functions, it's then a bug
in syntax-ppss, font-lock, and probably many other packages using
after-change-function.


        Stefan


PS: FWIW, I'm not sure indirect-buffers are a good idea.




Removed tag(s) notabug and wontfix. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 19 Feb 2013 03:14:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#3038; Package emacs. (Sun, 01 May 2022 10:01:01 GMT) Full text and rfc822 format available.

Message #20 received at 3038 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: <klaus.berndl <at> capgemini-sdm.com>
Cc: 3018 <at> debbugs.gnu.org, 3038 <at> debbugs.gnu.org
Subject: Re: bug#3038: 23.0.91; after-change-functions and indirect buffers
Date: Sun, 01 May 2022 12:00:10 +0200
<klaus.berndl <at> capgemini-sdm.com> writes:

> AFAICS the new hook `clone-indirect-buffer-hook' of Emacs 23 is not
> used by the command `make-indirect-buffer-hook' or is it? If not: why
> not?

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Skimming this bug report, it seems like it was agreed that this works as
designed.  There was then some discussion about after-change-functions,
but this bug report doesn't seem actionable, so I'm closing it.  If
there is something that should be done in this area, opening a new bug
report and restating the issue would be the way forward.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 3038 <at> debbugs.gnu.org and Lennart Borgman <lennart.borgman <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 01 May 2022 10:01:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 29 May 2022 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 36 days ago.

Previous Next


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