From: Eli Zaretskii <eliz@gnu.org>
To: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Cc: 34130@debbugs.gnu.org
Subject: bug#34130: Specifying File Variables: mention why can't specify "current file"
Date: Sat, 19 Jan 2019 09:24:13 +0200 [thread overview]
Message-ID: <83sgxpaz4y.fsf@gnu.org> (raw)
In-Reply-To: <875zul79a8.fsf@jidanni.org>
> 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.
next prev parent reply other threads:[~2019-01-19 7:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-19 0:58 bug#34130: Specifying File Variables: mention why can't specify "current file" 積丹尼 Dan Jacobson
2019-01-19 7:24 ` Eli Zaretskii [this message]
2019-01-19 11:26 ` Glenn Morris
2019-10-01 19:28 ` Lars Ingebrigtsen
2010-07-12 4:19 ` bug#6615: document how to specify the current filename in Local Variables jidanni
2019-10-01 19:44 ` bug#6615: bug#34130: Specifying File Variables: mention why can't specify "current file" 積丹尼 Dan Jacobson
2019-10-02 11:48 ` Robert Pluim
2019-10-02 19:11 ` bug#34130: " 積丹尼 Dan Jacobson
2019-10-03 8:25 ` bug#6615: " Robert Pluim
2019-10-04 8:11 ` 積丹尼 Dan Jacobson
2019-10-04 8:37 ` bug#6615: " Robert Pluim
2019-10-04 17:44 ` 積丹尼 Dan Jacobson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83sgxpaz4y.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=34130@debbugs.gnu.org \
--cc=jidanni@jidanni.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).