From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: Re: [RFC] Self-configuring Org-mode files Date: Fri, 10 Dec 2010 11:20:07 -0500 Message-ID: References: <4D025193.5030705@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=54266 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PR5hw-000380-Eb for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 11:20:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PR5hu-0008Ib-0v for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 11:20:32 -0500 Received: from mail-fx0-f48.google.com ([209.85.161.48]:50432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PR5ht-0008IP-Pv for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 11:20:29 -0500 Received: by fxm2 with SMTP id 2so3641595fxm.35 for ; Fri, 10 Dec 2010 08:20:29 -0800 (PST) In-Reply-To: <4D025193.5030705@ccbr.umn.edu> 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: Erik Iverson Cc: emacs-orgmode list Hah! You're right. Sorry for noise. On Fri, Dec 10, 2010 at 11:13 AM, Erik Iverson wrote: > > > 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. > > -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jhorn@gmu.edu jrhorn424@gmail.com http://www.failuretorefrain.com/jeff/