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

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

Local Variables: Eval:(defun man-mode () (Man-mode)) Mode:Man End:


From: Edward J. Huff
Subject: Local Variables: Eval:(defun man-mode () (Man-mode)) Mode:Man End:
Date: Wed, 11 Jun 2003 15:09:34 -0400

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2003-02-20 on porky.devel.redhat.com
configured using `configure  --host=i386-redhat-linux --build=i386-redhat-linux 
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr 
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc 
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib 
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com 
--mandir=/usr/share/man --infodir=/usr/share/info --with-gcc --with-pop 
--with-sound'
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: en_US.iso885915
  locale-coding-system: iso-latin-9
  default-enable-multibyte-characters: t

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

I make a single buffer containing all of the Perl man pages
by running 

echo $(whatis 'perl.* ' | gawk '{print $1}' | sort -u) 

in a shell and pasting the output into the minibuffer after M-x man.
It takes a while to run, so I saved the buffer.  I wondered if I could
make the buffer automatically start out in Man mode.  It turns out
that the man-mode function is spelled Man-mode.  So I put this at
the end of the buffer:


Local Variables:
eval:(defun man-mode () "run case-sensitive function name (Man-mode)" 
(Man-mode))
mode:Man
End: 

Then I ran M-x normal-mode.

But I get an error.  I set enter debugger on function entry for
hack-local-variables-prop-line, and eventually discovered that
the problem occurred when on return from (man-mode), the
point was not at the next variable, but was rather where
(Man-mode) left it.

If I make the second and third lines of the file be

eval:(print "Hello World!")
End:

then there is no error and "Hello World!" appears in the message
buffer at the bottom of the frame (with no additional warning about
running eval).


-- Ed Huff




reply via email to

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