[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser e3dd43e247 1/7: Define ring-member immediately if n
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/geiser e3dd43e247 1/7: Define ring-member immediately if necessary |
Date: |
Sat, 6 Jul 2024 18:59:50 -0400 (EDT) |
branch: elpa/geiser
commit e3dd43e247591e588f530ed15867766aa9cc9482
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Define ring-member immediately if necessary
Right above the changed lines we require `ring'. It is therefore not
necessary to delay evaluation until `ring' has been loaded; we know it
has already been loaded.
---
elisp/geiser-base.el | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/elisp/geiser-base.el b/elisp/geiser-base.el
index 54362243b2..61008985ad 100644
--- a/elisp/geiser-base.el
+++ b/elisp/geiser-base.el
@@ -16,15 +16,14 @@
(require 'ring)
-(eval-after-load "ring"
- '(when (not (fboundp 'ring-member))
- (defun ring-member (ring item)
- (catch 'found
- (dotimes (ind (ring-length ring))
- (when (equal item (ring-ref ring ind))
- (throw 'found ind)))))))
-
-(when (not (fboundp 'looking-at-p))
+(unless (fboundp 'ring-member)
+ (defun ring-member (ring item)
+ (catch 'found
+ (dotimes (ind (ring-length ring))
+ (when (equal item (ring-ref ring ind))
+ (throw 'found ind))))))
+
+(unless (fboundp 'looking-at-p)
(defsubst looking-at-p (regexp)
(with-no-warnings
(let ((inhibit-changing-match-data t))
- [nongnu] elpa/geiser updated (410a3a50d7 -> a81969a527), ELPA Syncer, 2024/07/06
- [nongnu] elpa/geiser 9197acbdbd 3/7: Define geiser--feature-list as a variable, ELPA Syncer, 2024/07/06
- [nongnu] elpa/geiser e3dd43e247 1/7: Define ring-member immediately if necessary,
ELPA Syncer <=
- [nongnu] elpa/geiser 67f7278558 5/7: Define autoloads how that is normally done, ELPA Syncer, 2024/07/06
- [nongnu] elpa/geiser f74612686b 6/7: Buttons live in their own namespace, ELPA Syncer, 2024/07/06
- [nongnu] elpa/geiser de52f0e36f 4/7: Cleanup library headers, ELPA Syncer, 2024/07/06
- [nongnu] elpa/geiser a81969a527 7/7: Replace a button type with two new types, ELPA Syncer, 2024/07/06
- [nongnu] elpa/geiser b57fdc8fde 2/7: geiser-elisp-dir: Fallback to buffer-file-name, ELPA Syncer, 2024/07/06