* bug#21627: 24.5; [generic-x]rul-generic-mode and font-lock bug
@ 2015-10-06 1:06 rubikitch
2015-12-22 23:56 ` bug#21627: fixed Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: rubikitch @ 2015-10-06 1:06 UTC (permalink / raw)
To: 21627
Hi,
I found rul-generic-mode and font-lock bug.
==== test.el
(setq generic-extras-enable-list '(rul-generic-mode))
(require 'generic-x)
(find-library "files")
(find-file "/tmp/test.rul") ;empty file ok
(switch-to-buffer "files.el")
(emacs-lisp-mode)
====
$ emacs -Q -l test.el
Font-locking is incorrect in files.el.
I think because `font-lock-syntax-table' is not buffer-local.
I fixed it by advice.
====
(defun generic-rul-mode-setup-function--font-lock-bug-fix (&rest them)
(make-local-variable 'font-lock-syntax-table))
(advice-add 'generic-rul-mode-setup-function :before
'generic-rul-mode-setup-function--font-lock-bug-fix)
====
In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GNU/LessTif Version 2.1 Release 0.95.2)
of 2015-04-11 on yui
Windowing system distributor `The X.Org Foundation', version 11.0.11702000
System Description: Debian GNU/Linux testing (stretch)
Configured using:
`configure --disable-largefile --with-x-toolkit=motif
--without-toolkit-scroll-bars --without-xaw3d --without-xim
--without-compress-info --without-sound --without-pop
--without-sync-input --without-xpm --without-tiff --without-rsvg
--without-gconf --without-gsettings --without-selinux --without-gpm
--without-makeinfo --with-x 'CFLAGS=-march=corei7 -O2 -pipe''
Important settings:
value of $LC_ALL: ja_JP.utf8
value of $LC_CTYPE: ja_JP.utf8
value of $LANG: ja_JP.utf8
value of $XMODIFIERS: @im=skkinput
locale-coding-system: utf-8-unix
Cheers,
--
rubikitch
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#21627: fixed
2015-10-06 1:06 bug#21627: 24.5; [generic-x]rul-generic-mode and font-lock bug rubikitch
@ 2015-12-22 23:56 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2015-12-22 23:56 UTC (permalink / raw)
To: 21627-done
I checked in a fix for this on the emacs-25 branch.
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-22 23:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-06 1:06 bug#21627: 24.5; [generic-x]rul-generic-mode and font-lock bug rubikitch
2015-12-22 23:56 ` bug#21627: fixed Tom Tromey
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.