]> git.eshelyaron.com Git - emacs.git/commitdiff
Rename nil-blank-string to eshell-nil-blank-string
authorStefan Kangas <stefan@marxist.se>
Thu, 4 Aug 2022 07:40:40 +0000 (09:40 +0200)
committerStefan Kangas <stefan@marxist.se>
Thu, 4 Aug 2022 07:55:13 +0000 (09:55 +0200)
* lisp/eshell/em-unix.el (eshell-nil-blank-string): Rename from
'nil-blank-string'.  Retain old name as an obsolete function alias.

lisp/eshell/em-unix.el

index 3967817b0ede82efb38d1b878c600957f59b564c..68276b22d9578ea4fd85743e5840b862b9dce7c4 100644 (file)
@@ -968,7 +968,7 @@ 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)
+(defun eshell-nil-blank-string (string)
   "Return STRING, or nil if STRING contains only blank characters."
   (cond
     ((string-match "[^[:blank:]]" string) string)
@@ -999,7 +999,7 @@ Show wall-clock time elapsed during execution of COMMAND.")
            (condition-case nil
                (diff-no-select
                 old new
-                (nil-blank-string (eshell-flatten-and-stringify args)))
+                 (eshell-nil-blank-string (eshell-flatten-and-stringify args)))
              (error
               (throw 'eshell-replace-command
                      (eshell-parse-command "*diff" orig-args))))
@@ -1049,6 +1049,8 @@ Show wall-clock time elapsed during execution of COMMAND.")
 
 (put 'eshell/occur 'eshell-no-numeric-conversions t)
 
+(define-obsolete-function-alias 'nil-blank-string #'eshell-nil-blank-string "29.1")
+
 (provide 'em-unix)
 
 ;; Local Variables: