all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#3038: 23.0.91; after-change-functions and indirect buffers
@ 2009-04-17 14:12 Lennart Borgman
  2013-02-19  2:08 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2009-04-17 14:12 UTC (permalink / raw)
  To: emacs-pretest-bug, Eric M. Ludlam

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






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#3038: 23.0.91; after-change-functions and indirect buffers
  2009-04-17 14:12 bug#3038: 23.0.91; after-change-functions and indirect buffers Lennart Borgman
@ 2013-02-19  2:08 ` Glenn Morris
  2013-02-19  3:06   ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2013-02-19  2:08 UTC (permalink / raw)
  To: 3038

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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#3038: 23.0.91; after-change-functions and indirect buffers
  2013-02-19  2:08 ` Glenn Morris
@ 2013-02-19  3:06   ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2013-02-19  3:06 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 3038

>> 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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-19  3:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-17 14:12 bug#3038: 23.0.91; after-change-functions and indirect buffers Lennart Borgman
2013-02-19  2:08 ` Glenn Morris
2013-02-19  3:06   ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.