From: "Štěpán Němec" <stepnem@gmail.com>
To: Andrea Crotti <andrea.crotti.0@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: going back in time
Date: Tue, 27 Jul 2010 14:14:27 +0200 [thread overview]
Message-ID: <871vapdsv0.fsf@gmail.com> (raw)
In-Reply-To: <m17hki2exj.fsf@82-052.eduroam.rwth-aachen.de> (Andrea Crotti's message of "Mon, 26 Jul 2010 21:58:32 +0200")
Andrea Crotti <andrea.crotti.0@gmail.com> writes:
>>
>> 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.
>>
>> Štěpán
>
> Yes of course it's not easy, but I think there could be something like
> (save-global-excursion
> command
>
> which could first save the global configuration and then execute a
> command.
>
> Would it maybe be too slow?
> At least the global key mapping and variable values I think it could be
> done...
Why don't you just try it?
(setq bkp-global-map (copy-seq global-map))
...
GO CRAZY
...
(setq global-map bkp-global-map)
(Note that I have no idea if it will even work as expected for keymaps;
your backup may still share some structure with the original; not sure.
You might try `copy-tree'.)
Same with other variables.
Štěpán
next prev parent reply other threads:[~2010-07-27 12:14 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
2010-07-26 19:58 ` Andrea Crotti
2010-07-27 12:14 ` Štěpán Němec [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871vapdsv0.fsf@gmail.com \
--to=stepnem@gmail.com \
--cc=andrea.crotti.0@gmail.com \
--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.
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).