diff options
-rw-r--r-- | lisp/eshell/em-unix.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el index 384fa083947..33514d515af 100644 --- a/lisp/eshell/em-unix.el +++ b/lisp/eshell/em-unix.el @@ -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." |