From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#10289: 24.0.92; Sneaky clobbering of user key binding Date: Tue, 13 Dec 2011 16:19:45 +0100 Message-ID: <87iplkmrce.fsf@escher.fritz.box> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1323789663 30893 80.91.229.12 (13 Dec 2011 15:21:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2011 15:21:03 +0000 (UTC) To: 10289@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 13 16:20:58 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RaUA3-0003sY-Ia for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Dec 2011 16:20:55 +0100 Original-Received: from localhost ([::1]:41975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaUA3-0000EF-1W for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Dec 2011 10:20:55 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:60150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaU9z-0000E6-Gc for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 10:20:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RaU9s-00055I-RA for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 10:20:51 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaU9s-00055C-O3 for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 10:20:44 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RaUB8-00060E-Eh for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 10:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Dec 2011 15:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10289 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.132378969323035 (code B ref -1); Tue, 13 Dec 2011 15:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Dec 2011 15:21:33 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RaUAe-0005zT-Mu for submit@debbugs.gnu.org; Tue, 13 Dec 2011 10:21:33 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RaUAa-0005zL-Vu for submit@debbugs.gnu.org; Tue, 13 Dec 2011 10:21:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RaU9A-0004wC-PW for submit@debbugs.gnu.org; Tue, 13 Dec 2011 10:20:10 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:50141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaU9A-0004w3-Nq for submit@debbugs.gnu.org; Tue, 13 Dec 2011 10:20:00 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:59978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaU95-0007uc-0k for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 10:20:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RaU90-0004uo-Ie for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 10:19:54 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:40843) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RaU90-0004uZ-52 for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 10:19:50 -0500 Original-Received: (qmail invoked by alias); 13 Dec 2011 15:19:46 -0000 Original-Received: from i59F556A7.versanet.de (EHLO escher.fritz.box) [89.245.86.167] by mail.gmx.net (mp011) with SMTP; 13 Dec 2011 16:19:46 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1+HIhcbmX2HpkQg2LwNhY565mzo4cR9wFOuEhFA1t 0V9usLmOsYdeRa User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 13 Dec 2011 10:22:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54919 Archived-At: I was reading gnu-emacs-help with Gnus, and one of the articles included a MIME part of type "text/x-org", which results in org-mode being called, which loads a slew of org libraries. Some time later I went to the Calendar and typed `k', which is unbound in the default Calendar and Diary mode maps, but which I have bound to a command I defined. However, this time my command wasn't called, but instead org-agenda-action. This is due to the defcustom org-calendar-agenda-action-key in org.el, which is set to `k' by default and was enabled when I read the article with the text/x-org MIME part. I think it's a bug to clobber a user setting in this sneaky way: I don't use Org, so I didn't know about this binding or the defcustom that sets it. But even if I did know, it seems rather nasty to be forced to set a variable to avoid clobbering a setting I had no reason to expect to be problematic. I think the best solution to this problem from the user's POV would be to prevent the processing of a MIME part from effecting other buffers, perhaps by unloading the libraries after the processing (unless they were already loaded before the article was opened); or would that throttle Emacs too much? If so, a less desirable solution could be for defcustoms like org-calendar-agenda-action-key to check whether the key is bound and in that case require (as nonintrusively as possible) user intervention. In GNU Emacs 24.0.92.2 (i686-suse-linux-gnu, GTK+ Version 2.24.7) of 2011-12-05 on escher Windowing system distributor `The X.Org Foundation', version 11.0.11004000 configured using `configure '--without-toolkit-scroll-bars' 'CFLAGS=-g'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default enable-multibyte-characters: t