emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Erik Iverson <eriki@ccbr.umn.edu>
To: Jeff Horn <jrhorn424@gmail.com>
Cc: emacs-orgmode list <emacs-orgmode@gnu.org>
Subject: Re: [RFC] Self-configuring Org-mode files
Date: Fri, 10 Dec 2010 10:13:07 -0600	[thread overview]
Message-ID: <4D025193.5030705@ccbr.umn.edu> (raw)
In-Reply-To: <AANLkTi=6=_oHewTam2an89iUSAPU7zCLsbgJDVZobY60@mail.gmail.com>



Jeff Horn wrote:
> On Fri, Dec 10, 2010 at 2:09 AM, Thomas S. Dye <tsd@tsdye.com> wrote:
>> 4) A super-function in the Library of Babel would set the buffer-local
>> instance of every relevant Org-mode variable to its default state:
>> #+source: lob-set-local-defaults
>> #+begin_src emacs-lisp
>> ...
>> #+end_src
> 
> Would this function save the current state of each variable it changes
> for restoration after the user exits the buffer?
> 
Perhaps I'm mis-understanding, but Thomas' suggestion is to set the
variables *buffer-local*, not global, so once the buffer is killed,
so are the buffer-local versions of the variables.

  reply	other threads:[~2010-12-10 16:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-10  7:09 [RFC] Self-configuring Org-mode files Thomas S. Dye
2010-12-10 16:04 ` Jeff Horn
2010-12-10 16:13   ` Erik Iverson [this message]
2010-12-10 16:20     ` Jeff Horn

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=4D025193.5030705@ccbr.umn.edu \
    --to=eriki@ccbr.umn.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=jrhorn424@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).