From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 21 21:17:03 2019 Received: (at submit) by debbugs.gnu.org; 22 Apr 2019 01:17:03 +0000 Received: from localhost ([127.0.0.1]:49433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hINZv-0004x6-5I for submit@debbugs.gnu.org; Sun, 21 Apr 2019 21:17:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hINZs-0004wP-F9 for submit@debbugs.gnu.org; Sun, 21 Apr 2019 21:17:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:38668) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hINZn-0007l5-Ch for submit@debbugs.gnu.org; Sun, 21 Apr 2019 21:16:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hINZm-0004WN-D9 for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2019 21:16:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FROM_EXCESS_BASE64, RCVD_IN_DNSWL_NONE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hINZl-0007ja-GV for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2019 21:16:54 -0400 Received: from common.maple.relay.mailchannels.net ([23.83.214.38]:52023) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hINZl-0007ii-7X for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2019 21:16:53 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 016AF1244A9 for ; Mon, 22 Apr 2019 01:16:52 +0000 (UTC) Received: from pdx1-sub0-mail-a5.g.dreamhost.com (unknown [100.96.28.64]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id B659D124559 for ; Mon, 22 Apr 2019 01:16:51 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a5.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Mon, 22 Apr 2019 01:16:51 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Versed-Little: 40b4bfb71e02f9f0_1555895811813_136938366 X-MC-Loop-Signature: 1555895811813:4055783647 X-MC-Ingress-Time: 1555895811813 Received: from pdx1-sub0-mail-a5.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a5.g.dreamhost.com (Postfix) with ESMTP id 7E0BA8008D for ; Sun, 21 Apr 2019 18:16:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=xhU0kYmCR1flVRyZjYyd7uO4GOU=; b=MkHTqmaoXPooFA1/ r2Cqe1FBa7zFseMvjagHyY1mU9DIEMgtNOXO49Lmq/HGqUFHqMaX1yPb5/Vd9Iq6 B8C3wp8C3IuwbdIiXEtrWfktk98qjkNjaZ1Ro5M9hzyDozmnzdRhzQx7puI/vgtY wRZ9PzReBsN8GCeZvPUCdo0ZU4s= Received: from jidanni.org (1-170-87-149.dynamic-ip.hinet.net [1.170.87.149]) (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-a5.g.dreamhost.com (Postfix) with ESMTPSA id 229598009D for ; Sun, 21 Apr 2019 18:16:50 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a5 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: [PATCH] (info "(emacs) Safe File Variables") Date: Mon, 22 Apr 2019 09:10:24 +0800 Message-ID: <87v9z67slb.2.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrgeehgdeggecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppedurddujedtrdekjedrudegleenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpedurddujedtrdekjedrudegledprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.214.38 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) -- Append to (info "(emacs) Safe File Variables") -- Sometimes simply postprocessing the local variables is much more appropriate than eval. Consider the example on the previous page, # Local Variables: # compile-command: "cc foo.c ..." # End: To make it work in any file, # Local Variables: # compile-command: "cc @FILE@ ..." # End: use (add-hook 'hack-local-variables-hook (function (lambda () (if (local-variable-p 'compile-command) (setq compile-command (replace-regexp-in-string "@FILE@" (file-name-nondirectory buffer-file-name) compile-command t)))))) From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 21 22:08:59 2019 Received: (at control) by debbugs.gnu.org; 22 Apr 2019 02:08:59 +0000 Received: from localhost ([127.0.0.1]:49508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIOOA-0006HO-Pg for submit@debbugs.gnu.org; Sun, 21 Apr 2019 22:08:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIOO8-0006H6-Oi for control@debbugs.gnu.org; Sun, 21 Apr 2019 22:08:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIOO3-0007DE-Mh for control@debbugs.gnu.org; Sun, 21 Apr 2019 22:08:51 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1hIOO3-0000ZY-Bk for control@debbugs.gnu.org; Sun, 21 Apr 2019 22:08:51 -0400 Subject: control message for bug 35373 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Sun, 21 Apr 2019 22:08:51 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) merge 6615 35373 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 22 21:34:19 2019 Received: (at 35373) by debbugs.gnu.org; 23 Apr 2019 01:34:20 +0000 Received: from localhost ([127.0.0.1]:52026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIkKB-00006K-Jx for submit@debbugs.gnu.org; Mon, 22 Apr 2019 21:34:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIkK9-000067-O4 for 35373@debbugs.gnu.org; Mon, 22 Apr 2019 21:34:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIkK4-00069Z-9k; Mon, 22 Apr 2019 21:34:12 -0400 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1hIkK2-00024M-U0; Mon, 22 Apr 2019 21:34:11 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: =?iso-8859-1?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson In-Reply-To: <87v9z67slb.2.fsf@jidanni.org> Subject: Re: bug#35373: [PATCH] (info "(emacs) Safe File Variables") References: <87v9z67slb.2.fsf@jidanni.org> Message-Id: Date: Mon, 22 Apr 2019 21:34:10 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35373 Cc: 35373@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > To make it work in any file, > # Local Variables: > # compile-command: "cc @FILE@ ..." > # End: This could be a nice feature to add to Emacs. -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 23 15:30:09 2019 Received: (at 35373) by debbugs.gnu.org; 23 Apr 2019 19:30:09 +0000 Received: from localhost ([127.0.0.1]:54398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJ17I-0007lf-VO for submit@debbugs.gnu.org; Tue, 23 Apr 2019 15:30:09 -0400 Received: from bonobo.maple.relay.mailchannels.net ([23.83.214.22]:15011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJ17F-0007kZ-I6 for 35373@debbugs.gnu.org; Tue, 23 Apr 2019 15:30:07 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 52E743E5A2D; Tue, 23 Apr 2019 19:30:04 +0000 (UTC) Received: from pdx1-sub0-mail-a9.g.dreamhost.com (unknown [100.96.16.23]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id DD8073E5B2D; Tue, 23 Apr 2019 19:30:03 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a9.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Tue, 23 Apr 2019 19:30:04 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Abaft-Hysterical: 21f671ea7b408cf1_1556047804094_2130045913 X-MC-Loop-Signature: 1556047804094:610990275 X-MC-Ingress-Time: 1556047804094 Received: from pdx1-sub0-mail-a9.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a9.g.dreamhost.com (Postfix) with ESMTP id 67417828B0; Tue, 23 Apr 2019 12:30:03 -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=a2qLFf0hI+q1yfM2S622fR7egFs=; b=Phj2MTxQVVW3/ H16KaFVfxC+2+Q1rzX7whmGJoJtWq+d6HnNyvCDTuK9ES0xzR+qx6legTDVsP+vP Mss12bhnFwslGyU27EMymJ3zEquWLubov6E+fWCvKXLQ3vG+uYicINoaBYHeKTHQ WT00f/CCWC9x/on4cbfEAQvAgk9Qis= Received: from jidanni.org (114-41-30-33.dynamic-ip.hinet.net [114.41.30.33]) (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-a9.g.dreamhost.com (Postfix) with ESMTPSA id 7907A828A1; Tue, 23 Apr 2019 12:30:02 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a9 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Richard Stallman Subject: Re: bug#35373: [PATCH] (info "(emacs) Safe File Variables") References: <87v9z67slb.2.fsf@jidanni.org> Date: Wed, 24 Apr 2019 03:29:58 +0800 Message-ID: <87o94wfrk9.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrgeekgdduvdehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufhffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeduudegrdeguddrfedtrdeffeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpeduudegrdeguddrfedtrdeffedprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopeefheefjeefseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 35373 Cc: 35373@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) >> # Local Variables: >> # compile-command: "cc @FILE@ ..." >> # End: Yes, the brilliant thing about this is @FILE@ is the only item needed. Naysayers would say "first you want @FILE@, next week you will want @PWD@, next month you will want @CURRENT_DATE@..." But that's not true. All the rest can be simply determined by the shell, e.g., $PWD. Naysayers will also say "For the filename just use $(ls -t|sed q). Case closed." Yes but that is playing Russian roulette. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 23 18:05:39 2019 Received: (at 35373) by debbugs.gnu.org; 23 Apr 2019 22:05:39 +0000 Received: from localhost ([127.0.0.1]:54522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJ3Xm-0007Ou-Qt for submit@debbugs.gnu.org; Tue, 23 Apr 2019 18:05:39 -0400 Received: from palegreen.birch.relay.mailchannels.net ([23.83.209.140]:25498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJ3Xj-0007Oi-TO for 35373@debbugs.gnu.org; Tue, 23 Apr 2019 18:05:37 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 40BD78C0278; Tue, 23 Apr 2019 22:05:32 +0000 (UTC) Received: from pdx1-sub0-mail-a60.g.dreamhost.com (100-96-2-149.trex.outbound.svc.cluster.local [100.96.2.149]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 9F6018C10F7; Tue, 23 Apr 2019 22:05:31 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a60.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.17.2); Tue, 23 Apr 2019 22:05:32 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Army-Cure: 2654621d4d5345c4_1556057131973_1597803509 X-MC-Loop-Signature: 1556057131972:3589461060 X-MC-Ingress-Time: 1556057131972 Received: from pdx1-sub0-mail-a60.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a60.g.dreamhost.com (Postfix) with ESMTP id D7E9982020; Tue, 23 Apr 2019 15:05:29 -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=uA05hFs/MK1oPtsMs9OiTVp0CDI=; b=Fy9tiOJ5YeStQ usxbI5ezZ9CGj3lluSfvnGis2whrrXnaIAKbqGDSUq4GRc9DWLEEyyr05VR54jSM JIg6aePQsfGicOBfrWyN20TMJ+CoIsPp1X4o4ccCix9KCX4KMeXr/Jx/oS4ibgXA CHVedYiTxcy72RcaN2nXCr6JSzOgbs= Received: from jidanni.org (114-41-30-33.dynamic-ip.hinet.net [114.41.30.33]) (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-a60.g.dreamhost.com (Postfix) with ESMTPSA id 0CAE982017; Tue, 23 Apr 2019 15:05:28 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a60 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Richard Stallman Subject: Re: bug#35373: [PATCH] (info "(emacs) Safe File Variables") References: <87v9z67slb.2.fsf@jidanni.org> Date: Wed, 24 Apr 2019 06:05:25 +0800 Message-ID: <87h8aofkd6.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrgeelgddthecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhffffkgggtsehttdertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepuddugedrgedurdeftddrfeefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddugedrgedurdeftddrfeefpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepfeehfeejfeesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 35373 Cc: 35373@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) (Alas my personal implementation sometimes runs into problems...) Debugger entered--Lisp error: (wrong-type-argument stringp (save-excursion (beginning-of-line) (if (or (looking-at makefile-macroassign-regex) (looking-at makefile-dependency-regex) (makefile-previous-dependency)) (concat "make " (match-string-no-properties 1)) (or (car compile-history) "make ")))) string-match("@FILE@" (save-excursion (beginning-of-line) (if (or (looking-at makefile-macroassign-regex) (looking-at makefile-dependency-regex) (makefile-previous-dependency)) (concat "make " (match-string-no-properties 1)) (or (car compile-history) "make "))) 0) replace-regexp-in-string("@FILE@" "Makefile" (save-excursion (beginning-of-line) (if (or (looking-at makefile-macroassign-regex) (looking-at makefile-dependency-regex) (makefile-previous-dependency)) (concat "make " (match-string-no-properties 1)) (or (car compile-history) "make "))) t) (setq compile-command (replace-regexp-in-string "@FILE@" (file-name-nondirectory buffer-file-name) compile-command t)) (if (and compile-command (local-variable-if-set-p 'compile-command)) (setq compile-command (replace-regexp-in-string "@FILE@" (file-name-nondirectory buffer-file-name) compile-command t))) (lambda nil (if (and compile-command (local-variable-if-set-p 'compile-command)) (setq compile-command (replace-regexp-in-string "@FILE@" (file-name-nondirectory buffer-file-name) compile-command t))))() run-hooks(hack-local-variables-hook) hack-local-variables-apply() hack-local-variables(no-mode) run-mode-hooks(makefile-gmake-mode-hook) makefile-gmake-mode() set-auto-mode-0(makefile-gmake-mode nil) set-auto-mode() normal-mode(t) after-find-file(t t) find-file-noselect-1(# "/tmp/Makefile" nil nil "/tmp/Makefile" nil) find-file-noselect("/tmp/Makefile" nil nil nil) find-file("/tmp/Makefile") find-file-at-point(nil) (let ((ffap-url-fetcher (if current-prefix-arg (function my-browse-url-default-browser) (function w3m-browse-url))) (current-prefix-arg nil)) (find-file-at-point filename)) my-ffap() funcall-interactively(my-ffap) call-interactively(my-ffap nil nil) command-execute(my-ffap) From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 24 18:27:08 2019 Received: (at 35373) by debbugs.gnu.org; 24 Apr 2019 22:27:08 +0000 Received: from localhost ([127.0.0.1]:56700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJQM8-0002bG-Jq for submit@debbugs.gnu.org; Wed, 24 Apr 2019 18:27:08 -0400 Received: from bonobo.maple.relay.mailchannels.net ([23.83.214.22]:57166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJQM5-0002b6-K5 for 35373@debbugs.gnu.org; Wed, 24 Apr 2019 18:27:07 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7A2203403E9; Wed, 24 Apr 2019 22:27:04 +0000 (UTC) Received: from pdx1-sub0-mail-a54.g.dreamhost.com (100-96-14-7.trex.outbound.svc.cluster.local [100.96.14.7]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 03ECB34031E; Wed, 24 Apr 2019 22:27:04 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a54.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.17.2); Wed, 24 Apr 2019 22:27:04 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Broad-Sponge: 5f271442391648b2_1556144824315_3807007050 X-MC-Loop-Signature: 1556144824315:1173186409 X-MC-Ingress-Time: 1556144824314 Received: from pdx1-sub0-mail-a54.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a54.g.dreamhost.com (Postfix) with ESMTP id D7FEF7FEB0; Wed, 24 Apr 2019 15:27:00 -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=H94mi5RLm4AI/QBn+8dMOKjbS3w=; b=ho90dtzvi0bdv AZHXGrGnmWvVrSGmEgZw7+GD/FgOdzO894+jVSRzASSof9IFuJc2x/ZSfYuCvi+a zmshOh5EJImAMO7QZj3+62NH1FErZOpfuD+Xhq9KOFnpqBHQrZBm3AHSG8DFU97M IZuWZfa0AGzYyod98bjK1e3LrOENDg= Received: from jidanni.org (36-234-71-18.dynamic-ip.hinet.net [36.234.71.18]) (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-a54.g.dreamhost.com (Postfix) with ESMTPSA id 310C17FE58; Wed, 24 Apr 2019 15:26:59 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a54 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Richard Stallman Subject: Re: bug#35373: [PATCH] (info "(emacs) Safe File Variables") References: <87v9z67slb.2.fsf@jidanni.org> Date: Thu, 25 Apr 2019 06:26:56 +0800 Message-ID: <878svz82fj.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrheefgddtlecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhffffkgggtsehttdertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepfeeirddvfeegrdejuddrudeknecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepfeeirddvfeegrdejuddrudekpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepfeehfeejfeesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 35373 Cc: 35373@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) And it seems hack-local-variables-hook should also be hack-local-variables-hook-pre hack-local-variables-hook-post to avoid such bugs (or an example of how to use it safely given.) (No I don't want to just "advise" the function.) From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 24 22:11:40 2019 Received: (at 35373) by debbugs.gnu.org; 25 Apr 2019 02:11:41 +0000 Received: from localhost ([127.0.0.1]:56997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJTrQ-0001eQ-Mw for submit@debbugs.gnu.org; Wed, 24 Apr 2019 22:11:40 -0400 Received: from golden.birch.relay.mailchannels.net ([23.83.209.73]:64292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJTrO-0001eE-Dl for 35373@debbugs.gnu.org; Wed, 24 Apr 2019 22:11:39 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 420481255E6; Thu, 25 Apr 2019 02:11:37 +0000 (UTC) Received: from pdx1-sub0-mail-a73.g.dreamhost.com (unknown [100.96.16.23]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id BA46E124DF2; Thu, 25 Apr 2019 02:11:36 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a73.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Thu, 25 Apr 2019 02:11:37 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Supply-Descriptive: 68d646b90459158f_1556158296942_2083488430 X-MC-Loop-Signature: 1556158296941:2949473184 X-MC-Ingress-Time: 1556158296941 Received: from pdx1-sub0-mail-a73.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a73.g.dreamhost.com (Postfix) with ESMTP id 65A3180941; Wed, 24 Apr 2019 19:11:36 -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=7Pd3t6+OwO9Uw2s8hD3lgugbuMc=; b=hqEn+ZAhMxxXJ DSADFt9HqTJR4Aoi1c+XL0QUVNmK9GuB6rpwTi2URDi6pVCvs4m0cU6vlmBQOYWt lF7K/b/uGJs75aDsQUXXgAknXfrSQBlfBAtwOCpJSL/pF6FnrC2X2kX3J0vvJGzI K5BzQOTY2PR4XSvlC6f+trOcZMeNOM= Received: from jidanni.org (36-234-71-18.dynamic-ip.hinet.net [36.234.71.18]) (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-a73.g.dreamhost.com (Postfix) with ESMTPSA id C8B6D809F2; Wed, 24 Apr 2019 19:11:35 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a73 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Richard Stallman Subject: Re: bug#35373: [PATCH] (info "(emacs) Safe File Variables") References: <87v9z67slb.2.fsf@jidanni.org> Date: Thu, 25 Apr 2019 10:11:32 +0800 Message-ID: <87sgu67s17.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrheefgdehhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhffffkgggtsehttdertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucffohhmrghinhepjhhiuggrnhhnihdrohhrghenucfkphepfeeirddvfeegrdejuddrudeknecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepfeeirddvfeegrdejuddrudekpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepfeehfeejfeesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 35373 Cc: 35373@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) No, I don't know why it blows up. Reproduce with https://www.jidanni.org/comp/configuration/.emacs $ > /tmp/Makefile $ emacs /tmp/Makefile From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 01 15:28:20 2019 Received: (at control) by debbugs.gnu.org; 1 Oct 2019 19:28:20 +0000 Received: from localhost ([127.0.0.1]:34836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFNoq-0005sr-Hl for submit@debbugs.gnu.org; Tue, 01 Oct 2019 15:28:20 -0400 Received: from quimby.gnus.org ([80.91.231.51]:58674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFNon-0005si-9o for control@debbugs.gnu.org; Tue, 01 Oct 2019 15:28:17 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iFNok-0007Ai-Af for control@debbugs.gnu.org; Tue, 01 Oct 2019 21:28:16 +0200 Date: Tue, 01 Oct 2019 21:28:14 +0200 Message-Id: <875zl8xo35.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #6615 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 6615 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 6615 quit From unknown Fri Sep 05 11:00:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 02 Nov 2019 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator