emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: possible to make loading org not make any changes?
Date: Wed, 6 May 2009 09:30:53 +0200	[thread overview]
Message-ID: <BBAE9219-7161-47ED-82AB-37E354E056F5@gmail.com> (raw)
In-Reply-To: <20524da70905051935w346bd1d4i92f2fb4a1a8ee13e@mail.gmail.com>


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

  reply	other threads:[~2009-05-06  7:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-06  2:35 possible to make loading org not make any changes? Samuel Wales
2009-05-06  7:30 ` Carsten Dominik [this message]
2009-05-06 19:07   ` Samuel Wales
2009-05-07  5:50     ` Carsten Dominik

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=BBAE9219-7161-47ED-82AB-37E354E056F5@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=samologist@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).