Move reading an extended command to Elisp (bug#5364, bug#5214).
authorJuri Linkov <juri@jurta.org>
Sun, 22 Aug 2010 23:27:59 +0000 (00:27 +0100)
committerJuri Linkov <juri@jurta.org>
Sun, 22 Aug 2010 23:27:59 +0000 (00:27 +0100)
commit7133b7ee629457053e63db2a7f192037407da57b
tree3f3fe53c4a3233abfa0aec4e4c64516627236e74
parent198a7a97ff99b96523f7c0736aa303d305595094
Move reading an extended command to Elisp (bug#5364, bug#5214).

* lisp/simple.el (read-extended-command): New function with the logic
for `completing-read' moved to Elisp from `execute-extended-command'.
Use `function-called-at-point' in `minibuffer-default-add-function'
to get a command name for M-n (bug#5364, bug#5214).

* src/keyboard.c (Fexecute_extended_command): Move reading a command name
with `completing-read' to a new Elisp function `read-extended-command'.
Call it to read a command to `function'  (bug#5364, bug#5214).
lisp/ChangeLog
lisp/simple.el
src/ChangeLog
src/keyboard.c