diff options
author | jao <jao@gnu.org> | 2022-09-01 00:08:14 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-09-01 00:08:14 +0100 |
commit | 749905e3b35e784b8254d9efbe33ddef2cb1d776 (patch) | |
tree | 3bbf9b319fc0f3b6b1aed9dc4dc4441ca6ebe2f3 /custom | |
parent | 1070a4ecb5c15933e80724bf93f785a9790a27cb (diff) | |
download | elibs-749905e3b35e784b8254d9efbe33ddef2cb1d776.tar.gz elibs-749905e3b35e784b8254d9efbe33ddef2cb1d776.tar.bz2 |
eww-session: don't try to open if there's eww buffers around
Diffstat (limited to 'custom')
-rw-r--r-- | custom/jao-custom-eww.el | 2 | ||||
-rw-r--r-- | custom/jao-custom-org.el | 2 |
2 files changed, 2 insertions, 2 deletions
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) |