GNU bug report logs -
#12174
24.1.50; C-h f and non-symbol remap targets
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
(global-set-key [remap write-file] (lambda () (interactive) 'rms))
C-h f write-file RET
This yields in an error because help-fns--key-bindings expects
(command-remapping 'write-file) to be a symbol.
Here is a patch that abbreviates non-symbol remap targets with "??".
This is consistent with what describe-bindings displays.
[help-fns--key-bindings.diff (text/x-diff, inline)]
=== modified file 'lisp/ChangeLog'
--- lisp/ChangeLog 2012-08-10 21:03:10 +0000
+++ lisp/ChangeLog 2012-08-10 21:53:48 +0000
@@ -1,3 +1,8 @@
+2012-08-10 Christopher Schmidt <christopher <at> ch.ristopher.com>
+
+ * help-fns.el (help-fns--key-bindings): Abbreviate non-symbol
+ remap targets with ?? (Bug#).
+
2012-08-10 Stefan Monnier <monnier <at> iro.umontreal.ca>
* emacs-lisp/rx.el (rx-constituents): Don't define as constant.
=== modified file 'lisp/help-fns.el'
--- lisp/help-fns.el 2012-08-06 21:05:48 +0000
+++ lisp/help-fns.el 2012-08-10 21:28:18 +0000
@@ -398,7 +398,7 @@
(push key non-modified-keys)))
(when remapped
(princ "Its keys are remapped to `")
- (princ (symbol-name remapped))
+ (princ (if (symbolp remapped) (symbol-name remapped) "??"))
(princ "'.\n"))
(when keys
[Message part 3 (text/plain, inline)]
Christopher
This bug report was last modified 12 years and 275 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.