[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat 4c45789d9b 1/5: Correct error signalling in sort
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat 4c45789d9b 1/5: Correct error signalling in sort, length=, length< and length> |
Date: |
Fri, 8 Sep 2023 12:57:31 -0400 (EDT) |
branch: externals/compat
commit 4c45789d9b1a8df0bf3fc2b258dd54b06d3b26b7
Author: Mattias EngdegÄrd <mattiase@acm.org>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Correct error signalling in sort, length=, length< and length>
---
compat-25.el | 2 +-
compat-28.el | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/compat-25.el b/compat-25.el
index b393dc8ea2..7901091b13 100644
--- a/compat-25.el
+++ b/compat-25.el
@@ -55,7 +55,7 @@ usage: (bool-vector &rest OBJECTS)"
(aset seq i (car p))
(setq i (1+ i) p (cdr p)))
(apply #'vector list)))
- ((signal 'wrong-type-argument 'list-or-vector-p))))
+ (t (signal 'wrong-type-argument (list 'list-or-vector-p seq)))))
;;;; Defined in editfns.c
diff --git a/compat-28.el b/compat-28.el
index b305ab2fff..7081e332d9 100644
--- a/compat-28.el
+++ b/compat-28.el
@@ -65,7 +65,7 @@ issues are inherited."
t))
((arrayp sequence)
(= (length sequence) length))
- ((signal 'wrong-type-argument sequence))))
+ (t (signal 'wrong-type-argument (list 'sequencep sequence)))))
(compat-defun length< (sequence length) ;; [[compat-tests:length<]]
"Returns non-nil if SEQUENCE is shorter than LENGTH."
@@ -75,7 +75,7 @@ issues are inherited."
(null (nthcdr (1- length) sequence)))
((arrayp sequence)
(< (length sequence) length))
- ((signal 'wrong-type-argument sequence))))
+ (t (signal 'wrong-type-argument (list 'sequencep sequence)))))
(compat-defun length> (sequence length) ;; [[compat-tests:length>]]
"Returns non-nil if SEQUENCE is longer than LENGTH."
@@ -84,7 +84,7 @@ issues are inherited."
(and (nthcdr length sequence) t))
((arrayp sequence)
(> (length sequence) length))
- ((signal 'wrong-type-argument sequence))))
+ (t (signal 'wrong-type-argument (list 'sequencep sequence)))))
;;;; Defined in fileio.c
- [elpa] externals/compat updated (75d0b8527f -> cd60f445f3), ELPA Syncer, 2023/09/08
- [elpa] externals/compat e60246afc8 4/5: Make tests work on macOS, ELPA Syncer, 2023/09/08
- [elpa] externals/compat cd60f445f3 5/5: Typo in docstring for string-search, ELPA Syncer, 2023/09/08
- [elpa] externals/compat 70604898fc 3/5: Strengthen xor test, ELPA Syncer, 2023/09/08
- [elpa] externals/compat 3ff527d6c2 2/5: Simplify buffer-local-boundp, ELPA Syncer, 2023/09/08
- [elpa] externals/compat 4c45789d9b 1/5: Correct error signalling in sort, length=, length< and length>,
ELPA Syncer <=