all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: rubikitch <rubikitch@ruby-lang.org>
To: 21627@debbugs.gnu.org
Subject: bug#21627: 24.5; [generic-x]rul-generic-mode and font-lock bug
Date: Tue, 06 Oct 2015 10:06:02 +0900 (JST)	[thread overview]
Message-ID: <20151006.100602.1933052032710436942.rubikitch@ruby-lang.org> (raw)

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	other threads:[~2015-10-06  1:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-06  1:06 rubikitch [this message]
2015-12-22 23:56 ` bug#21627: fixed Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151006.100602.1933052032710436942.rubikitch@ruby-lang.org \
    --to=rubikitch@ruby-lang.org \
    --cc=21627@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.