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

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

[elpa] externals/compat 47475cacfa 3/6: proper-list-p: Use simpler defin


From: ELPA Syncer
Subject: [elpa] externals/compat 47475cacfa 3/6: proper-list-p: Use simpler definition from org-compat
Date: Wed, 4 Jan 2023 18:57:26 -0500 (EST)

branch: externals/compat
commit 47475cacfaa3445ec96f5bd0fbef7d3ffdac0d6a
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    proper-list-p: Use simpler definition from org-compat
---
 compat-27.el | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/compat-27.el b/compat-27.el
index 80684e1e46..43cfabbfb5 100644
--- a/compat-27.el
+++ b/compat-27.el
@@ -34,10 +34,7 @@ A proper list is neither circular nor dotted (i.e., its last 
cdr
 is nil)."
   :min-version "26.1"
   :max-version "26.3"
-  (condition-case nil
-      (and (listp object) (length object)) ;; Throws a signal
-    (wrong-type-argument nil)
-    (circular-list nil)))
+  (and (listp object) (ignore-errors (length object))))
 
 (compat-defun proper-list-p (object) ;; <OK>
   "Return OBJECT's length if it is a proper list, nil otherwise.



reply via email to

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