Browse files

Fix key advice message

There were two issues:

  a) There was a space missing before "with". Trivial fix.
  b) The angle brackets around the key list look absolutely off,
     especially with multiple bindings. See the new:

You can run the command `describe-function' with C-h f, <f1> f, <help> f, <menu-bar> <help-menu> <describe> <describe-function>

versus the old:

You can run the command `describe-function' with <C-h f, <f1> f, <help> f, <menu-bar> <help-menu> <describe> <describe-function>>
  • Loading branch information...
1 parent d06087b commit 4940c4752612eba5aa8dbc075c126603acff87ee @ft ft committed with Apr 11, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 ido-hacks.el
5 ido-hacks.el
@@ -257,11 +257,10 @@ history, instead of the incomplete input."
(message "%s"
(concat "You can run the command "
(propertize (format "`%s'" (symbol-name command)) 'face 'font-lock-type-face)
- "with <"
+ " with "
(propertize (ignore-errors
(substring (ido-hacks-get-keys (symbol-name command)) 1 -1))
- 'face 'font-lock-keyword-face)
- ">")))))))
+ 'face 'font-lock-keyword-face))))))))
(defun ido-hacks-get-keys (func-name)
"Return strings naming keys bound to `func-name', or nil if none.

0 comments on commit 4940c47

Please sign in to comment.