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

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

font-locking problem: tuareg and ruby modes


From: David Reitter
Subject: font-locking problem: tuareg and ruby modes
Date: Wed, 26 Oct 2005 00:45:30 +0100

I have received independent reports that in both tuareg and ruby modes, font locking seems broken under certain circumstances.

Neither tuareg nor ruby-mode are included in Emacs - however, their failure may point to an incompatibility of Emacs 22 with earlier versions.

To reproduce

1. start a new Emacs -Q
2. evaluate (require 'ruby-mode) and (global-font-lock-mode) (in this order)
3. visit a ruby source file
4. M-x ruby-mode

--> no font-locking - all text is black

Note that if you don't do steps 2 or 3 in the order as above, font- locking works fine.

I haven't looked into tuareg, but it might be the same class of problem.

Now, I have no idea if ruby-mode / tuareg-mode are buggy - I don't know much about the implementation of major modes and syntax highlighting...




In GNU Emacs 22.0.50.1 (powerpc-apple-darwin7.9.0)
of 2005-10-25 on rodrigues.inf.ed.ac.uk
X server distributor `Apple Computers', version 10.4.2
configured using `configure '--without-x' '--prefix=/usr/local''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Major mode: Ruby

Minor modes in effect:
  mouse-wheel-mode: t
  encoded-kbd-mode: t
  tool-bar-mode: t
  tooltip-mode: t
  auto-compression-mode: t
  menu-bar-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t
  transient-mark-mode: identity

Recent input:
b <return> <down> <down> <down> <escape> x r u b y
- m o d e <return> <escape> <escape> <escape> <up>
<up> ( r e q u i r e SPC ' r u b y ) C-x C-e <help-echo>
<down-mouse-1> <mouse-movement> <drag-mouse-1> C-x
0 <left> - m o d e <right> C-x C-e <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <escape> x r u
b y = m o d <backspace> <backspace> <backspace> <backspace>
- 0 <backspace> m o d e <return> <help-echo> <menu-bar>
<help-menu> <report-emacs-bug>

Recent messages:
(/Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs -Q)
Loading image...done
For information about the GNU Project and its goals, type C-h C-p.
test.rb has auto save data; consider M-x recover-this-file
Quit
Entering debugger...
Mark set
Loading cl-macs...done
ruby-mode
Loading emacsbug...done





reply via email to

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