From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Edward J. Huff" Newsgroups: gmane.emacs.bugs Subject: Local Variables: Eval:(defun man-mode () (Man-mode)) Mode:Man End: Date: Wed, 11 Jun 2003 15:09:34 -0400 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200306111909.h5BJ9Y78022307@ducks.huff20may77.us> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1055358659 11852 80.91.224.249 (11 Jun 2003 19:10:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2003 19:10:59 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 11 21:10:52 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19QAz7-000315-00 for ; Wed, 11 Jun 2003 21:10:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19QB1W-0007zA-RN for gnu-bug-gnu-emacs@m.gmane.org; Wed, 11 Jun 2003 15:12:42 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19QB0U-000732-UB for bug-gnu-emacs@gnu.org; Wed, 11 Jun 2003 15:11:38 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19QAzP-0006fu-Tx for bug-gnu-emacs@gnu.org; Wed, 11 Jun 2003 15:10:32 -0400 Original-Received: from [63.147.7.139] (helo=ducks.huff20may77.us) by monty-python.gnu.org with esmtp (Exim 4.20) id 19QAys-0006Qk-9L for bug-gnu-emacs@gnu.org; Wed, 11 Jun 2003 15:09:58 -0400 Original-Received: from ducks.huff20may77.us (localhost.localdomain [127.0.0.1]) by ducks.huff20may77.us (8.12.8/8.12.8) with ESMTP id h5BJ9crd022311; Wed, 11 Jun 2003 15:09:38 -0400 Original-Received: (from ejhuff@localhost) by ducks.huff20may77.us (8.12.8/8.12.8/Submit) id h5BJ9Y78022307; Wed, 11 Jun 2003 15:09:34 -0400 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5277 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5277 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