From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#30660: mention describe-bindings on (info "(emacs) Keymaps") Date: Fri, 23 Aug 2019 11:44:25 -0700 (PDT) Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="__1566585866880271493abhmp0010.oracle.com" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="250599"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 30660@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 23 21:00:09 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i1EnB-0012tw-O9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Aug 2019 21:00:09 +0200 Original-Received: from localhost ([::1]:32984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1EnA-0001HR-0I for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Aug 2019 15:00:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41442) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1EYd-0002RQ-JU for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2019 14:45:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1EYc-00052v-82 for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2019 14:45:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60604) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1EYY-0004y8-JU for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2019 14:45:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i1EYY-0003a1-Fg for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2019 14:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Aug 2019 18:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30660 X-GNU-PR-Package: emacs Original-Received: via spool by 30660-submit@debbugs.gnu.org id=B30660.156658587713684 (code B ref 30660); Fri, 23 Aug 2019 18:45:02 +0000 Original-Received: (at 30660) by debbugs.gnu.org; 23 Aug 2019 18:44:37 +0000 Original-Received: from localhost ([127.0.0.1]:41192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1EY9-0003Yd-Ef for submit@debbugs.gnu.org; Fri, 23 Aug 2019 14:44:37 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:54460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1EY7-0003YH-0d for 30660@debbugs.gnu.org; Fri, 23 Aug 2019 14:44:36 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x7NIXlXU108554; Fri, 23 Aug 2019 18:44:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type; s=corp-2019-08-05; bh=mnWI4M3s6M0aCquseLoUranUoUtJnnc7uJKJ7Acw8Sg=; b=PL6HAMi58y4a/nGF4ddno/sUo0TI7t93Kr894BvDvHtoBDGe1Sx6m5UScZeypTFnSchr /HsRYfoqwDsLH6ioc//C66bFmZMvqqg1jRZw2mGlSnSCqVrdw9SwehCpT0dsIAw3I81A 1B4gz+vLWy8RsnZApYc6Q+UbNy/TGQLaKsDV2TEHUuZ+fvpWJ9UJARX7v1yILW/5Hwzj z/qrSYeyzbwTla7e0j0tGRWL+tte1GwBFTsvdu+AfKWdwlB/3yf7y4EMYg6+FhTnJ/zg rUdo1G0IygTENqKKLxAqCtVcL5jxw6ZQBZ209zx8ih/2kJWT5V1B3yX2sBRnyfaxR9vI vQ== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 2ue90u6jkv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 23 Aug 2019 18:44:28 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x7NIXN1c126057; Fri, 23 Aug 2019 18:44:27 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 2uj1y0t6hu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 23 Aug 2019 18:44:27 +0000 Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x7NIiRjB007707; Fri, 23 Aug 2019 18:44:27 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4873.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9358 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908230175 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9358 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908230175 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165717 Archived-At: --__1566585866880271493abhmp0010.oracle.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > > `describe-bindings' does not describe the bindings of a given > > keymap. > > > > S?he should use `describe-keymap' (`C-h M-k'), from `help-fns+.el'. > > > > It describes the bindings in a keymap in the usual human-readable > > way. You are prompted for a keymap variable (e.g., `ctl-x-map`), > > with completion. (Non-interactively, the argument can be a keymap > > itself or a keymap variable.) > > > > This or similar code should be in vanilla Emacs. (I've offered > > any and all of my code.) > > > > https://urldefense.proofpoint.com/v2/url?u=3Dhttps- > 3A__www.emacswiki.org_emacs_download_help-2Dfns- > 252b.el&d=3DDwIFaQ&c=3DRoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=3DkI= 3P6l > jGv6CTHIKju0jqInF6AOwMCYRDQUmqX22rJ98&m=3DyA0xm3W_AykCUU9THjbJlpxhVhQlA3X > AncZSWRe2Wc0&s=3DP11PKX0Nhl4PaaXOh-0ZYcfDDhlprpw4pnWG5QqizvQ&e=3D >=20 > I copied and evaluated the describe-keymap function, but when I typed > M-x describe-keymap I got the following error: >=20 > save-current-buffer: Symbol=E2=80=99s function definition is void: > Info-make-manuals-xref >=20 > I couldn't find the definition of a function by that name in the file > you indicated, so I'm guessing there's some dependencies involved and > that I don't have. Could you provide a version of this function which > works on current master without requiring these extra packages? `Info-make-manuals-xref' _is_ defined in help-fns+.el. And no extra packages are needed for help-fns+.el. But adding the functionality of `Info-make-manuals-xref' is not necessarily something that vanilla Emacs would want now. That should probably be discussed separately. Similarly, there are other features used by `describe-keymap' that I'm not sure you want to add now to vanilla Emacs. And you definitely don't need the code that supports older Emacs versions. Bottom line, if you want to add only bare-bones `describe-keymap' to vanilla Emacs then just use the attached definition. --__1566585866880271493abhmp0010.oracle.com Content-Type: application/octet-stream; name="throw-describe-keymap-for-vanilla.el" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="throw-describe-keymap-for-vanilla.el" KGRlZnVuIGRlc2NyaWJlLWtleW1hcCAoa2V5bWFwICZvcHRpb25hbCBzZWFyY2gtc3ltYm9scy1w KSA7IEJvdW5kIHRvIGBDLWggTS1rJwogICJEZXNjcmliZSBrZXkgYmluZGluZ3MgaW4gS0VZTUFQ LgpJbnRlcmFjdGl2ZWx5LCBwcm9tcHQgZm9yIGEgdmFyaWFibGUgdGhhdCBoYXMgYSBrZXltYXAg dmFsdWUuCkNvbXBsZXRpb24gaXMgYXZhaWxhYmxlIGZvciB0aGUgdmFyaWFibGUgbmFtZS4KCk5v bi1pbnRlcmFjdGl2ZWx5OgoqIEtFWU1BUCBjYW4gYmUgc3VjaCBhIGtleW1hcCB2YXJpYWJsZSBv ciBhIGtleW1hcC4KKiBOb24tbmlsIG9wdGlvbmFsIGFyZyBTRUFSQ0gtU1lNQk9MUy1QIG1lYW5z IHRoYXQgaWYgS0VZTUFQIGlzIG5vdCBhCiAgc3ltYm9sIHRoZW4gc2VhcmNoIGFsbCB2YXJpYWJs ZXMgZm9yIG9uZSB3aG9zZSB2YWx1ZSBpcyBLRVlNQVAuIgogIChpbnRlcmFjdGl2ZSAobGlzdCAo aW50ZXJuIChjb21wbGV0aW5nLXJlYWQgIktleW1hcDogIiBvYmFycmF5CiAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAobGFtYmRhIChtKSAoYW5kIChib3VuZHAg bSkgIChrZXltYXBwIChzeW1ib2wtdmFsdWUgbSkpKSkKICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIHQgbmlsICd2YXJpYWJsZS1uYW1lLWhpc3RvcnkpKSkpCiAg KHVubGVzcyAoYW5kIChzeW1ib2xwIGtleW1hcCkgIChib3VuZHAga2V5bWFwKSAgKGtleW1hcHAg KHN5bWJvbC12YWx1ZSBrZXltYXApKSkKICAgIChpZiAobm90IChrZXltYXBwIGtleW1hcCkpCiAg ICAgICAgKGVycm9yICIlc290IGEga2V5bWFwJXMiCiAgICAgICAgICAgICAgIChpZiAoc3ltYm9s cCBrZXltYXApIChmb3JtYXQgImAlUycgaXMgbiIga2V5bWFwKSAiTiIpCiAgICAgICAgICAgICAg IChpZiAoc3ltYm9scCBrZXltYXApICIgdmFyaWFibGUiICIiKSkKICAgICAgKGxldCAoKHN5bSAg bmlsKSkKICAgICAgICAod2hlbiBzZWFyY2gtc3ltYm9scy1wCiAgICAgICAgICAoc2V0cSBzeW0g IChjYXRjaCAnZGVzY3JpYmUta2V5bWFwCiAgICAgICAgICAgICAgICAgICAgICAgKG1hcGF0b21z IChsYW1iZGEgKHN5bWIpICh3aGVuIChhbmQgKGJvdW5kcCBzeW1iKQogICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoZXEgKHN5bWJvbC12YWx1ZSBz eW1iKSBrZXltYXApCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIChub3QgKGVxIHN5bWIgJ2tleW1hcCkpCiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICh0aHJvdyAnZGVzY3JpYmUta2V5bWFwIHN5 bWIpKSkpKQogICAgICAgICAgICAgICAgICAgICAgIG5pbCkpKQogICAgICAgICh1bmxlc3Mgc3lt CiAgICAgICAgICAoc2V0cSBzeW0gIChnZW50ZW1wICJLRVlNQVAgT0JKRUNUIChubyB2YXJpYWJs ZSkgIikpCiAgICAgICAgICAoc2V0IHN5bSBrZXltYXApKQogICAgICAgIChzZXRxIGtleW1hcCAg c3ltKSkpKQogIChzZXRxIGtleW1hcCAgKG9yIChpZ25vcmUtZXJyb3JzIChpbmRpcmVjdC12YXJp YWJsZSBrZXltYXApKSAga2V5bWFwKSkgOyBGb2xsb3cgYWxpYXNpbmcuCiAgKGxldCogKChuYW1l ICAoc3ltYm9sLW5hbWUga2V5bWFwKSkKICAgICAgICAgKGRvYyAgIChsZXQgKChyYXctZG9jICAo ZG9jdW1lbnRhdGlvbi1wcm9wZXJ0eSBrZXltYXAgJ3ZhcmlhYmxlLWRvY3VtZW50YXRpb24gJ1JB VykpKQogICAgICAgICAgICAgICAgICAoc3Vic3RpdHV0ZS1jb21tYW5kLWtleXMgcmF3LWRvYykp KQogICAgICAgICAoZG9jICAgKGFuZCAobm90IChlcXVhbCAiIiBkb2MpKSAgZG9jKSkpCiAgICAo aGVscC1zZXR1cC14cmVmIChsaXN0ICMnZGVzY3JpYmUta2V5bWFwIGtleW1hcCkgKGNhbGxlZC1p bnRlcmFjdGl2ZWx5LXAgJ2ludGVyYWN0aXZlKSkKICAgICh3aXRoLWhlbHAtd2luZG93IChoZWxw LWJ1ZmZlcikKICAgICAgKHByaW5jIG5hbWUpICh0ZXJwcmkpIChwcmluYyAobWFrZS1zdHJpbmcg KGxlbmd0aCBuYW1lKSA/LSkpICh0ZXJwcmkpICh0ZXJwcmkpCiAgICAgICh3aGVuIGRvYyAocHJp bmMgZG9jKSAodGVycHJpKSAodGVycHJpKSkKICAgICAgOzsgVXNlIGBpbnNlcnQnIGluc3RlYWQg b2YgYHByaW5jJywgc28gY29udHJvbCBjaGFycyAoZS5nLiBcMzc3KSBpbnNlcnQgY29ycmVjdGx5 LgogICAgICAod2l0aC1jdXJyZW50LWJ1ZmZlciAiKkhlbHAqIiAoaW5zZXJ0IChzdWJzdGl0dXRl LWNvbW1hbmQta2V5cyAoY29uY2F0ICJcXHsiIG5hbWUgIn0iKSkpKSkpKQo= --__1566585866880271493abhmp0010.oracle.com--