diff lisp/prim/cmdloop.el @ 173:8eaf7971accc r20-3b13

Import from CVS: tag r20-3b13
author cvs
date Mon, 13 Aug 2007 09:49:09 +0200
parents 929b76928fce
children e45d5e7c476e
line wrap: on
line diff
--- a/lisp/prim/cmdloop.el	Mon Aug 13 09:47:55 2007 +0200
+++ b/lisp/prim/cmdloop.el	Mon Aug 13 09:49:09 2007 +0200
@@ -305,11 +305,7 @@
 	   (format "Command `%s' is bound to key%s: %s"
 		   _execute_command_name_
 		   (if (cdr _execute_command_keys_) "s" "")
-		   (mapconcat 'key-description
-			      (sort _execute_command_keys_
-				    #'(lambda (x y)
-					(< (length x) (length y))))
-			      ", ")))
+		   (sorted-key-descriptions _execute_command_keys_)))
 	  (sit-for teach-extended-commands-timeout)
 	  (clear-message 'no-log)))
     ;; Else, just run the command.
@@ -431,8 +427,8 @@
 is most likely the wrong thing for you to be using: consider using
 the `next-command-event' function instead."
   (save-excursion
-    (let ((inhibit-quit t)
-          (event (next-command-event)))
+    (let* ((inhibit-quit t)
+	   (event (next-command-event)))
       (prog1 (or (event-to-character event)
                  ;; Kludge.  If the event we read was a mouse-release,
                  ;; discard it and read the next one.