[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat f8f4a9f 52/99: Use right function in some compat
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat f8f4a9f 52/99: Use right function in some compat-maxargs-/= invocations |
Date: |
Sun, 17 Oct 2021 05:57:56 -0400 (EDT) |
branch: externals/compat
commit f8f4a9f66da586a5b58cc069f3776c91535e7aa7
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Use right function in some compat-maxargs-/= invocations
---
compat-24.4.el | 2 +-
compat-26.1.el | 4 ++--
compat-28.1.el | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/compat-24.4.el b/compat-24.4.el
index abe76f4..dcc61d2 100644
--- a/compat-24.4.el
+++ b/compat-24.4.el
@@ -119,7 +119,7 @@ attention to case differences."
(compat-advise split-string (string &optional separators omit-nulls trim)
"Handle optional argument TRIM."
- :cond (compat-maxargs-/= #'assoc 4)
+ :cond (compat-maxargs-/= #'split-string 4)
(let* ((token (funcall oldfun string separators omit-nulls))
(trimmed (if trim
(mapcar
diff --git a/compat-26.1.el b/compat-26.1.el
index 2056537..99adce64 100644
--- a/compat-26.1.el
+++ b/compat-26.1.el
@@ -66,7 +66,7 @@ If the buffer is narrowed, the return value by default counts
the lines
from the beginning of the accessible portion of the buffer. But if the
second optional argument ABSOLUTE is non-nil, the value counts the lines
from the absolute start of the buffer, disregarding the narrowing."
- :cond (compat-maxargs-/= #'assoc 2)
+ :cond (compat-maxargs-/= #'line-number-at-pos 2)
(if absolute
(save-restriction
(widen)
@@ -80,7 +80,7 @@ from the absolute start of the buffer, disregarding the
narrowing."
:min-version "25.1" ;first defined in 25.1
:max-version "25.3" ;last version without testfn
:realname compat--alist-get-handle-testfn
- :cond (compat-maxargs-/= #'assoc 5)
+ :cond (compat-maxargs-/= #'alist-get 5)
(if testfn
(catch 'found
(dolist (ent alist)
diff --git a/compat-28.1.el b/compat-28.1.el
index e2c6935..b5c32a3 100644
--- a/compat-28.1.el
+++ b/compat-28.1.el
@@ -144,7 +144,7 @@ consider, and are interpreted as in `substring'."
If COUNT is non-nil and a natural number, the function will
return COUNT number of file names (if so many are present)."
- :cond (compat-maxargs-/= #'assoc 5)
+ :cond (compat-maxargs-/= #'directory-files 5)
(let ((files (funcall oldfun directory full match nosort)))
(when (natnump count)
(setf (nthcdr count files) nil))
@@ -404,7 +404,7 @@ is included in the return value."
If ALL-FRAMES is non-nil, count the windows in all frames instead
just the selected frame."
- :cond (compat-maxargs-/= #'assoc 3)
+ :cond (compat-maxargs-/= #'count-windows 3)
(if all-frames
(let ((sum 0))
(dolist (frame (frame-list))
- [elpa] externals/compat 05092cb 25/99: Fix compat-test indentation in compat-tests, (continued)
- [elpa] externals/compat 05092cb 25/99: Fix compat-test indentation in compat-tests, ELPA Syncer, 2021/10/17
- [elpa] externals/compat cb339dd 31/99: Add :cond where applicable, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 2d50e5c 32/99: Implement func-arity, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 36ef438 35/99: Implement and use mounted-file-systems, ELPA Syncer, 2021/10/17
- [elpa] externals/compat e5a573f 37/99: Declare mouse-set-point, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 2089c90 41/99: Declare gensym for with-existing-directory, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 2faab78 42/99: Add debug specification for setq-local, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 5e7698c 45/99: Avoid testing advice compatibility in version to old to compare, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 343bcbb 46/99: Fix if-let implementation, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 32031ea 50/99: Remove unnecessary compat-- prefix from gensym-counter, ELPA Syncer, 2021/10/17
- [elpa] externals/compat f8f4a9f 52/99: Use right function in some compat-maxargs-/= invocations,
ELPA Syncer <=
- [elpa] externals/compat fa09ea0 54/99: Factor out multibyte regexp tests for string-search and -replace, ELPA Syncer, 2021/10/17
- [elpa] externals/compat aa112d8 63/99: Implement lookup-key handling of keymap lists, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 86fb58f 64/99: Move compat--alist-get-full-elisp to emacs-25.1, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 954c97b 67/99: Update compat-tests header, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 5cd751b 68/99: Mention GitHub issue tracker in README, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 598a040 69/99: Add :cond check to lookup-key, ELPA Syncer, 2021/10/17
- [elpa] externals/compat b16122b 71/99: Use explicit symbol names instead of alii, ELPA Syncer, 2021/10/17
- [elpa] externals/compat a7d9649 72/99: Manually advise functions when nadvice is not available, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 904d660 74/99: Add documentation to manual advice wrapper, ELPA Syncer, 2021/10/17
- [elpa] externals/compat e689153 76/99: Merge compile and run into one GitHub Action job, ELPA Syncer, 2021/10/17