emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Why may some Org regexps be risky when set as buffer-local variables?
Date: Sat, 29 Mar 2014 12:46:27 +0100	[thread overview]
Message-ID: <87wqfdmdm4.fsf@gmail.com> (raw)

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


             reply	other threads:[~2014-03-29 11:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-29 11:46 Thorsten Jolitz [this message]
2014-03-29 13:04 ` Why may some Org regexps be risky when set as buffer-local variables? Nick Dokos
2014-03-29 13:54   ` Thorsten Jolitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wqfdmdm4.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).