[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode ba4d981 473/496: Use seq-contains-p if availabl
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode ba4d981 473/496: Use seq-contains-p if available |
Date: |
Sun, 29 Aug 2021 11:34:30 -0400 (EDT) |
branch: elpa/swift-mode
commit ba4d981035e40430e5d889955294e3a5d3c512fb
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>
Use seq-contains-p if available
Fix https://github.com/swift-emacs/swift-mode/pull/168.
Thanks @jcs090218.
---
swift-mode-imenu.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/swift-mode-imenu.el b/swift-mode-imenu.el
index 34f1b8c..c6de9a9 100644
--- a/swift-mode-imenu.el
+++ b/swift-mode-imenu.el
@@ -330,9 +330,13 @@ and \"c\".
next-token
parameter-end
(parameter-names '())
- (is-operator (seq-contains
- "/=-+!*%<>&|^~?."
- (elt (swift-mode:token:text name-token) 0))))
+ (seq-contains-p (if (fboundp 'seq-contains-p)
+ 'seq-contains-p
+ 'seq-contains))
+ (is-operator
+ (funcall seq-contains-p
+ "/=-+!*%<>&|^~?."
+ (elt (swift-mode:token:text name-token) 0))))
(cond
((eq (swift-mode:token:type name-token) 'identifier)
(while (progn
- [nongnu] elpa/swift-mode 1b47a09 495/496: Bump version to 8.3.0, (continued)
- [nongnu] elpa/swift-mode 1b47a09 495/496: Bump version to 8.3.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 561cacb 043/496: Code style, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 396f297 058/496: Fix test docstring typo, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 60956cb 081/496: fixup! Add swift repl commands to mode map, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode d59cae7 355/496: Fix indentation of string interpolations, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 2aeef85 425/496: Update copyright notice, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 490ab34 051/496: Simplify indentation command, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 66bfbc5 056/496: Add indentation tests, add makefile runner task, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ead0ae5 055/496: Fix spelling error in readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 049c6d6 439/496: Use `assoc-default`, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ba4d981 473/496: Use seq-contains-p if available,
ELPA Syncer <=
- [nongnu] elpa/swift-mode 86f8f62 447/496: Bump version to 8.0.1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 90686cb 450/496: Add `some` keyword of Swift 5.1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode acfc7fd 452/496: Fix comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0daff60 463/496: Fix unreadable characters appearing in repl prompt, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 5597eaf 467/496: Avoid max-lisp-eval-depth in font-lock-match-expr, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 8f1a697 483/496: Fix documentations, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode cb6186e 474/496: Add support for font-lock-negation-char-face, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode b6d0351 338/496: Fix indentation of switch, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 07939df 413/496: Bump version to 7.0.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 55ce4e5 416/496: Fix command name, ELPA Syncer, 2021/08/29