From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#6615: bug#34130: Specifying File Variables: mention why can't specify "current file" Date: Wed, 02 Oct 2019 03:44:37 +0800 Message-ID: <87wodojlne.5.fsf@jidanni.org> References: <875zul79a8.fsf@jidanni.org> <83sgxpaz4y.fsf@gnu.org> <877e5oxo3d.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="78645"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 6615@debbugs.gnu.org, 34130@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 01 21:45:29 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iFO5P-000KFW-3J for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Oct 2019 21:45:27 +0200 Original-Received: from localhost ([::1]:47226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFO5N-0001wN-31 for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Oct 2019 15:45:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52243) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFO53-0001sl-GB for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2019 15:45:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFO52-0005Ny-Bc for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2019 15:45:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54272) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iFO52-0005Nn-8B for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2019 15:45:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iFO51-0008Nh-Uk for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2019 15:45:04 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87iq4ljpr0.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Oct 2019 19:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6615 X-GNU-PR-Package: emacs Original-Received: via spool by 6615-submit@debbugs.gnu.org id=B6615.156995909232158 (code B ref 6615); Tue, 01 Oct 2019 19:45:03 +0000 Original-Received: (at 6615) by debbugs.gnu.org; 1 Oct 2019 19:44:52 +0000 Original-Received: from localhost ([127.0.0.1]:34857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFO4q-0008MX-4w for submit@debbugs.gnu.org; Tue, 01 Oct 2019 15:44:52 -0400 Original-Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:38275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFO4o-0008MH-1T; Tue, 01 Oct 2019 15:44:50 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 9D9CB1A2A91; Tue, 1 Oct 2019 19:44:48 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com (100-96-29-174.trex.outbound.svc.cluster.local [100.96.29.174]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id C96221A249B; Tue, 1 Oct 2019 19:44:47 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.2); Tue, 01 Oct 2019 19:44:48 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Cooing-Cellar: 4da216ec7a35f421_1569959088332_737450895 X-MC-Loop-Signature: 1569959088332:2259288858 X-MC-Ingress-Time: 1569959088331 Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTP id 901C2850DB; Tue, 1 Oct 2019 12:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=BO4AGQLoJuJQs57yfMaWNWheRWg=; b=ImvOg04LISggW nNI8zsRklRynNrEOJS1Lsd6Qq4WpjyHt7Hsgnch2vgo4o+5Wa8ttia13FHJkVYCl Pc5eRROw3P5DyqMvguY1MzoIl5D6ivk8pQl9bqUvvD2bAlzC8oOTEOiEUI4POt/C qV+5EwS6Njnc7JGWgRAP/CbkIPE6Ck= Original-Received: from jidanni.org (114-41-30-140.dynamic-ip.hinet.net [114.41.30.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTPSA id A802A850DA; Tue, 1 Oct 2019 12:44:41 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a50 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrgeeggddufeelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhffffkgggtsehttdertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepuddugedrgedurdeftddrudegtdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpeduudegrdeguddrfedtrddugedtpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepfeegudeftdesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:168082 Archived-At: >>>>> "LI" == Lars Ingebrigtsen writes: LI> Eli Zaretskii 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} 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. LI> Indeed, so I don't think there's anything here to be fixed. Closing. eval needs to be whitelisted as a safe local variable, creating a security hole.