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#74792: 29.2.50; goto-address-mode should support RET in special-mode buffers Date: Mon, 16 Dec 2024 19:54:43 +0200 Organization: LINKOV.NET Message-ID: <87seqnecnw.fsf@mail.linkov.net> References: <86ldwm2lko.fsf@gnu.org> <86ed2e2gnm.fsf@gnu.org> <87v7vp6vfd.fsf@mail.linkov.net> <87a5d06ntm.fsf@mail.linkov.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="10639"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: dmitry@gutov.dev, Eli Zaretskii , 74792@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 18:57:19 2024 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 1tNFLK-0002W4-S6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 18:57:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNFLE-0003CM-7j; Mon, 16 Dec 2024 12:57:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNFL4-0002zx-5e for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 12:57:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNFL3-0006WY-Tj for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 12:57:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=/g7Zyq/PZBLfpLzc1jKy6MzQS4d+IzbRMOhlMKHWGpk=; b=U1XrHqdeALDV1IjFinZ+eHe1jqPymFW5wWirGpRMpUO5jEe/b8wl+tVhwyoUBs2cROF6umywL9pFTV2oOq7UTDhaqOJUYypscevD7Sz6SeJ1FFXhSdB7sK1l+3J1Nq604lEYVSj1BtXTP3up4NnDxZpZxonCd1jyXz4k3ANlz6LorsQY82n4erzqbFVUZAfIOfP7dZAD1k4huUlyB4Nt1Uf5dNTD3Y1zGEdASTF+O9oy/qGBOKO/D5yVXeaO7+e/VtSzg3BqOAGAYg3lg+588LGjSb6+OUX80S1GWQsn8ggTq4XxAjWChLFOOgaN1z0Ouq6SYyvwSuYzOJc7L/qdWA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNFL3-00081O-OD for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 12:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 17:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74792 X-GNU-PR-Package: emacs Original-Received: via spool by 74792-submit@debbugs.gnu.org id=B74792.173437180830802 (code B ref 74792); Mon, 16 Dec 2024 17:57:01 +0000 Original-Received: (at 74792) by debbugs.gnu.org; 16 Dec 2024 17:56:48 +0000 Original-Received: from localhost ([127.0.0.1]:55979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNFKq-00080k-8h for submit@debbugs.gnu.org; Mon, 16 Dec 2024 12:56:48 -0500 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:38179) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNFKo-00080S-2M for 74792@debbugs.gnu.org; Mon, 16 Dec 2024 12:56:47 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 7478860002; Mon, 16 Dec 2024 17:56:36 +0000 (UTC) In-Reply-To: <87a5d06ntm.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 13 Dec 2024 09:31:49 +0200") X-GND-Sasl: juri@linkov.net 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297206 Archived-At: > For a long time I had been using RET to scroll by one line in Info: > > (define-key Info-mode-map [return] > (lambda () > (interactive) > (if nil ;; TODO: add predicate to check if point is on Info refs > (Info-follow-nearest-node) > (View-scroll-line-forward)))) > > But still can't find a predicate that would prevent RET from visiting > a reference only when the cursor moves to it while scrolling. > And don't believe this is possible. So need to use other > less intuitive keys to visit links. I forgot about other futile attempts to find a suitable heuristic: (define-key gnus-article-mode-map [return] 'my-gnus-article-press-or-scroll) (defun my-gnus-article-press-or-scroll () (interactive) ;; When point is at the bottom of the window while scrolling (if (eq (point) (save-excursion (move-to-window-line -1) (point))) (View-scroll-line-forward) (gnus-article-press-button))) Here the button is pressed when point is not at the bottom, because point moves to the bottom while scrolling. But in `emacs -Q` I see that point remains at the top while scrolling. So this behavior depends on customization.