bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24585: 25.1; avoid hack in ggtags.el to run compilation-auto-jump ti


From: Stefan Monnier
Subject: bug#24585: 25.1; avoid hack in ggtags.el to run compilation-auto-jump timer
Date: Fri, 07 Oct 2016 08:46:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> compilation-auto-jump timer is fired by the font-locking engine.

Not sure what you mean by "fired", but in any case, no: font-lock is not
used for that (tho it has been used at some point before
compilation-auto-jump was introduced, IIRC).  Instead, it's done via
syntax-propertize (which can be triggered in all kinds of ways,
including font-lock).

How 'bout something like the following:

- Add a new var compilation-pending-auto-jump set buffer-locally to
  non-nil when compilation-error-properties calls run-with-timer.
- in compilation-auto-jump, check this var before doing anything and set
  it back to nil.
- in ggtags, call compilation-auto-jump to make sure this timer is run
  before yours.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]