[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat 15ae65b0f8 09/12: Improve comments
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat 15ae65b0f8 09/12: Improve comments |
Date: |
Thu, 5 Jan 2023 09:57:29 -0500 (EST) |
branch: externals/compat
commit 15ae65b0f85ee21878ee3a86a387520963942eb2
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Improve comments
---
compat-27.el | 31 ++++++++++++++-----------------
1 file changed, 14 insertions(+), 17 deletions(-)
diff --git a/compat-27.el b/compat-27.el
index 4dd6f6b317..bac6f21f63 100644
--- a/compat-27.el
+++ b/compat-27.el
@@ -32,15 +32,14 @@
"Return OBJECT's length if it is a proper list, nil otherwise.
A proper list is neither circular nor dotted (i.e., its last cdr
is nil)."
- :min-version "26"
+ :min-version "26" ;; Errors on 26.1 and newer
(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.
A proper list is neither circular nor dotted (i.e., its last cdr
is nil)."
- :max-version "26"
- ;; On Emacs older than 26.1 we have to use the Tortoise and Hare algorithm
+ :max-version "26" ;; On older Emacs than 26.1 use Tortoise and Hare algorithm
(when (listp object)
(catch 'cycle
(let ((hare object) (tortoise object)
@@ -719,35 +718,33 @@ The return value is a string (or nil in case we can’t
find it)."
"Constructor for objects of type ‘prop-match’."
:max-version "26"
:feature text-property-search
- (vector
- 'prop-match
- (plist-get attr :beginning)
- (plist-get attr :end)
- (plist-get attr :value)))
+ (vector 'prop-match ;; Vector for older than 26.1
+ (plist-get attr :beginning)
+ (plist-get attr :end)
+ (plist-get attr :value)))
(compat-defun make-prop-match (&rest attr) ;; <OK>
"Constructor for objects of type ‘prop-match’."
:min-version "26"
:feature text-property-search
- (record
- 'prop-match
- (plist-get attr :beginning)
- (plist-get attr :end)
- (plist-get attr :value)))
+ (record 'prop-match ;; record was introduced with 26.1
+ (plist-get attr :beginning)
+ (plist-get attr :end)
+ (plist-get attr :value)))
(compat-defun prop-match-p (match) ;; <OK>
"Return non-nil if MATCH is a `prop-match' object."
- :max-version "26"
+ :max-version "26" ;; Vector before 26.1
:feature text-property-search
- (and (vectorp match) ;; Vector
+ (and (vectorp match)
(> (length match) 0)
(eq (aref match 0) 'prop-match)))
(compat-defun prop-match-p (match) ;; <OK>
"Return non-nil if MATCH is a `prop-match' object."
- :min-version "26"
+ :min-version "26" ;; Record for 26.1 and newer
:feature text-property-search
- (eq (type-of match) 'prop-match)) ;; Record
+ (eq (type-of match) 'prop-match))
(compat-defun prop-match-beginning (match) ;; <OK>
"Retrieve the position where MATCH begins."
- [elpa] externals/compat updated (61c2b8815b -> c6f6d43bd7), ELPA Syncer, 2023/01/05
- [elpa] externals/compat f68ed51775 05/12: Fix version bounds, ELPA Syncer, 2023/01/05
- [elpa] externals/compat c6f6d43bd7 12/12: Document missing functions, ELPA Syncer, 2023/01/05
- [elpa] externals/compat 355d5806b1 11/12: Drop broken directory-files-recursively, ELPA Syncer, 2023/01/05
- [elpa] externals/compat 9c83b54c3f 01/12: Remove :version, ELPA Syncer, 2023/01/05
- [elpa] externals/compat 165b7d869b 03/12: Remove :version key, ELPA Syncer, 2023/01/05
- [elpa] externals/compat fe43682262 02/12: Remove :max-version, ELPA Syncer, 2023/01/05
- [elpa] externals/compat 08eec4f008 06/12: Remove version check, ELPA Syncer, 2023/01/05
- [elpa] externals/compat 299d70ecea 08/12: Exclusive bounds for :max-version, ELPA Syncer, 2023/01/05
- [elpa] externals/compat ab85fb2050 07/12: Simplify macros, ELPA Syncer, 2023/01/05
- [elpa] externals/compat 15ae65b0f8 09/12: Improve comments,
ELPA Syncer <=
- [elpa] externals/compat 8d4dfded6c 10/12: Use ash, ELPA Syncer, 2023/01/05
- [elpa] externals/compat e20cecba92 04/12: Fix version bounds, ELPA Syncer, 2023/01/05