From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#53170: 29.0.50; Can't repetitively click next node button inside Info header line Date: Wed, 12 Jan 2022 19:20:40 +0200 Organization: LINKOV.NET Message-ID: <865yqpsznj.fsf@mail.linkov.net> References: <877db7nhjn.fsf.ref@yahoo.com> <877db7nhjn.fsf@yahoo.com> <86h7aaiqx6.fsf@mail.linkov.net> <83y23m769y.fsf@gnu.org> <86iluqku65.fsf@mail.linkov.net> <83fspu6r1a.fsf@gnu.org> <86bl0ijdcd.fsf@mail.linkov.net> <83ee5e6nwk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36731"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: luangruo@yahoo.com, 53170@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 12 18:28:35 2022 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 1n7hQI-0009Nj-NU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Jan 2022 18:28:34 +0100 Original-Received: from localhost ([::1]:53212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7hQH-0007hG-Fy for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Jan 2022 12:28:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7hPn-0007bK-0V for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 12:28:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7hPm-0007z0-Kz for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 12:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n7hPm-0008GA-IJ for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 12:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Jan 2022 17:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53170 X-GNU-PR-Package: emacs Original-Received: via spool by 53170-submit@debbugs.gnu.org id=B53170.164200844631678 (code B ref 53170); Wed, 12 Jan 2022 17:28:02 +0000 Original-Received: (at 53170) by debbugs.gnu.org; 12 Jan 2022 17:27:26 +0000 Original-Received: from localhost ([127.0.0.1]:58920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7hPC-0008Es-0j for submit@debbugs.gnu.org; Wed, 12 Jan 2022 12:27:26 -0500 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:56545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7hPA-0008EM-CJ for 53170@debbugs.gnu.org; Wed, 12 Jan 2022 12:27:24 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 55DF2FF806; Wed, 12 Jan 2022 17:27:16 +0000 (UTC) In-Reply-To: <83ee5e6nwk.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 11 Jan 2022 22:03:07 +0200") 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:224009 Archived-At: >> Then these bindings are interfering: >> >> (define-key keymap [header-line down-mouse-1] 'mouse-drag-header-line) >> (define-key keymap [header-line mouse-1] 'mouse-select-window) >> >> The problem can be fixed by replacing these lines with: >> >> (define-key keymap [header-line mouse-1] 'Info-mouse-follow-link) >> >> But I don't know how important is the feature of selecting/dragging the header-line? > > I don't think I understand how 2 clicks one after another are taken as > a drag-mouse event. Can you tell why this happens? Actually, its's mouse-select-window that steals the click. There is no need to bind mouse-1 to mouse-select-window because the window is selected anyway, so this patch fixes the reported problem: diff --git a/lisp/info.el b/lisp/info.el index f4f0f9790c..bb8cd0d312 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -4693,7 +4693,7 @@ Info-goto-emacs-key-command-node (defvar Info-link-keymap (let ((keymap (make-sparse-keymap))) (define-key keymap [header-line down-mouse-1] 'mouse-drag-header-line) - (define-key keymap [header-line mouse-1] 'mouse-select-window) + (define-key keymap [header-line mouse-1] 'Info-mouse-follow-link) (define-key keymap [header-line mouse-2] 'Info-mouse-follow-link) (define-key keymap [mouse-2] 'Info-mouse-follow-link) (define-key keymap [follow-link] 'mouse-face) --