From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: possible to make loading org not make any changes? Date: Wed, 6 May 2009 09:30:53 +0200 Message-ID: References: <20524da70905051935w346bd1d4i92f2fb4a1a8ee13e@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1baq-00017m-3X for emacs-orgmode@gnu.org; Wed, 06 May 2009 03:31:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1bal-00016q-I3 for emacs-orgmode@gnu.org; Wed, 06 May 2009 03:31:03 -0400 Received: from [199.232.76.173] (port=58383 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1bak-00016d-JC for emacs-orgmode@gnu.org; Wed, 06 May 2009 03:30:59 -0400 Received: from mx20.gnu.org ([199.232.41.8]:41823) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M1bak-0004wc-1I for emacs-orgmode@gnu.org; Wed, 06 May 2009 03:30:58 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1bai-00061L-QA for emacs-orgmode@gnu.org; Wed, 06 May 2009 03:30:57 -0400 Received: by ewy6 with SMTP id 6so5885276ewy.42 for ; Wed, 06 May 2009 00:30:55 -0700 (PDT) In-Reply-To: <20524da70905051935w346bd1d4i92f2fb4a1a8ee13e@mail.gmail.com> 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: Samuel Wales Cc: emacs-orgmode@gnu.org On May 6, 2009, at 4:35 AM, Samuel Wales wrote: > I've noticed that loading org undoes some changes that I do, such as > redefining keys in org-mode-hook back to what they did before. > > I wonder if it's possible and practical as a matter of philosophy to > make loading org not have any side effects? Of course it can be done, but it would be a lot of work to do so. All key bindings etc would have to be wrapped into forms testing if org has already been loaded etc etc. Maybe the easiest is to restart org-mode in all relevant buffers (mapc (lambda (b) (with-current-buffer b (and (org-mode-p) (org-mode)))) (buffer-list)) Maybe org-reload should actually do so? The main side effect would be that the outline visibility would change back to it's initial values. - Carsten