GNU bug report logs -
#5239
23.1.50; compile-command Local Variables must be after mode
Previous Next
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.
Full log
View this message in rfc822 format
> 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/
This bug report was last modified 14 years and 52 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.