GNU bug report logs - #5239
23.1.50; compile-command Local Variables must be after mode

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Thu, 17 Dec 2009 19:57:02 UTC

Severity: normal

Merged with 8586

Found in version 23.3.50

Fixed in version 24.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5239 in the body.
You can then email your comments to 5239 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5239; Package emacs. (Thu, 17 Dec 2009 19:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 17 Dec 2009 19:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: emacs-pretest-bug <at> gnu.org
Subject: 23.1.50; compile-command Local Variables must be after mode
Date: Fri, 18 Dec 2009 03:02:32 +0800
In the docstring of compile-command, you might want to emphasize that
one must set it _after_ "mode". Wrong:

# Local Variables:
# compile-command: "set -xnue .crontab `basename $PWD`; scp $1 $2:; ssh $2 crontab $1;\
# ls $PWD/$1|cpiome"
# mode: Shell-script
# End:

or else it just gets thrown away. Better yet, don't throw it away.
(emacs-snapshot package, version 1:20091128-1)




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5239; Package emacs. (Fri, 18 Dec 2009 00:26:02 GMT) Full text and rfc822 format available.

Message #8 received at 5239 <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: juri <at> jurta.org
Cc: 5239 <at> debbugs.gnu.org
Subject: Re: bug#5239: 23.1.50;
	compile-command Local Variables must be after mode
Date: Fri, 18 Dec 2009 08:25:45 +0800
JL> This is already documented in (info "(emacs) Specifying File Variables"):

JL>      If `mode' is used to set a major mode, it should be the first
JL>   "variable" in the list.  Otherwise, the entries that precede it will
JL>   usually be ignored, since most modes kill all local variables as part
JL>   of their initialization.

JL> It makes no sense to duplicate this information in the docstrings of
JL> every variable that may be used in Local Variables.

OK, then the "responsible" thing to do would be to emit a warning if detected:
"mode used after others, see info page...".




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5239; Package emacs. (Fri, 18 Dec 2009 00:32:03 GMT) Full text and rfc822 format available.

Message #11 received at 5239 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: jidanni <at> jidanni.org
Cc: 5239 <at> debbugs.gnu.org
Subject: Re: bug#5239: 23.1.50;
	compile-command Local Variables must be after mode
Date: Fri, 18 Dec 2009 01:46:00 +0200
> In the docstring of compile-command, you might want to emphasize that
> one must set it _after_ "mode". Wrong:
>
> # Local_Variables:
> # compile-command: "set -xnue .crontab `basename $PWD`; scp $1 $2:; ssh $2 crontab $1;\
> # ls $PWD/$1|cpiome"
> # mode: Shell-script
> # End:
>
> or else it just gets thrown away. Better yet, don't throw it away.

This is already documented in (info "(emacs) Specifying File Variables"):

     If `mode' is used to set a major mode, it should be the first
  "variable" in the list.  Otherwise, the entries that precede it will
  usually be ignored, since most modes kill all local variables as part
  of their initialization.

It makes no sense to duplicate this information in the docstrings of
every variable that may be used in Local Variables.

-- 
Juri Linkov
http://www.jurta.org/emacs/




Severity set to 'wishlist' from 'normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 15 Jan 2010 02:35:01 GMT) Full text and rfc822 format available.

Forcibly Merged 5239 8586. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 27 May 2011 01:03:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 24 Jun 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.