Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplify `smex-major-mode-commands' use of `mapcar'

Simply passing a symbol to `mapcar' makes it call that symbol for each element
in the list.
  • Loading branch information...
commit 298e9f8028017af777ddf3de12665aa2c7adebc7 1 parent 165a4d8
@haxney haxney authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  smex.el
View
2  smex.el
@@ -118,7 +118,7 @@ Set this to nil to disable fuzzy matching."
(let ((commands (delete-dups (append (extract-commands-from-keymap (current-local-map))
(extract-commands-from-features major-mode)))))
(setq commands (smex-sort-according-to-cache commands))
- (setq commands (mapcar (lambda (command) (symbol-name command)) commands))
+ (setq commands (mapcar #'symbol-name commands))
(smex-read-and-run commands)))
(defun smex-completing-read (choices initial-input)
Please sign in to comment.
Something went wrong with that request. Please try again.