From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#48199: 28.0.50; Org mode surprisingly usurps Calendar key binding Date: Mon, 03 May 2021 18:07:25 +0200 Message-ID: <87eeen243m.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25363"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: 48199@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 03 18:08:28 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ldb7T-0006RT-JP for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 18:08:27 +0200 Original-Received: from localhost ([::1]:41788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldb7S-0007tu-NE for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 12:08:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldb75-0007cS-RU for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 12:08:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35668) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldb74-0007Bc-OR for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 12:08:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldb74-00006L-J1 for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 12:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 May 2021 16:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48199 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1620058061380 (code B ref -1); Mon, 03 May 2021 16:08:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 May 2021 16:07:41 +0000 Original-Received: from localhost ([127.0.0.1]:47213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldb6j-000064-6D for submit@debbugs.gnu.org; Mon, 03 May 2021 12:07:41 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:42216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldb6h-00005y-Mh for submit@debbugs.gnu.org; Mon, 03 May 2021 12:07:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldb6g-0007LU-4S for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 12:07:38 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:40103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldb6a-0006uz-PV for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 12:07:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620058048; bh=HOpNGqVxNHwqjdzQ5uopFiG97UlPwlpNDq12PnzLsXo=; h=X-UI-Sender-Class:From:To:Subject:Date; b=MBzIrcpNukYmA2bDpPtKwA/HDemhB5ccYSiqsyM+QWXZU7jHLgYrpyLVZuutDQsDo NLWBbIh75vDJ5BkY6/wlFv+RQJ7/BHK6jrJt9hZBup2c+/sgubuhh0GhSWtWOI7JDm yJRctglI/4NEuTG820fQW5c8LoxjtgqN3HQXoLaA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobe-jhalfs ([94.220.121.81]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MtOGU-1lQ2T01Xos-00uqnn for ; Mon, 03 May 2021 18:07:28 +0200 X-Provags-ID: V03:K1:Yq0aNYi9y0gmcyOXH1r8UENR+sx8+jL5JJPnATMB38QOeC4CLzj 77KTr0zFcNMJDg+3JZfymcjaZlEurKGG4Mf9E8C9qxy91Nc7PF7bnEzjkWGIy6bxPHuYY0t Prfk8LASDQDWbcTZgZ84zhAha14/qeXo8rRp1BaNjOASn2njbEhopvSv8/PmUHAQgRrl+xH AF0beaXLA0XE3Fiwtwypw== X-UI-Out-Filterresults: notjunk:1;V03:K0:UDN6gV+mvHc=:5AIBGJozkbnCHaxEgNZs8x j6+04LUyBrDceFh+SiG7CYmh5OjRGFO7HLnpszblb0lJ4xz1bRoKpW9aDcgNQTYKIiiLl6lNh ci3eihewSxiDSOvJLbwzSe7Q65Gew5JM/Pxgmtr1qwmjBMNipN34KrTqhEDwZFIpxi4jZ0TV8 zKrLo4X0QwMZ+22XbtOIDdNfYMOcjrquAwbfMYGdAlz+kiZlQ81SPQrBUTdJ1cQRapuplc/x3 sfQtgUVVWvvSUnr0bkhZtLpyK+LgLGHmkZlCRkVRPtIYWSdlQK4uvJsC9LGwE2iByElsVrUel 66nzSayR7Qvf5wLazQF21czCmZ44cQiPNtzs2mD8naLWTzOrlX2VUz9UHGjgDGV5qWyTFyLct p2uQfj6johNOfV/orOZAOkIw33FxSKZbY57jKzEnTI5LdCGQHcKY2PSJdUuJVdaZwMtv1xLEQ 8A0GbWlA4I9IzOPVlhLM9t8sJ1OEkMlarpN40+1TqbIax/p1zQnT39cQFB7ZthUyT7SYmWnw9 QDLzzQFMiHZTvl6Jy/tyCtCxdXxSxhDpa4RZRbny84xRzFFAyEKKMDII7BiQ4FutZBxFtBWrL Z8LCHGYGf3lpMDrhn/F6MaaryOvFLVEvIzZprWazv0bXOqdd9JW0C46bsLS0/rPovo6GOcnzm OVLm0AEho76aX04Dj+MuVFsrDLLlryeWnRjslvNRTAQxrAssPlsdMJv+GK8krokuXp5uxzfHc SB9nW88il9xUVzrga+NdHZPG2NSMn0yBXYEUVokxrrpuV2A8lUCbfxRbZTW6McbjprDnAO2i Received-SPF: pass client-ip=212.227.17.20; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:205529 Archived-At: By default `i' is a prefix key in calendar-mode for commands that insert diary entries. But if you happen to display a buffer that activates org-mode machinery, then `i' in calendar-mode becomes bound to org-agenda-diary-entry and typing it can raise a wrong-type-argument error. This can happen by visiting a file in Org mode. To reproduce: 0. emacs -Q 1. (sanity check:) Type `M-x calendar RET' and then in the Calendar buffer type `i C-h': the *Help* buffer displays all the commands invoked by `i' plus one or more keys. 2. Visit the file `ORG-NEWS' (e.g. by typing `C-h n C-x C-f O TAB RET'). 3. Type `M-x calendar RET' and then in the Calendar buffer type `i' => Wrong type argument: commandp, org-agenda-diary-entry This can also catch users by surprise, e.g. in Gnus. To reproduce, replace step 2 above by the following: 2a. Type `M-x gnus', answer `y' at the prompt; in the Gnus buffer type `B RET news.gmane.io RET'. 2b. In the *Gnus Browse Server* buffer type `C-s humani' to put point on the gmane.emacs.humanities group; type RET to enter it. 2c. Type `j <87sg6wulu6.fsf@localhost> RET', which displays an article containing an org-mode source code block. 3. As above, resulting in the same error (when done from emacs -Q). The Org mode manual (info "(org) Agenda Commands") does describe its use of the `i' binding in the Calendar, and if Org mode has its own versions of the commands that use `i' by default in calendar-mode, then overriding the calendar-mode bindings is no problem for Org Agenda users, but those bindings should not be overridden just by displaying a buffer that happens to be in org-mode or happens to contain an Org source code block. In GNU Emacs 28.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.24.17, cairo version 1.17.3) of 2021-04-26 built on strobe-jhalfs Repository revision: 40c71e574ad27deee003a0850a40171750234d59 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Linux From Scratch SVN-20200401 Configured using: 'configure --with-xwidgets 'CFLAGS=-Og -g3' PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LCMS2 LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB