[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30823: 25.3; modification-hooks of overlays are not run in some case
bug#30823: 25.3; modification-hooks of overlays are not run in some cases
Thu, 15 Mar 2018 15:29:52 +0800
On Thu, Mar 15, 2018 at 2:00 PM, Eli Zaretskii <address@hidden> wrote:
>> From: Ren Victor <address@hidden>
>> Date: Thu, 15 Mar 2018 12:15:57 +0800
>> Two factors：
>> 1. A commit of Emacs， modification-hooks might not be run in some cases:
>> 2. In ggtags, an overlay is deleted in the overlay's modification-hooks:
>> Deleted overlay ceases to be attached to the buffer. If the buffer of
>> the first overlay in the saved array doesn't match the current buffer,
>> then all the modification hooks will not be run in this buffer.
>> Thus modes that depends on modification-hooks won't work together with
>> ggtags-highlight-tag mode.
>> I think Emacs should support `delete-overlay' in modificaiton-hooks of
>> overlays, like ggtags. So I report this bug.
> Thanks. Can you provide a recipe starting from "emacs -Q" to
> reproduce the problem?
I wrote a ert case which is encolsed.
emacs -Q -batch -l ert -l bug30823.el -f ert-run-tests-batch-and-exit
Description: Text Data