From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#74903: [PATCH] Add function to show table of keys when describing keymap variable Date: Tue, 17 Dec 2024 08:49:59 +0100 Message-ID: <87ttb24ul4.fsf@gmail.com> References: <87v7vktu7s.fsf@posteo.de> <86zfkvpqn9.fsf@gnu.org> <87bjxb5yg5.fsf@gmail.com> <37DCBABA-3D38-4FDD-8769-93E3D7F71DCE@posteo.de> 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="20975"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Andrea Corallo , Stefan Kangas , 74903@debbugs.gnu.org, Stefan Monnier To: Mekeor Melire Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 17 08:52:14 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 1tNSNJ-0005Ho-KM for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Dec 2024 08:52:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNSNC-00036s-8A; Tue, 17 Dec 2024 02:52:06 -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 1tNSN9-00036i-EE for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2024 02:52: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 1tNSN8-0006Ja-A7 for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2024 02:52:03 -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=cFDEv4tk3Q0Pnqv43ZMtjOjTtEysNVndKXPMejz9Jd0=; b=pgDqwjpvCp3Tp+X24c6Vibh5cy0wWuLiScsvBSMI2f5JwnVVQ3fgdydTj7KWurQnupasGrClJceLyldod9NUIQp7Dpiis4NIuBmIxAvtrFVC2JyvBqWF38RkLCDYCQdDyO73hyFdcsJr7ElKhPm1TSQ0Qn55RSY1Wfdq71v/Puwn06h2hyg+vBj6DnAgf+btCmuBL0Wa1mSn1bZmlXFyeatCVQ4tTeLQkLjQwQfwAl6WPlS4guYLt4eCUEx13gt08KEQgHTP3Pvpnuj+bMUuybOUAzY3q/VN0ikuw1L9jGw3CCfBROEVIRmgHiFTxBkIH4yppFZD46VZa/KrEErTNg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNSN7-000062-SZ for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2024 02:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Dec 2024 07:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74903 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74903-submit@debbugs.gnu.org id=B74903.173442187432752 (code B ref 74903); Tue, 17 Dec 2024 07:52:01 +0000 Original-Received: (at 74903) by debbugs.gnu.org; 17 Dec 2024 07:51:14 +0000 Original-Received: from localhost ([127.0.0.1]:57362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNSML-0008WC-J0 for submit@debbugs.gnu.org; Tue, 17 Dec 2024 02:51:13 -0500 Original-Received: from mail-wm1-f42.google.com ([209.85.128.42]:47587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNSMF-0008Vq-2E for 74903@debbugs.gnu.org; Tue, 17 Dec 2024 02:51:11 -0500 Original-Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4364a37a1d7so4599615e9.3 for <74903@debbugs.gnu.org>; Mon, 16 Dec 2024 23:51:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734421801; x=1735026601; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=cFDEv4tk3Q0Pnqv43ZMtjOjTtEysNVndKXPMejz9Jd0=; b=K2OI08z7bxSWzVHQVYqbzZbgNsb6YidngJ2Lk5/4x6+5sJBG5eanE/HzuCiwUs7ilE 7SGC+LddoUdbIdCKY0IRpAjPcLHnXcUvcz6B4A2Zxied1bStuOYhLPvHbpBgZTJrL7pM mNemszXRJHt7laEngQO3o+Upp6nq5CSLrr20gfBgVouUnHr/IdR1YGzzb+kUBrn48X62 XHIZZabLxtTS9eeI1UtqcgiuZ3SZLYLUXeQZYnAHmOS62v+jJKVSAVo6i4IgQhPFk/Z1 qcLztoo+QeVAlpYLKsjkKjy36IACX468nqZ/BIJ1FF443By31QTR35lp61p9FHjW1l+6 xpJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734421801; x=1735026601; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cFDEv4tk3Q0Pnqv43ZMtjOjTtEysNVndKXPMejz9Jd0=; b=xRNBQniVTXN3ZLh4MA+xqe0TlD06gIHlb1KbX9mPaWwVkBRLkkJ3shuHN+mvAa/7sS mjjoTfU2fKJ2vgJSUabQxzKAn4sdgc+wsoebEzcYzhHOEaYf//+dQv/0lL6fLXRnfRdT NaarHpfVneWLU1tNK1ULWb4PUAfD4WB8JVy9WaCqWBj5GBoFIMSdQ9Ghi6kRWvgLO2m0 95D/K0wdRF8qEuqext9Vrt6ZRiJ8QN/z0o9TQNjWlglAfqy5DVi5DY/szjbwrzzISIgg XS55rl6PjngRSKNr+BHgQRFpvThqi2kRAxi5jiD48og1c9WkzlXibkwwg8THI0U4Cr1X kpcw== X-Forwarded-Encrypted: i=1; AJvYcCXWrWDxq6P6hu0o/yDF73aomNFPkcRmQsnQ865bd7BtxXeO8Oc8wPb1HlQGUXOd0SWXvCbuPw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwVBmSkWH6KrQSWno/jDERhsSvaeyU07rCJeagrPo7cET3Xb2Hc gBTpndHQ9wOFcavRTDF4YyotBCLHSdMjq8YXvYGJrbUjKy8It0Xl X-Gm-Gg: ASbGncupcSZXJ5Td3L4o4OgtGqg79o+pV/vAlb2GcYEfN7uz1bcPI7OxJzMab71V9n1 nzBGnHKkVYHL4I3VIdmrQcv97Tg8kI1Vu5zWu2fI5uq1YR9uzz7iairf4SWhLowhnzO+dg2arZo tQ3m1/GOEdUK2gkI5UxCYmCHUgJmesDAJf6H9Bsv/lN06ifn7kmHwu9U2CdOuztWLTRuvuy4On8 PDJ76DDqhoWUPmbGodG+gjLDuYJBwZLPCy4TuX0aa4= X-Google-Smtp-Source: AGHT+IE6oBsZYHQkVxcsCdaWKnfPV6AbdUoepU7vPa3EZhGO3bf4HVD12O0fjc+aGhedc4HMUf4wzw== X-Received: by 2002:a05:600c:154c:b0:434:ff30:a159 with SMTP id 5b1f17b1804b1-4362a982c34mr148420555e9.0.1734421800960; Mon, 16 Dec 2024 23:50:00 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb51:a104:d8c:5af4:8136]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-388c80162a6sm10192020f8f.33.2024.12.16.23.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2024 23:50:00 -0800 (PST) In-Reply-To: <37DCBABA-3D38-4FDD-8769-93E3D7F71DCE@posteo.de> (Mekeor Melire's message of "Mon, 16 Dec 2024 18:41:19 +0000") 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:297256 Archived-At: >>>>> On Mon, 16 Dec 2024 18:41:19 +0000, Mekeor Melire = said: Mekeor> I get the impression that you talk about M-x describe-keymap RE= T which does already exist. No, I=CA=BCm talking about `describe-bindings'. Mekeor> That is not what I proposed. What I proposed is two things: Mekeor> 1. Allow users to opt-in to have C-h v foo-keymap RET show a ta= ble of Mekeor> key bindings in addition to the formatting as S-expression. Thi= s fits Mekeor> well into the existing help-fns mechanism. The patch I submitted Mekeor> implements a prototype. Again, I don=CA=BCt see a need for it. A user trying to figure out keybindings is not going to be inspecting keymap variables, and `describe-bindings' or `describe-mode' tells them what they need to know. A developer writing code presumably knows about keymaps, and doesn=CA=BCt need a different visual representation of them to get stuff done. Mekeor> 2. In help-mode, bind a single-char-key like "K" to a Mekeor> command that will allow users to easily switch from Mekeor> describing a variable as variable to describing it as Mekeor> keymap a la describe-keymap. See my previous paragraph. Robert --=20