================================================================
Dear Bug Team!
Summary: reloading a changed file that includes eval statements
causes the font-lock to fail.
How to recreate:
* cat > test.tex <<EOF
\documentclass[twoside,12pt]{article}
\usepackage{amssymb}
%-----------------------------------
\begin{document}
%-----------------------------------
\maketitle
\pagebreak
This is a test document
%-------------------------
\end{document}
%-------------------------
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% eval: (reftex-set-cite-format 'natbib)
%%% End:
EOF
* Open test.tex in xemacs
* run 'touch test.tex'
* C-x C-f test.tex
* You will be asked "File test.tex changed on disk. Reread from disk?
(yes or no)"
* Say yes
* You will be asked "Process `eval' or hook local variables in file
test.tex? (y or n)"
* Say y
* At this point, one of two things will happen;
* This warning will be reported: (warning/warning) Error caught in
`font-lock-pre-idle-hook': (wrong-type-argument markerp nil)
* The "Fontifying test.tex" progress bar will appear and stop moving
* In either case, the font coloring does not work in the buffer until
you kill the buffer and reload.
Other relevant information
* I realize I am using an old version of xemacs, but I have recreated
the same bug in the same way with the latest xemacs available on
Debian Unstable (21.4.17-1)
* I am using auctex
Please let me know if I can provide additional information.
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Linux
i386-rh71.sp.cs.cmu.edu 2.4.7 #2-GENERIC-001 Wed Aug 1
15:46:26 EDT 2001 i686 unknown
/afs/.cs.cmu.edu/misc/xemacs/src/core/xemacs-21.4.4/configure
'--prefix=/usr/local' '--extra-verbose' '--with-gnu-make'
'--with-mule'
'--with-pop' '--with-gif=yes'
'--site-prefixes=/afs/cs.cmu.edu/misc/xemacs/src/aux:/usr/local'
'--archlibdir=\${libdir}/\${PROGNAME}-\${version}/lib-src'
'--bindir=\${libdir}/\${PROGNAME}-\${version}/bin'
'--mandir=\${libdir}/\${PROGNAME}-\${version}/man/man1'
'--compiler=/usr/local/bin/gcc' '--cflags=-O2 -Wall -DCMU -DCMUCS'
'--site-runtime-libraries=/usr/local/lib' '--with-xim=xlib'
'--compiler=/usr/local/libexec/gcc-3.0.1/bin/gcc'
XEmacs 21.4.4 "Artificial Intelligence" configured for `i686-pc-linux'.
Compilation / Installation:
Source code location:
/afs/.cs.cmu.edu/misc/xemacs/src/core/xemacs-21.4.4
Installation prefix: /usr/local
Additional prefixes: /afs/cs.cmu.edu/misc/xemacs/src/aux
/usr/local
Runtime library search path: /usr/local/lib
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler:
/usr/local/libexec/gcc-3.0.1/bin/gcc -O2 -Wall -DCMU -DCMUCS
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11R6/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Using Lucid menubars.
Using Lucid scrollbars.
Using Motif dialog boxes.
Using Motif native widgets.
TTY:
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Compiling in support for X-Face message headers.
Sound:
Compiling in support for sound (native).
Databases:
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Compiling in support for XIM (X11R5+ I18N input method).
- Using raw Xlib to provide XIM support.
Mail:
Compiling in support for POP mail retrieval.
Compiling in support for "dot-locking" mail spool file locking method.
Other Features:
Compiling in support for dynamic shared object modules.
Installed XEmacs Packages:
-------------------------
((zenirc:version 1.11 :type regular)
(xslt-process :version 1.04 :type regular)
(xemacs-devel :version 1.37 :type single-file)
(xemacs-base :version 1.55 :type regular)
(w3 :version 1.2 :type regular)
(vm :version 6.95 :type regular)
(viper :version 1.26 :type regular)
(view-process :version 1.11 :type regular)
(vhdl :version 1.13 :type regular)
(vc-cc :version 1.16 :type regular)
(vc :version 1.28 :type regular)
(tpu :version 1.12 :type regular)
(tooltalk :version 1.13 :type regular)
(tm :version 1.29 :type regular)
(time :version 1.11 :type regular)
(textools :version 1.12 :type regular)
(text-modes :version 1.32 :type single-file)
(texinfo :version 1.2 :type regular)
(supercite :version 1.17 :type regular)
(strokes :version 1.08 :type regular)
(speedbar :version 1.21 :type regular)
(sounds-wav :version 1.1 :type regular)
(sounds-au :version 1.1 :type regular)
(slider :version 1.13 :type regular)
(sh-script :version 1.13 :type regular)
(sgml :version 1.08 :type regular)
(semantic :version 1.06 :type regular)
(scheme :version 1.11 :type regular)
(rmail :version 1.12 :type regular)
(reftex :version 1.23 :type regular)
(psgml :version 1.23 :type regular)
(ps-print-nomule :version 1.05 :type regular)
(prog-modes
:version
1
.4
:type
single-file)
(pcomplete :version 1.01 :type regular)
(pcl-cvs :version 1.55 :type regular)
(pc :version 1.2 :type single-file)
(os-utils :version 1.25 :type single-file)
(net-utils :version 1.2 :type single-file)
(misc-games :version 1.15 :type single-file)
(mine :version 1.14 :type regular)
(mh-e :version 1.13 :type regular)
(mew :version 1.14 :type regular)
(mailcrypt :version 2.09 :type regular)
(mail-lib :version 1.39 :type regular)
(jde :version 1.27 :type regular)
(ispell :version 1.23 :type regular)
(ilisp :version 1.19 :type regular)
(igrep :version 1.08 :type regular)
(idlwave :version 1.23 :type regular)
(hm--html-menus :version 1.16 :type regular)
(gnus :version 1.56 :type regular)
(gnats :version 1.12 :type regular)
(games :version 1.13 :type regular)
(fsf-compat :version 1.09 :type single-file)
(frame-icon :version 1.09 :type regular)
(forms :version 1.13 :type regular)
(footnote :version 1.13 :type regular)
(eudc :version 1.33 :type regular)
(eterm :version 1.13 :type regular)
(eshell :version 1.01 :type regular)
(emerge :version 1.09 :type regular)
(elib :version 1.08 :type single-file)
(eieio :version 1.01 :type regular)
(eicq :version 1.05 :type regular)
(efs :version 1.26 :type regular)
(edt :version 1.12 :type regular)
(edit-utils :version 1.65 :type single-file)
(ediff :version 1.31 :type regular)
(edebug :version 1.14 :type regular)
(dired :version 1.11 :type regular)
(debug :version 1.14 :type regular)
(crisp :version 1.12 :type regular)
(cookie :version 1.13 :type regular)
(cc-mode :version 1.25 :type regular)
(calendar :version 1.16 :type regular)
(calc :version 1.17 :type regular)
(c-support :version 1.16 :type single-file)
(build :version 1.02 :type regular)
(bbdb :version 1.13 :type regular)
(auctex :version 1.25 :type regular)
(apel :version 1.2 :type regular)
(ada :version 1.1 :type regular)
(Sun :version 1.13 :type regular)
(skk :version 1.19 :type regular)
(mule-base :version 1.39 :type regular)
(lookup :version 1.08 :type regular)
(locale :version 1.18 :type regular)
(leim :version 1.17 :type regular)
(egg-its :version 1.26 :type regular)
(edict :version 1.12 :type regular)
(zephyr :version 1.0 :type regular)
(sample-setups :version 1.0 :type regular)
(hot-url :version 1.0 :type regular)
(cmu-mail :version 1.1 :type regular)
(cmu-help :version 1.1 :type regular)
(cmu-attach :version 1.0 :type regular)
(cmu :version 1.1 :type regular))
Features:
--------
(mail-abbrevs xemacsbug sh-script skeleton executable tags etags
reftex-global texmathp sendmail tempo psgml-xemacs sgml-mode psgml
psgml-html cperl-mode reftex-sel timer bibtex reftex-ref reftex-cite
reftex-parse tabify tex-buf reftex-vcr reftex-dcr reftex overlay
reftex-vars bib-cite font-latex outline latex tex cvs-edit vc vc-hooks
add-log comint ring compile cc-mode cc-align cc-cmds cc-engine
cc-styles cc-langs cc-vars wid-edit cc-menus imenu cc-defs pcl-cvs
diff-mode pcl-cvs-parse pcl-cvs-info pcl-cvs-defs pcl-cvs-util
cvs-compat dired-faces dired-xemacs dired cookie dll elib-node
netscape-fetch-url ispell efs-cu paren blink-paren edmacro
zephyr-smiley smiley annotations messagexmas nnheader nnheaderxm
mm-util mail-prsvr mail-utils zephyr-url hot-url hot-link zephyr
uniquify font-lock cus-face gnuserv x-compose tex-site filladapt
cmuhelp cmu-gnus cmu-vm advice advice-preload cmu-sendmail
zenirc-autoloads xslt-process-autoloads xemacs-devel-autoloads
xemacs-base-autoloads w3-autoloads vm-autoloads viper-autoloads
view-process-autoloads vhdl-autoloads vc-cc-autoloads vc-autoloads
tpu-autoloads tooltalk-autoloads tm-autoloads time-autoloads
textools-autoloads text-modes-autoloads texinfo-autoloads
supercite-autoloads strokes-autoloads speedbar-autoloads
sounds-wav-autoloads sounds-au-autoloads slider-autoloads
sh-script-autoloads sgml-autoloads semantic-autoloads scheme-autoloads
rmail-autoloads reftex-autoloads psgml-autoloads
ps-print-nomule-autoloads prog-modes-autoloads pcomplete-autoloads
pcl-cvs-autoloads pc-autoloads os-utils-autoloads net-utils-autoloads
misc-games-autoloads mine-autoloads mh-e-autoloads mew-autoloads
mailcrypt-autoloads mail-lib-autoloads jde-autoloads ispell-autoloads
ilisp-autoloads igrep-autoloads idlwave-autoloads
hm--html-menus-autoloads gnus-autoloads gnats-autoloads
games-autoloads fsf-compat-autoloads frame-icon-autoloads
forms-autoloads footnote-autoloads eudc-autoloads eterm-autoloads
eshell-autoloads emerge-autoloads elib-autoloads eieio-autoloads
eicq-autoloads efs-autoloads edt-autoloads edit-utils-autoloads
ediff-autoloads edebug-autoloads dired-autoloads debug-autoloads
crisp-autoloads cookie-autoloads cc-mode-autoloads calendar-autoloads
calc-autoloads c-support-autoloads build-autoloads bbdb-autoloads
auctex-autoloads apel-autoloads ada-autoloads Sun-autoloads
skk-autoloads mule-base-autoloads lookup-autoloads locale-autoloads
leim-autoloads egg-its-autoloads edict-autoloads zephyr-autoloads
sample-setups-autoloads hot-url-autoloads cmu-mail-autoloads
cmu-help-autoloads cmu-attach-autoloads cmu-autoloads lisp-autoloads
loadhist auto-show fontl-hooks x-iso8859-1 slovenian czech romanian
ccl mule-help code-cmds gutter-items menubar-items x-menubar
mode-motion mouse itimer auto-save lisp-mode easymenu iso8859-1 page
buff-menu lib-complete cus-file derived frame text-props obsolete
cus-start custom widget cl-extra mini-cl cl cl-19 packages backquote
very-early-lisp file-coding mule lucid-scrollbars cut-buffer
lucid-menubars motif-dialogs x c-balloon-help tty-frames tty toolbar
native-sound scrollbar unix-processes multicast network-streams
subprocesses modules menu-accelerator-support menubar md5 xemacs xim
gutter tiff png gif jpeg xface xpm xbm lisp-float-type linux dialog
devices window-system base64)
Recent keystrokes:
-----------------
TAB r TAB RET B a d SPC i n t e r a c t i o n SPC o
f SPC f o n t - l o c l BS k C-g C-x C-f t e TAB .
t e TAB RET y e s RET button1 button1up y C-x b * W
a TAB RET up up up down C-SPC down C-x x 1 ` up down
BS up up down C-SPC down C-x x 1 ESC C-x b RET ESC
c C-g ESC x r e p o TAB r TAB x e TAB RET
Recent messages (most recent first):
-----------------------------------
Loading mail-abbrevs...
Making completion list...
Line 21
Quit
Copy to register:
Copy to register:
Process `eval' or hook local variables in file test.tex? (y or n) Yes
Please answer y or n. Process `eval' or hook local variables in file
test.tex? (y or n)
Please answer y or n. Process `eval' or hook local variables in file
test.tex? (y or n)
Process `eval' or hook local variables in file test.tex? (y or n)
button1
Process `eval' or hook local variables in file test.tex? (y or n)
received MAIL:INBOX zephyrgram from
ugli.srv.cs.cmu.edu
Quit
Loading xemacsbug...done
Loading xemacsbug...
Making completion list...
Process `eval' or hook local variables in file test2.tex? (y or n) Yes
Process `eval' or hook local variables in file test2.tex? (y or n)
Process `eval' or hook local variables in file test2.tex? (y or n) Yes
Process `eval' or hook local variables in file test2.tex? (y or n)
--
Patrick Riley
Computer Science Department, Carnegie Mellon University
http://www.cs.cmu.edu/~pfr