all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* hi-lock-mode doesn't work with emacs -Q.
@ 2007-06-07  9:26 Alan Mackenzie
  2007-06-07 13:22 ` Stefan Monnier
  2007-06-11 20:25 ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: Alan Mackenzie @ 2007-06-07  9:26 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: David Koppelman, emacs-devel

Hi, Stefan!

Start emacs -Q.  (Emacs 22.1, of course).  Visit a new file with:

    C-x C-f foo.txt

.  Type this:

    This file is foo.txt.

.  Enable hi-lock-mode and make "foo" a highlightable pattern:

    M-x hi-lock-mode
    C-x w h foo<CR><CR>    ; accept the default hi-yellow face.

.  This highlights the "foo" yellow, as expected.  At the end of the
line, type:

    foo

.  This new "foo" doesn't get highlighted.  It should be.

#########################################################################

Partial diagnosis:
(i) The bug happens even when global-hi-lock-mode is enabled.
(ii) after-change-functions is nil.  It ought to be
  (jit-lock-after-change t).
(iii) font-lock-mode is t.

How can font-lock-mode be t, whilst at the same time there is no
after-change function?  Is this some optimisation in Font Lock mode
that only sets after-change-functions when font-lock-keywords is
non-nil?

hi-lock.el doesn't seem to be violating Font Lock's proper calling
conventions in any way.

Stefan, I think you're the best person to fix this.

-- 
Alan Mackenzie (Ittersbach, Germany).

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

end of thread, other threads:[~2007-06-15 23:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-07  9:26 hi-lock-mode doesn't work with emacs -Q Alan Mackenzie
2007-06-07 13:22 ` Stefan Monnier
2007-06-08 11:11   ` Alan Mackenzie
2007-06-11 20:25 ` Stefan Monnier
2007-06-15 23:04   ` Alan Mackenzie
2007-06-15 21:51     ` 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.