From 749905e3b35e784b8254d9efbe33ddef2cb1d776 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 1 Sep 2022 00:08:14 +0100 Subject: eww-session: don't try to open if there's eww buffers around --- custom/jao-custom-eww.el | 2 +- custom/jao-custom-org.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'custom') diff --git a/custom/jao-custom-eww.el b/custom/jao-custom-eww.el index 27c5821..dbe147f 100644 --- a/custom/jao-custom-eww.el +++ b/custom/jao-custom-eww.el @@ -12,7 +12,7 @@ (with-current-buffer b (string= ,url (url-encode-url (eww-current-url))))) - (jao-eww-session--list-buffers)))) + (jao-eww-session-eww-buffers)))) (cond (bf (switch-to-buffer bf)) ((string-match-p url "^file://") (eww-open-file url)) (t (eww url 4)))))) diff --git a/custom/jao-custom-org.el b/custom/jao-custom-org.el index 1c6076a..f46b9ee 100644 --- a/custom/jao-custom-org.el +++ b/custom/jao-custom-org.el @@ -225,7 +225,7 @@ (defun jao-insert-eww-link () "Look for last eww buffer and insert an org link to it." (interactive) - (when-let (b (car (jao-eww-session--list-buffers))) + (when-let (b (car (jao-eww-session-eww-buffers))) (let ((lnk (with-current-buffer b (format "[[%s][%s]]" (eww-current-url) -- cgit v1.2.3