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

From: Juri Linkov <[email-masked]>
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/