emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/compat 6662bdec9f: Exclude ~foo tests for file-name-abs


From: ELPA Syncer
Subject: [elpa] externals/compat 6662bdec9f: Exclude ~foo tests for file-name-absolute-p
Date: Fri, 29 Jul 2022 01:57:23 -0400 (EDT)

branch: externals/compat
commit 6662bdec9fc9b28a36062af321fea186d40440dc
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Exclude ~foo tests for file-name-absolute-p
    
    As mentioned in NEWS.27:
    
        ** 'file-name-absolute-p' no longer considers "~foo" to be an absolute
        file name if there is no user named "foo".
---
 compat-tests.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/compat-tests.el b/compat-tests.el
index 47135cc2d2..bd38c3d8c9 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -1841,9 +1841,10 @@ being compared against."
   (ought nil "a/b")
   (ought nil "a/b/")
   (ought t "~")
-  (ought t "~/foo")
-  (ought nil "~foo")
-  (ought nil "~foo/")
+  (when (version< "27.1" emacs-version)
+    (ought t "~/foo")
+    (ought nil "~foo")
+    (ought nil "~foo/"))
   (ought t "~root")
   (ought t "~root/")
   (ought t "~root/file"))



reply via email to

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