Replace undefined functions length= and length> with Emacs builtins

This commit is contained in:
Juergen Hoetzel 2021-05-01 14:04:53 +02:00
parent 6ad83f2a0d
commit 1fdf0b0c0a
1 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ neither of these, an error will be thrown by the function."
path))) path)))
((null path) "") ((null path) "")
((listp path) ((listp path)
(f-join (if (length= path 1) (f-join (if (= (length path) 1)
(car path) (car path)
(let* ((dir (car path)) (let* ((dir (car path))
(first-char (substring dir 0 1))) (first-char (substring dir 0 1)))
@ -151,7 +151,7 @@ Return detected partitions as a list of structs."
(mount (nth 5 partition))) (mount (nth 5 partition)))
(when (string-prefix-p "/dev" filesystem t) (when (string-prefix-p "/dev" filesystem t)
(make-eshell-info-banner--mounted-partitions (make-eshell-info-banner--mounted-partitions
:path (if (length> mount eshell-info-banner-shorten-path-from) :path (if (> (length mount) eshell-info-banner-shorten-path-from)
(eshell-info-banner--abbr-path mount t) (eshell-info-banner--abbr-path mount t)
mount) mount)
:size size :size size