* lisp/ido.el (ido-record-command): Add doc string.
@end defvr
@defvr {User Option} ido-max-window-height
-If the value of this user option is non@code{nil}, its value will
+If the value of this user option is non-@code{nil}, its value will
override the variable @code{max-mini-window-height}, which is the
maximum height for resizing mini-windows (the minibuffer and the echo
area). If it's a floating point number, it specifies a fraction of
number of lines.
@end defvr
-@c @defvr {User Option} ido-record-commands
+@defvr {User Option} ido-record-commands
+If the value of this user option is non-@code{nil}, Ido will record
+commands in the variable @code{command-history}. Note that non-Ido
+equivalent is recorded.
+@end defvr
+
@c @defvr {User Option} ido-enable-last-directory-history
@c @defvr {User Option} ido-enable-tramp-completion
@c @defvr {User Option} ido-unc-hosts
+2013-08-08 Xue Fuqiao <xfq.free@gmail.com>
+
+ * ido.el (ido-record-command): Add doc string.
+
2013-08-08 Juanma Barranquero <lekktu@gmail.com>
* frameset.el (frameset): Do not disable creation of the default
(defcustom ido-record-commands t
- "Non-nil means that `ido' will record commands in command history.
-Note that the non-ido equivalent command is recorded."
+ "Non-nil means that Ido will record commands in command history.
+Note that the non-Ido equivalent command is recorded."
:type 'boolean
:group 'ido)
(ido-set-current-directory (expand-file-name (or dir "~/"))))
(defun ido-record-command (command arg)
- ;; Add (command arg) to command-history if ido-record-commands is t
- (if ido-record-commands
+ "Add (COMMAND ARG) to `command-history' if `ido-record-commands' is non-nil."
+ (if ido-record-commands ; FIXME: use `when' instead of `if'?
(let ((cmd (list command arg)))
- (if (or (not command-history)
+ (if (or (not command-history) ; FIXME: ditto
(not (equal cmd (car command-history))))
(setq command-history (cons cmd command-history))))))