[Top][All Lists]

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

emacs hangs indefinitely

From: Roland Winkler
Subject: emacs hangs indefinitely
Date: Fri, 2 Mar 2001 16:40:20 +0100

In GNU Emacs 20.4.1 (i686-pc-linux-gnu, X toolkit)
 of Fri Oct 29 1999 on tfkp02
configured using `configure  --prefix=/nfs/common --libexecdir=/nfs/common/lib 
--bindir=/nfs/common/lib/emacs/bin/i686-Linux --with-gcc --with-pop --with-x 

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

The following makes emacs hang indefinitely
[both GNU Emacs 20.4.1 (i686-pc-linux-gnu, X toolkit)
and GNU Emacs 20.6.1 (sparc-sun-solaris2.6, X toolkit)]

Put the following into a file foo

cat > foo << EOF
 1.9641803E+00  foo bar
DATA     ( -5,  0)  -->  (  0,  1)  2     [( -4,  0)  -->  (  0,  1)]
     2,  1, 4
 6.00000E+00  4.336489E-04  1.671757E-04  1.601843E+00     1
 1.20000E+01  8.635805E-04  2.372562E-03  1.608738E+00     2

Start a fresh emacs --no-init-file

Load the following piece of emacs lisp:

;;;;;; emacs lisp starts here ;;;;;;;;;;;;;;;;;;;;;;;;;

(global-font-lock-mode 1)
(setq font-lock-support-mode 'lazy-lock-mode)

(setq foo-font-lock-keywords
        (list (concat "^\\(" 
                      "\\)\\( +.*\\)*$"
              '(1 font-lock-type-face nil t)
              '(2 font-lock-comment-face nil t)
              ;; '(3 font-lock-reference-face nil t)

(defun foo-mode ()
  "Major mode for editing foo files"
  (setq mode-name "foo"
        major-mode 'foo-mode)
  (make-local-variable 'font-lock-defaults)
  (setq font-lock-defaults '(foo-font-lock-keywords t)))

;;;;;;; emacs lisp ends here ;;;;;;;;;;;;;;;;;;;;;;

load file foo and switch to foo mode

For me, fontification doesn't work. 
So I interrupt with C-g (keyboard-quit).
But after lazy-lock-stealth-time lazy-lock tries stealth
fontification which makes emacs hang indefinitely.
(For me, even keyboard-quit doesn't help anymore.
I must kill emacs.)


reply via email to

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