From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Why may some Org regexps be risky when set as buffer-local variables? Date: Sat, 29 Mar 2014 12:46:27 +0100 Message-ID: <87wqfdmdm4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTrhZ-0003cS-IX for emacs-orgmode@gnu.org; Sat, 29 Mar 2014 07:45:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTrhS-0000XW-2f for emacs-orgmode@gnu.org; Sat, 29 Mar 2014 07:45:29 -0400 Received: from plane.gmane.org ([80.91.229.3]:33877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTrhR-0000XK-RU for emacs-orgmode@gnu.org; Sat, 29 Mar 2014 07:45:21 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WTrhP-0005TM-7X for emacs-orgmode@gnu.org; Sat, 29 Mar 2014 12:45:19 +0100 Received: from e178058099.adsl.alicedsl.de ([85.178.58.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Mar 2014 12:45:19 +0100 Received: from tjolitz by e178058099.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Mar 2014 12:45:19 +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 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? -- cheers, Thorsten