From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Newsgroups: gmane.emacs.help Subject: Re: going back in time Date: Tue, 27 Jul 2010 14:14:27 +0200 Message-ID: <871vapdsv0.fsf@gmail.com> References: <87iq42dpqn.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280232984 26957 80.91.229.12 (27 Jul 2010 12:16:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2010 12:16:24 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andrea Crotti Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 27 14:16:22 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Odj4x-00034Q-Rr for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jul 2010 14:16:16 +0200 Original-Received: from localhost ([127.0.0.1]:48587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Odj4x-0007rE-8M for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jul 2010 08:16:15 -0400 Original-Received: from [140.186.70.92] (port=57676 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Odj4T-0007q9-2O for help-gnu-emacs@gnu.org; Tue, 27 Jul 2010 08:15:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Odj4R-0000Hl-W6 for help-gnu-emacs@gnu.org; Tue, 27 Jul 2010 08:15:44 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:57861) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odj4R-0000Hd-Rb for help-gnu-emacs@gnu.org; Tue, 27 Jul 2010 08:15:43 -0400 Original-Received: by pwi8 with SMTP id 8so850053pwi.0 for ; Tue, 27 Jul 2010 05:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :in-reply-to:references:user-agent:date:message-id:mime-version :content-type:content-transfer-encoding; bh=jyWm5AAajvPwjjxUWLvpvQwoffIwmcUrG9mG62JxYmA=; b=PKtjAaLZkqCBpzkDQaG64BSCfxEVTdyJr36tDuHwSr9WZr7+b7xYUGvjnwYoak5jDl gAFtiBzEXAQKNMHloK9w/zg2ZT89BM/j6N+kbtGum46o4z4t4jrCVjLyuxxwb77eTgHc wv4q9OnJTASRJf6Rgk3k19jCg4J5Ri2CmwaTM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; b=K8CWlMsw9UE0BKhCF8MVxb3QNfdsTud6kKJg8zHaqarUMfdSk0pMBOqlq+Nb2UJWkv sLzEAi79133RZ+UuhTkcsEGEIJNzxgeu2AAAbvliOMzMH3ZmFLRv9Zu9aQpABTWVFD0f ZRRx4JUQ5N6XE7cEgKZiY/fm2LA4JPPVlKBfE= Original-Received: by 10.114.59.1 with SMTP id h1mr13107795waa.28.1280232942084; Tue, 27 Jul 2010 05:15:42 -0700 (PDT) Original-Received: from localhost ([88.103.132.186]) by mx.google.com with ESMTPS id x9sm8736891waj.15.2010.07.27.05.15.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Jul 2010 05:15:41 -0700 (PDT) In-Reply-To: (Andrea Crotti's message of "Mon, 26 Jul 2010 21:58:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74305 Archived-At: Andrea Crotti 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. >> >> =C5=A0t=C4=9Bp=C3=A1n > > 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. =C5=A0t=C4=9Bp=C3=A1n