unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Edward J. Huff" <edward.huff@acm.org>
Subject: Local Variables: Eval:(defun man-mode () (Man-mode)) Mode:Man End:
Date: Wed, 11 Jun 2003 15:09:34 -0400	[thread overview]
Message-ID: <200306111909.h5BJ9Y78022307@ducks.huff20may77.us> (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

                 reply	other threads:[~2003-06-11 19:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200306111909.h5BJ9Y78022307@ducks.huff20may77.us \
    --to=edward.huff@acm.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).