From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#68947: 30.0.50; Gnus article mode keybindings Date: Sat, 10 Feb 2024 10:59:21 -0800 Message-ID: <87mss8xi0m.fsf@ericabrahamsen.net> References: <87bk8ut2qd.fsf@gmail.com> <871q9p39zp.fsf@ericabrahamsen.net> <87r0hofow9.fsf@gmail.com> <87r0hkxkc5.fsf@ericabrahamsen.net> <86fry0tcco.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="18330"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: pranshusharma366@gmail.com, 68947@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 10 20:00:00 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 1rYsa0-0004Z3-5j for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Feb 2024 20:00:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYsZo-00036E-Pt; Sat, 10 Feb 2024 13:59:48 -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 1rYsZn-00035p-3N for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 13:59:47 -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 1rYsZm-0003e7-RX for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 13:59:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rYsa2-0003sW-I5 for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 14:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Feb 2024 19:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68947 X-GNU-PR-Package: emacs Original-Received: via spool by 68947-submit@debbugs.gnu.org id=B68947.170759159214846 (code B ref 68947); Sat, 10 Feb 2024 19:00:02 +0000 Original-Received: (at 68947) by debbugs.gnu.org; 10 Feb 2024 18:59:52 +0000 Original-Received: from localhost ([127.0.0.1]:33587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYsZr-0003rN-Vh for submit@debbugs.gnu.org; Sat, 10 Feb 2024 13:59:52 -0500 Original-Received: from mail.ericabrahamsen.net ([52.70.2.18]:56034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYsZp-0003r4-SX for 68947@debbugs.gnu.org; Sat, 10 Feb 2024 13:59:50 -0500 Original-Received: from localhost (71-212-21-65.tukw.qwest.net [71.212.21.65]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 3C28AFA0B2; Sat, 10 Feb 2024 18:59:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1707591567; bh=NlIwBRxuhjm9mrzlCRDWy/bg6Sw1vN/p6/P/e0UIZt0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=xuSXzzmlRqAJvuu63s+pdHSjtmhuSV59G809HlUeWM2uCafJhJanceymK3xPKXTKV hV/xYcWe/oZwt7ZZJ+omm5usE9N61OSkwipcoI06xAJ9dtB7r91Jsr6u+K+CwuJQiv O2LHq6qmL5pkAWFqioMvm7Sv8+NR3ijsr0jVDods= In-Reply-To: <86fry0tcco.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 10 Feb 2024 20:15:19 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279785 Archived-At: On 02/10/24 20:15 PM, Eli Zaretskii wrote: >> Cc: 68947@debbugs.gnu.org >> From: Eric Abrahamsen >> Date: Sat, 10 Feb 2024 10:09:14 -0800 >> >> Your immediate issue is caused by the fact that >> `gnus-article-describe-bindings', which theoretically should be >> responsible for telling the user about all the redirections, is only >> aware of the "S" keymap prefix. It doesn't know all the ways in which an >> 'undefined binding might get translated into a valid summary-mode >> command, and can't show you those. >> >> To be honest, I don't think I'm going to be able to fix this. If we keep >> the current implementation, `gnus-article-describe-bindings' would have >> to be made aware of the additional redirections, and I wouldn't even >> know where to start. >> >> It could be that Elisp has better tools for this situation by now (the >> original architecture was in place before 1997), but I'm not sure what >> those tools are. Perhaps someone will chime in with a helpful >> suggestion... > > Strange as it may sound, I see no grave problem here: C-h is not > guaranteed to work after any arbitrary prefix, anyway. So if that is > too hard to fix, we could just punt and leave it unsolved. I'm inclined to say it's too hard to fix! The only cleaner solution I can think of is to actually define article-mode versions of all the summary-mode commands we'd want to call, which would also provide a place to do the necessary article-specific adjustments. That's a lot of very tightly-coupled code, though. > What about "C-h b" -- does that work in the situation described by the > recipe? No, that doesn't really work. The gnus-article-mode bindings are listed under a "fundamental-mode Major Mode Bindings:" heading (??). That includes gnus-article-mode's own keybindings, and the summary-mode bindings that have been explicitly attached at the "S" prefix, but nothing else.