emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 4217398: Avoid using subr-x.el function in files.el


From: Basil L. Contovounesios
Subject: [Emacs-diffs] master 4217398: Avoid using subr-x.el function in files.el
Date: Tue, 25 Jun 2019 17:12:09 -0400 (EDT)

branch: master
commit 4217398de3883cc8bc550f6ba33389e8ec85ad6e
Author: Basil L. Contovounesios <address@hidden>
Commit: Basil L. Contovounesios <address@hidden>

    Avoid using subr-x.el function in files.el
    
    * lisp/files.el (file-size-human-readable): Open code string-empty-p
    call.  This was the single occurrence of a subr-x.el function in
    files.el, which does not (yet) load subr-x.el.
---
 lisp/files.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/files.el b/lisp/files.el
index a431be8..05150ac 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1396,7 +1396,7 @@ in all cases, since that is the standard symbol for byte."
                  "%.1f%s%s"
                "%.0f%s%s")
              file-size
-              (if (string-empty-p prefixed-unit) "" (or space ""))
+              (if (string= prefixed-unit "") "" (or space ""))
               prefixed-unit))))
 
 (defcustom mounted-file-systems



reply via email to

[Prev in Thread] Current Thread [Next in Thread]