unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 24235@debbugs.gnu.org
Subject: bug#24235: 25.1.50; `describe-bindings' request: show `??' definitions
Date: Sat, 27 Jul 2019 17:10:21 +0200	[thread overview]
Message-ID: <877e83fr8i.fsf@mouse.gnus.org> (raw)
In-Reply-To: <e34fd448-530b-4767-9469-b84309cd89cc@default> (Drew Adams's message of "Mon, 15 Aug 2016 10:12:43 -0700 (PDT)")

Drew Adams <drew.adams@oracle.com> writes:

> Enhancement request.  Keys shown by `describe-bindings' and similar
> (including `substitute-command-keys' for \{...}) currently show `??' as
> their binding if the binding is not a command symbol.
>
> Please turn the `??' occurrences into links that when clicked show the
> source code for the key's binding, when available.  If it is
> byte-compiled, and the uncompiled code is unknown, show the byte code,
> but with control chars filtered out (so somewhat human-readable).
>
> This lets users see what is behind the `??', giving them a somewhat
> better idea what the key does.

The calling sequence for this command is slightly convoluted, but it
turns out that help.el calls basically

  (describe-buffer-bindings buffer nil nil)

which is a C function (but why?) which inserts all the

C-n		next-line
C-o		open-line
C-H-w		??

stuff, which is then post-processed to add the xref links.  So at the
point where the xref is added, then there's no feasible way to determine
what the ?? referred to, really, without redoing the work the C function
had already done...

I think.

Anybody?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2019-07-27 15:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-15 17:12 bug#24235: 25.1.50; `describe-bindings' request: show `??' definitions Drew Adams
2019-07-27 15:10 ` Lars Ingebrigtsen [this message]
2019-07-27 17:18   ` Drew Adams
2021-11-02 15:20 ` Lars Ingebrigtsen
2021-11-06 18:58   ` Juri Linkov
2021-11-06 21:28     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877e83fr8i.fsf@mouse.gnus.org \
    --to=larsi@gnus.org \
    --cc=24235@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).