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

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

bug#34130: Specifying File Variables: mention why can't specify "current


From: Eli Zaretskii
Subject: bug#34130: Specifying File Variables: mention why can't specify "current file"
Date: Sat, 19 Jan 2019 09:24:13 +0200

> From: 積丹尼 Dan Jacobson
>       <jidanni@jidanni.org>
> Date: Sat, 19 Jan 2019 08:58:39 +0800
> 
> On (info "(emacs) Specifying File Variables")
> at
> 
>      # Local Variables:
>      # compile-command: "cc foo.c -Dfoo=bar -Dhack=whatever \
>      #   -Dmumble=blaah"
>      # End:
> 
> do also mention why there is absolutely no way to say "<<<current file>>>",
> $$$${current_file} etc. if one wanted to, instead of needing to hardwire
> the filename (foo.c) of the file (foo.c) into the file (foo.c) itself! Thanks.

Is something wrong with using buffer-file-name?  You could create
compile-command by using 'eval', which can accept Emacs functions.





reply via email to

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