From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 3cE3CFOQKGARVQAA0tVLHw (envelope-from ) for ; Sun, 14 Feb 2021 02:52:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eA6PA1OQKGAkDgAA1q6Kng (envelope-from ) for ; Sun, 14 Feb 2021 02:52:03 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B0AF81BD11 for ; Sun, 14 Feb 2021 03:52:01 +0100 (CET) Received: from localhost ([::1]:55730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lB7Vv-00022E-Kk for larch@yhetil.org; Sat, 13 Feb 2021 21:51:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB7V0-000224-Le for emacs-orgmode@gnu.org; Sat, 13 Feb 2021 21:51:02 -0500 Received: from mout.web.de ([212.227.17.11]:50999) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB7Uy-0004UC-Jm for emacs-orgmode@gnu.org; Sat, 13 Feb 2021 21:51:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1613271057; bh=hZhPPp2bWhu7wdJE08UWeQ+z7EMCpICQwqOu7+mtLJ0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=pTEVmboIb+PvpHkMDaJ7gNCTUZ3EQnzvZfzBxYTx7syFAY9kZjt1alnCzhp5EeQ3c aEo+Qr9h4MZKic8+Tw33bOfGMJErwt186Ggs8soQ1YyEv3NGT/9lElvxXLIhLj+FT+ 14/jTtmWyk3j+eUjwSSU3znfaKUxP9l90gPB7Il4= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.218.220.60]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MDgLi-1l6Ccg3yUY-00H5IH; Sun, 14 Feb 2021 03:50:57 +0100 From: Michael Heerdegen To: emacs-orgmode@gnu.org Subject: org-read-date: selecting date with mouse-2 in calendar Date: Sun, 14 Feb 2021 03:50:56 +0100 Message-ID: <87tuqfnyzz.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:OqOzWyx++FVSFuqhWBxdMGqY3tv3T77ETO/gJEegqSBQ36WmM+H 7+f2Xc5hEEpgNaRy4+6OA/vGYcyf7OaJDnDYW99QGzzrHub2+Rvu0TbPhfTIJsKgBjlGYwo RywWwoBfRmpfBfvT7LdUDk3bVpePAyZ0pD5SIKwJNWuk/tMueO15hbUN/ABWvABYWrTTDwl k9ZVyb6FK1OAh1q51fssg== X-UI-Out-Filterresults: notjunk:1;V03:K0:dybtfqW2gwo=:qQlg/4cBKTt9+hMw0Qx+dY bcBfr6hQGFC0NEPd2j1o7HDCz7cHva4CyJkf/dg1uh4X/liFbEJi6Qss/ipJP6DuzxOBkbLDW SB0W+YT2pYBIESMqp93bgi4HKuMEy6WlKzNgd1vA1NnaK3IcoWx5LohFw206thmladUieJx+u zum8KZzmkOyd6QVkBL8ULFSQdlLfmtl8dOpjCjNokQH8kIwjkZDb0++zYDwEpwUK9Kq67AivQ yQYtpxercxkGtsoAyotuIb9Slqo71Lm4qbU4Jm7eMOQ7WVi/h/aYee+Bct9KmxhxVeAzZdgQo XiuuMrdiSX2LO0BtvtnfRp2kaFO4TLS6Lq1gWuayXSyM7ibhg5m3GAbISfZO22WxZnT4uGCqM I7OMJVU3zVPVHr5gjtJ5lePgN0w8R8KRcerwy9fCcLnFg84vvdNSAG/YzpWBz1Nn77YEqyVkD zGWHIxm4HJMr0e+CHk6wtfvcPONQ+O9R47EThixBthP13wWdZa1l9eJT7sIGv4/jQxHXaFnLh NCfzdURTOjjPajtWuq+of4rArCfvC/JX+Lp8rNF2eqRR0+Guigj3nkYIXhamrVAahArymeagi 9s1YtJnJjRQsIpP1K7O96O5yyN159vDRFuYkxu0PmeuYZZ4BjxERu9qt1GlIKAgjy5SOL7ulS fj1y7ZnuRoOPkrHyYJZe0/4n1TkR5z8mcvr/5oAzzuLnLau4PZRUyKIcaQX663cFeeCxK4/mb ZiFRsRzU28JNM0xQGWizUxkgJWD1kHTgUUVrDnav1dCnTtTz+hhAAwPG7BLI0qfqALNgQ/l5S LfQW5ZZB3l8boTni+s8QUV97r9ExQOI4BgZh9I7hrRqM3tUdDX0JsRmYTgyACi+4fwRte680T qDAcXuW/d/GHxKFWASya0GS+h0UA+QMWe1Bf/suGY= Received-SPF: pass client-ip=212.227.17.11; envelope-from=michael_heerdegen@web.de; helo=mout.web.de 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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Heerdegen Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=web.de header.s=dbaedf251592 header.b=pTEVmboI; dmarc=pass (policy=none) header.from=web.de; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B0AF81BD11 X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2yeWx+NHmra0 Hello, selecting a date from within `org-read-date' from the calendar works with mouse-1, but not with mouse-2 (with latest Emacs master and my settings loaded at least). The code seems to intend that it also works with mouse-2, but it fails. I don't prefer mouse-2, but it would be good to support it I think, since "clicking" in Emacs is with mouse-2 historically, breaking that might cause inconvenience. Why it doesn't work? Oh, that's because calendar already binds down-mouse-2 to pop-up a menu (see definition of `calendar-mode-map'). So when we would add the following line to `org-read-date' (it's obvious to where and I'm too lazy to create a patch now): + (org-defkey map [down-mouse-2] nil) it works as expected for me. Nothing is lost since the original popup-menu for the calendar is still being bound to down-mouse-3 (the more expected key for such a menu in my opinion, at least 2021). So please consider to add the above line to the defun of `org-read-date'. Regards, Michael.