From 3ced278069492775a7ad76a2d051ad170a06b83f Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Fri, 26 Oct 2007 08:53:45 +0000 Subject: [PATCH] (nil-blank-string): Doc fix. --- lisp/eshell/em-unix.el | 9 ++++----- 1 file 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." -- 2.39.2