GNU bug report logs - #21627
24.5; [generic-x]rul-generic-mode and font-lock bug

Previous Next

Package: emacs;

Reported by: rubikitch <rubikitch <at> ruby-lang.org>

Date: Tue, 6 Oct 2015 01:07:01 UTC

Severity: normal

Found in version 24.5

Done: Tom Tromey <tom <at> tromey.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21627 in the body.
You can then email your comments to 21627 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#21627; Package emacs. (Tue, 06 Oct 2015 01:07:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to rubikitch <rubikitch <at> ruby-lang.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 06 Oct 2015 01:07:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: rubikitch <rubikitch <at> ruby-lang.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; [generic-x]rul-generic-mode and font-lock bug
Date: Tue, 06 Oct 2015 10:06:02 +0900 (JST)
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




Reply sent to Tom Tromey <tom <at> tromey.com>:
You have taken responsibility. (Tue, 22 Dec 2015 23:57:01 GMT) Full text and rfc822 format available.

Notification sent to rubikitch <rubikitch <at> ruby-lang.org>:
bug acknowledged by developer. (Tue, 22 Dec 2015 23:57:02 GMT) Full text and rfc822 format available.

Message #10 received at 21627-done <at> debbugs.gnu.org (full text, mbox):

From: Tom Tromey <tom <at> tromey.com>
To: 21627-done <at> debbugs.gnu.org
Subject: fixed
Date: Tue, 22 Dec 2015 16:56:08 -0700
I checked in a fix for this on the emacs-25 branch.

Tom




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 20 Jan 2016 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.