GNU bug report logs - #30942
[PATCH] Add `key-description' as inverse of `kbd'.

Previous Next

Package: emacs;

Reported by: Hong Xu <hong <at> topbug.net>

Date: Sun, 25 Mar 2018 22:22:01 UTC

Severity: wishlist

Tags: fixed, patch

Fixed in version 26.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Hong Xu <hong <at> topbug.net>
To: 30942 <at> debbugs.gnu.org
Subject: bug#30942: [PATCH] Add `key-description' as inverse of `kbd'.
Date: Sun, 25 Mar 2018 14:35:51 -0700
[Message part 1 (text/plain, inline)]
2018-03-25  Hong Xu  <hong <at> topbug.net>

	* lisp/subr.el (kbd): Add `key-description' as inverse of
          `kbd' in the doc.
---
 lisp/subr.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/subr.el b/lisp/subr.el
index 2de5b3766c2f..f8ac70edefae 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -774,7 +774,9 @@ kbd
 KEYS should be a string in the format returned by commands such
 as `C-h k' (`describe-key').
 This is the same format used for saving keyboard macros (see
-`edmacro-mode')."
+`edmacro-mode').
+
+For an approximate inverse of this, see `key-description'."
   ;; Don't use a defalias, since the `pure' property is only true for
   ;; the calling convention of `kbd'.
   (read-kbd-macro keys))
-- 
2.11.0

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 7 years and 57 days ago.

Previous Next


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