unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Local Variables: Eval:(defun man-mode () (Man-mode)) Mode:Man End:
@ 2003-06-11 19:09 Edward J. Huff
  0 siblings, 0 replies; only message in thread
From: Edward J. Huff @ 2003-06-11 19:09 UTC (permalink / raw)


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:

\f
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-11 19:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-11 19:09 Local Variables: Eval:(defun man-mode () (Man-mode)) Mode:Man End: Edward J. Huff

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).