]> git.eshelyaron.com Git - emacs.git/commitdiff
(nil-blank-string): Doc fix.
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 26 Oct 2007 08:53:45 +0000 (08:53 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 26 Oct 2007 08:53:45 +0000 (08:53 +0000)
lisp/eshell/em-unix.el

index 384fa0839476246d8cc260ec8c6b65d85caf97ef..33514d515afe1f1a66b63794a7f9e83f3609792a 100644 (file)
@@ -974,12 +974,11 @@ Show wall-clock time elapsed during execution of COMMAND.")
   (if eshell-diff-window-config
       (set-window-configuration eshell-diff-window-config)))
 
-(defun nil-blank-string ( string )
-  "if a string is all blanks return nil, if there are non-blank characters
-return the string"
+(defun nil-blank-string (string)
+  "Return STRING, or nil if STRING contains only non-blank characters."
   (cond
-   ((string-match "[^[:blank:]]" string ) string)
-   (nil)))
+    ((string-match "[^[:blank:]]" string) string)
+    (nil)))
 
 (defun eshell/diff (&rest args)
   "Alias \"diff\" to call Emacs `diff' function."