GNU bug report logs - #34130
Specifying File Variables: mention why can't specify "current file"

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sat, 19 Jan 2019 06:38:01 UTC

Severity: wishlist

Merged with 6615, 29451, 35373

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #18 received at 34130 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 34130 <at> debbugs.gnu.org, 6615 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#34130: Specifying File Variables: mention why can't specify
 "current file"
Date: Tue, 01 Oct 2019 21:28:06 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

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

Indeed, so I don't think there's anything here to be fixed.  Closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 229 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.