all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Štěpán Němec" <stepnem@gmail.com>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: going back in time
Date: Tue, 27 Jul 2010 14:22:49 +0200	[thread overview]
Message-ID: <87sk35cdwm.fsf@gmail.com> (raw)
In-Reply-To: <87fwz611jl.fsf@pellet.net> (Eric Abrahamsen's message of "Mon, 26 Jul 2010 12:33:02 -0700")

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Štěpán Němec <stepnem@gmail.com> writes:
>
>> Andrea Crotti <andrea.crotti.0@gmail.com> writes:
>>> Is there any way to revert back to the last global state (it might be
>>> useful also in other cases of cours)?
>>
>> No (other than redoing your original bindings yourself, obviously).
>> And if a package unconditionally/irreversibly adds global bindings, you
>> can safely say it's badly written and complain to its author. That's
>> what modes and keymaps are for.
>
> Out of curiosity, does unload-feature also unload that feature's
> keybindings? How would a package author provide keybindings in
> reversible way?

(info "(elisp)Unloading")

I don't think it does. The problem is not unloading, but restoring the
original bindings. The package could provide a FEATURE-unload-function
which would restore the bindings previously saved (which would also have
to be done manually). But as I said, I can't think of a legitimate
reason for a package to mess with global-map. If you think defining a
mode and a keymap for the functionality you provide is unnecessary, just
define the commands and put some keybinding recommendations into a
commentary.

Štěpán



  reply	other threads:[~2010-07-27 12:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-26 18:43 going back in time Andrea Crotti
2010-07-26 19:09 ` Štěpán Němec
2010-07-26 19:33   ` Eric Abrahamsen
2010-07-27 12:22     ` Štěpán Němec [this message]
2010-07-26 19:58   ` Andrea Crotti
2010-07-27 12:14     ` Štěpán Němec
2010-07-27 12:16     ` Štěpán Němec
2010-07-26 20:08 ` Andreas Röhler
2010-07-29 13:55   ` Andrea Crotti
2010-07-29 13:55   ` Andrea Crotti
     [not found] <mailman.7.1280169840.16726.help-gnu-emacs@gnu.org>
2010-07-26 18:49 ` Andreas Politz

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sk35cdwm.fsf@gmail.com \
    --to=stepnem@gmail.com \
    --cc=eric@ericabrahamsen.net \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.