From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: [RFC] Self-configuring Org-mode files Date: Fri, 10 Dec 2010 10:13:07 -0600 Message-ID: <4D025193.5030705@ccbr.umn.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=52071 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PR5as-0006dS-1H for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 11:13:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PR5aq-0006Wg-Iz for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 11:13:13 -0500 Received: from walleye.ccbr.umn.edu ([128.101.116.11]:2629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PR5aq-0006WN-EG for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 11:13:12 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jeff Horn Cc: emacs-orgmode list Jeff Horn wrote: > On Fri, Dec 10, 2010 at 2:09 AM, Thomas S. Dye 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.