[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ellama 99f80b212a 2/7: Improve lazy loading (shr, eww)
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ellama 99f80b212a 2/7: Improve lazy loading (shr, eww) |
Date: |
Sat, 23 Nov 2024 09:58:09 -0500 (EST) |
branch: externals/ellama
commit 99f80b212a3a88a263090312aef0567bf8345f57
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Improve lazy loading (shr, eww)
---
ellama.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ellama.el b/ellama.el
index 8e85c04eaf..07ec133a7b 100644
--- a/ellama.el
+++ b/ellama.el
@@ -42,8 +42,6 @@
(require 'spinner)
(require 'transient)
(require 'info)
-(require 'shr)
-(require 'eww)
(require 'vc)
(require 'compat)
(eval-when-compile (require 'rx))
@@ -1243,6 +1241,8 @@ If EPHEMERAL non nil new session will not be associated
with any file."
(defun ellama-context-add-webpage-quote-eww ()
"Add webpage quote to context interactively from `eww'."
(interactive)
+ (defvar eww-data)
+ (declare-function eww-current-url "eww")
(if (eq major-mode 'eww-mode)
(let* ((name (plist-get eww-data :title))
(url (eww-current-url))
@@ -2040,7 +2040,7 @@ otherwise prompt user for URL to summarize."
(interactive
(list
(if-let ((url (or (and (fboundp 'thing-at-point) (thing-at-point 'url))
- (shr-url-at-point nil))))
+ (and (fboundp 'shr-url-at-point) (shr-url-at-point
nil)))))
url
(read-string "Enter URL you want to summarize: "))))
(let ((buffer-name (url-retrieve-synchronously url t)))
- [elpa] externals/ellama updated (e8f64969d6 -> c44d58f3f8), ELPA Syncer, 2024/11/23
- [elpa] externals/ellama 99f80b212a 2/7: Improve lazy loading (shr, eww),
ELPA Syncer <=
- [elpa] externals/ellama a0d7801fa3 6/7: Merge pull request #177 from minad/lazy-loading, ELPA Syncer, 2024/11/23
- [elpa] externals/ellama 19936c04be 1/7: Lower transient dependency to 0.7 for Emacs 30, ELPA Syncer, 2024/11/23
- [elpa] externals/ellama c44d58f3f8 7/7: Bump version, ELPA Syncer, 2024/11/23
- [elpa] externals/ellama c1e2524a5f 3/7: Remove unnecessary json require, ELPA Syncer, 2024/11/23
- [elpa] externals/ellama 025b6d26c8 4/7: Improve lazy loading (vc), ELPA Syncer, 2024/11/23
- [elpa] externals/ellama 6d2cf07b95 5/7: Improve lazy loading (info), ELPA Syncer, 2024/11/23