From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeremy Bryant via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71648: 30.0.50; Allow which-key to report on translation bindings Date: Wed, 19 Jun 2024 22:13:55 +0100 Message-ID: <874j9o4ovg.fsf@jeremybryant.net> References: <87plsdxhnw.fsf@gmail.com> <867celoz4q.fsf@gnu.org> <874j9px8su.fsf@gmail.com> Reply-To: Jeremy Bryant Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3297"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71648@debbugs.gnu.org, Eli Zaretskii , Justin Burkett To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 19 23:15:18 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 1sK2eD-0000cF-Ha for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Jun 2024 23:15:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sK2dx-000499-MW; Wed, 19 Jun 2024 17:15:02 -0400 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 1sK2du-00048Y-Nj for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2024 17:14:58 -0400 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 1sK2du-00033b-GB for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2024 17:14:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sK2dx-0008Lx-NO for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2024 17:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jeremy Bryant Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Jun 2024 21:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71648 X-GNU-PR-Package: emacs Original-Received: via spool by 71648-submit@debbugs.gnu.org id=B71648.171883168032046 (code B ref 71648); Wed, 19 Jun 2024 21:15:01 +0000 Original-Received: (at 71648) by debbugs.gnu.org; 19 Jun 2024 21:14:40 +0000 Original-Received: from localhost ([127.0.0.1]:59481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sK2dc-0008Km-3F for submit@debbugs.gnu.org; Wed, 19 Jun 2024 17:14:40 -0400 Original-Received: from out-179.mta0.migadu.com ([91.218.175.179]:33422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sK2dZ-0008KW-1Q for 71648@debbugs.gnu.org; Wed, 19 Jun 2024 17:14:38 -0400 X-Envelope-To: 71648@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeremybryant.net; s=key1; t=1718831637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=S9jOF/2m4t06Dv2HLEQ8TZKOW2jZcFOF7h/33B6s+QE=; b=djLwRLYnOdw3sLJe+KpkbjnWAzLb0UQNs7kJCh2cqHOdD3o3eAX3w710YIZrWlbgc7/kz7 UH+YAX2dzc7IcJkbtnDUzli5/ddynlGvE+iYdEEGVhquc96DJj+6Wc/HJThQbCtuRUhMN8 1gK4qy+zLB4VsPaM6JMT2EKOYWTqsgI1lUCeITKSrTBYKOwhxa9D+7USA937Np9n/HWEVf zxvsfZOaG8EgtHTZCNMy9bze5hBjWzAqa6uy1kvACEo/YqPvRA84lyKzpdMkbFnlbQIENH ja1tAGodQ5ugGKqwfyQyN0r6amrohUxAQBihxWLPLP3NgArcZzy6xAHGASHdPQ== X-Envelope-To: eliz@gnu.org X-Envelope-To: justin@burkett.cc X-Envelope-To: rpluim@gmail.com X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <874j9px8su.fsf@gmail.com> (Robert Pluim's message of "Wed, 19 Jun 2024 17:16:01 +0200") X-Migadu-Flow: FLOW_OUT 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:287511 Archived-At: Robert Pluim writes: >>>>>> On Wed, 19 Jun 2024 11:09:36 -0400, Justin Burkett said: > > Justin> The purpose of which-key was to show the commands that are av= ailable > Justin> following an incomplete key sequence. If I understand correct= ly, these > Justin> maps don't hold commands and anyway would be processed before > Justin> which-key "sees" the current incomplete key sequence. > > They don=CA=BCt hold commands in the sense of defuns, but instead they > produce characters, which to Emacs is pretty much the same thing, and > looking up keys in them inside which-keys produces the same type of > display. > > Justin> If I understand correctly, if "C-d x" translates to "C-c x" t= hen > Justin> which-key I believe would see the sequence "C-c x" and find t= he > Justin> bindings following that sequence. I'm not sure how or why we = would > Justin> want to display the information that "C-d x" translates to "C= -c x". > > These maps don=CA=BCt translate sequences to sequences, they translate > sequences to characters: > > 'C-x 8 * E' -> =E2=82=AC > 'C-x 8 * L' -> =C2=A3 > etc > > so with my patch, typing 'C-x 8 *' show the entries for 'E' and 'L' > (and more besides) > > Robert This is a useful patch and would enhance which-key=20