From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Why may some Org regexps be risky when set as buffer-local variables? Date: Sat, 29 Mar 2014 09:04:56 -0400 Message-ID: <87lhvtkvev.fsf@gmail.com> References: <87wqfdmdm4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTtJQ-0000Ew-NG for emacs-orgmode@gnu.org; Sat, 29 Mar 2014 09:28:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTtJJ-0006Sp-2f for emacs-orgmode@gnu.org; Sat, 29 Mar 2014 09:28:40 -0400 Received: from plane.gmane.org ([80.91.229.3]:37983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTtJI-0006Sf-S9 for emacs-orgmode@gnu.org; Sat, 29 Mar 2014 09:28:33 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WTtJG-0005gT-26 for emacs-orgmode@gnu.org; Sat, 29 Mar 2014 14:28:30 +0100 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Mar 2014 14:28:30 +0100 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Mar 2014 14:28:30 +0100 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.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Thorsten Jolitz writes: > Hi List, > > there are dozens of regexps that are set as buffer-local variables when > org-mode is turned on as major-mode, but other regexps are defined and > set only once as global variables when e.g. org.el is loaded, and the > docstring of these variables often reads like this: > > ,--------------------------------------------------------------- > | org-block-regexp is a variable defined in `org.el'. > | Its value is [...] > | > | This variable may be risky if used as a file-local variable. > | > | Documentation: > | Regular expression for hiding blocks. > `--------------------------------------------------------------- > > > Why are these variables considered risky when used as a file-local > variables? Was this "risk" the prime reason to make them global - or are > they global simply because there was no special reason to make them > buffer-local? All it means is that nobody has gone to the trouble of certifying them as safe. By default, file local variable are considered risky. See (info "(emacs) Safe File Variables") for more. -- Nick