GNU bug report logs - #1363
Advertised key-bindings

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Tue, 18 Nov 2008 03:05:05 UTC

Severity: wishlist

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1363 in the body.
You can then email your comments to 1363 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report stored:
bug#1363; Package emacs. Full text and rfc822 format available.

Message #3 received at quiet <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: quiet <at> debbugs.gnu.org
Subject: Advertised key-bindings
Date: Sun, 16 Nov 2008 15:30:50 -0500
Severity: wishlist

[ resent from
  http://lists.gnu.org/archive/html/emacs-devel/2008-11/msg00494.html ]

> I don't remember for certain, but it looks like the sort of thing I do
> to control which key some help features will report for that command.

> This is meant to be like C-x u (advertised-undo) and C-_ (undo).
> If you put \\[advertised-undo] in a doc string, it is guaranteed
> to come out as C-x u, not C-_.  If they were both bound to `undo',
> then either one might come out.

Which reminds me: it's an OK hack to get this result, but it has some
annoying side-effects:
- C-h k C-/ will not show you that it's also bound to C-x u (even
  though C-x u is supposed to be the binding you advertise most).
- C-h k C-x u will not show you alternative bindings such as C-/ which
  are usually a lot more convenient to use when available.
- probably some others.

I think we should try and introduce a better way to get this result.
E.g. we could add an `advertized-binding' property to the command symbol
and then let where-is use it (after checking that it's indeed bound to
that command).


        Stefan




bug closed, send any further explanations to Stefan Monnier <monnier <at> iro.umontreal.ca> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Thu, 05 Nov 2009 03:35:06 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Thu, 03 Dec 2009 15:24:13 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 146 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.