summaryrefslogtreecommitdiff
path: root/lisp/eshell/em-unix.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2022-08-04 09:40:40 +0200
committerStefan Kangas <stefan@marxist.se>2022-08-04 09:55:13 +0200
commit7471781dda49b927b4282fae24a4daab962c3266 (patch)
tree5dfae84794aa91e4de592eacb0abe0d337fb1f6a /lisp/eshell/em-unix.el
parentd056bb0d9937790916e79a55f35307b58769573b (diff)
downloademacs-7471781dda49b927b4282fae24a4daab962c3266.tar.gz
emacs-7471781dda49b927b4282fae24a4daab962c3266.tar.bz2
emacs-7471781dda49b927b4282fae24a4daab962c3266.zip
Rename nil-blank-string to eshell-nil-blank-string
* lisp/eshell/em-unix.el (eshell-nil-blank-string): Rename from 'nil-blank-string'. Retain old name as an obsolete function alias.
Diffstat (limited to 'lisp/eshell/em-unix.el')
-rw-r--r--lisp/eshell/em-unix.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el
index 3967817b0ed..68276b22d95 100644
--- a/lisp/eshell/em-unix.el
+++ b/lisp/eshell/em-unix.el
@@ -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: