From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Fraga, Eric" Subject: Re: File Scoped Properties? Date: Fri, 6 Mar 2020 06:51:27 +0000 Message-ID: <87mu8ugemp.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55934) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jA6pX-000335-9T for emacs-orgmode@gnu.org; Fri, 06 Mar 2020 01:51:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jA6pW-0006K7-70 for emacs-orgmode@gnu.org; Fri, 06 Mar 2020 01:51:31 -0500 Received: from mail-vi1eur05on2119.outbound.protection.outlook.com ([40.107.21.119]:53280 helo=EUR05-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jA6pV-0006Fj-Sg for emacs-orgmode@gnu.org; Fri, 06 Mar 2020 01:51:30 -0500 In-Reply-To: (Tim Visher's message of "Thu, 5 Mar 2020 10:28:20 -0500") Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Tim Visher Cc: Emacs Org Mode mailing list On Thursday, 5 Mar 2020 at 10:28, Tim Visher wrote: > I _am_ able to get it to work by adding a file local variable like > > ``` > # Local Variables: > # org-attach-id-dir: "~/.foo/data" > # End: > ``` > > but then whenever I open the file it tells me it's possibly not safe to s= et > that. You've already received a more org-ish response but I'll give you an Emacs response to this part of your post: Emacs is simply making sure you are aware that a variable is being set when visiting a file. It's a form of security to ensure you don't have a file do something you don't want it to do. If you are happy for that variable to be set by files in this way generally, Emacs does give you the option of saving this information in the customization file and you won't get asked again. It's not that setting this variable this way is dangerous per se. But, for instance, this variable could be set by some file you receive from somebody else to a destination that is off your computer, e.g. using tramp. This is the closest that Emacs comes to being vulnerable to viruses (computer, not COVID-19 ;-)). --=20 : Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-354-g9d5880