[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer
From: |
Noam Postavsky |
Subject: |
bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer |
Date: |
Sat, 7 Nov 2015 11:22:50 -0500 |
On Sat, Nov 7, 2015 at 3:28 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>> global-highlight-parentheses-mode puts overlays in every buffer.
>
> Does it really mean to do that in *Messages*? If not, perhaps we
> should suggest to the developers of highlight-parentheses to exempt
> *Messages* from that, as that buffer is pretty specialized anyway. In
> particular, due to the way the message logging in *Messages* is
> implemented, the overlay modification hooks will only ever be called
> in that buffer with AFTER non-nil, and even that will only happen when
> Emacs decides to delete some text from *Messages*; inserting a new
> message there will never call the overlay modification hooks.
Well, I suppose users may want parentheses highlighted in messages too.
But note that the overlays created by highlight-parentheses-mode do
*not* have any modification-hooks. It's the triggering
modification-hooks of (yasnippet's) overlays in another buffer in
addition to the existence of (highlight-parentheses') overlays in
*Messages* that triggers the bug.
> Yes, this looks good to me. How about creating a new file
> buffer-tests.el (the offending code is in buffer.c)?
Okay, see attached.
0001-Add-test-for-bug-21824.patch
Description: Text Data
- bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer, Noam Postavsky, 2015/11/03
- bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer, Eli Zaretskii, 2015/11/04
- bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer, Noam Postavsky, 2015/11/04
- bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer, Noam Postavsky, 2015/11/04
- bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer, Eli Zaretskii, 2015/11/05
- bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer, Noam Postavsky, 2015/11/05
- bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer, Eli Zaretskii, 2015/11/06
- bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer, Eli Zaretskii, 2015/11/06
- bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer, Noam Postavsky, 2015/11/06
- bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer, Eli Zaretskii, 2015/11/07
- bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer,
Noam Postavsky <=
- bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer, Eli Zaretskii, 2015/11/07
- bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer, Noam Postavsky, 2015/11/07
- bug#21824: 25.0.50; overlay modification-hooks called with wrong buffer, Eli Zaretskii, 2015/11/07