bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5239: 23.1.50; compile-command Local Variables must be after mode


From: Juri Linkov
Subject: bug#5239: 23.1.50; compile-command Local Variables must be after mode
Date: Fri, 18 Dec 2009 01:46:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (x86_64-pc-linux-gnu)

> 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/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]