emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r113759: doc/lispref/buffers.texi: Add documentation


From: Xue Fuqiao
Subject: [Emacs-diffs] trunk r113759: doc/lispref/buffers.texi: Add documentation for ido-record-command(s).
Date: Thu, 08 Aug 2013 14:04:04 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 113759
revision-id: address@hidden
parent: address@hidden
committer: Xue Fuqiao <address@hidden>
branch nick: trunk
timestamp: Thu 2013-08-08 22:03:56 +0800
message:
  doc/lispref/buffers.texi: Add documentation for ido-record-command(s).
  
  * lisp/ido.el (ido-record-command): Add doc string.
modified:
  doc/misc/ido.texi              ido.texi-20130724222900-50gdum2iefexcdgi-1
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/ido.el                    ido.el-20091113204419-o5vbwnq5f7feedwu-2430
=== modified file 'doc/misc/ido.texi'
--- a/doc/misc/ido.texi 2013-08-08 13:53:30 +0000
+++ b/doc/misc/ido.texi 2013-08-08 14:03:56 +0000
@@ -631,7 +631,7 @@
 @end defvr
 
 @defvr {User Option} ido-max-window-height
-If the value of this user option is address@hidden, its value will
+If the value of this user option is address@hidden, 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
@@ -639,7 +639,12 @@
 number of lines.
 @end defvr
 
address@hidden @defvr {User Option} ido-record-commands
address@hidden {User Option} ido-record-commands
+If the value of this user option is address@hidden, Ido will record
+commands in the variable @code{command-history}.  Note that non-Ido
+equivalent is recorded.
address@hidden 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

=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-08-08 10:44:07 +0000
+++ b/lisp/ChangeLog    2013-08-08 14:03:56 +0000
@@ -1,3 +1,7 @@
+2013-08-08  Xue Fuqiao  <address@hidden>
+
+       * ido.el (ido-record-command): Add doc string.
+
 2013-08-08  Juanma Barranquero  <address@hidden>
 
        * frameset.el (frameset): Do not disable creation of the default

=== modified file 'lisp/ido.el'
--- a/lisp/ido.el       2013-07-24 08:00:36 +0000
+++ b/lisp/ido.el       2013-08-08 14:03:56 +0000
@@ -523,8 +523,8 @@
 
 
 (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)
 
@@ -1789,10 +1789,10 @@
   (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))))))
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]