summaryrefslogtreecommitdiffhomepage
path: root/lib/eos
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-03-29 01:06:55 +0100
committerjao <jao@gnu.org>2021-03-29 01:06:55 +0100
commit39538d29efcbd4fecc31d1ea27f9b7ae4f273318 (patch)
tree9c748dc81d98ca62aebcd2498c20488b4078fdb5 /lib/eos
parent8d6b8bf4c7dadff8c69894f05fef40806fea659f (diff)
downloadelibs-39538d29efcbd4fecc31d1ea27f9b7ae4f273318.tar.gz
elibs-39538d29efcbd4fecc31d1ea27f9b7ae4f273318.tar.bz2
lazier w3m loading (if at all)
Diffstat (limited to 'lib/eos')
-rw-r--r--lib/eos/jao-afio.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/eos/jao-afio.el b/lib/eos/jao-afio.el
index ab5fd12..d031e59 100644
--- a/lib/eos/jao-afio.el
+++ b/lib/eos/jao-afio.el
@@ -82,6 +82,9 @@
(find-file doc)))))))
(defvar jao-afio-use-w3m nil)
+(declare w3m "w3m")
+(declare w3m-alive-p "w3m")
+(declare w3m-previous-buffer "w3m")
;;;###autoload
(defun jao-afio-open-www ()
@@ -165,7 +168,7 @@
(interactive "P")
(if (jao-afio--check-frame-p)
(jao-afio--goto-frame ?w reset)
- (when (w3m-alive-p)
+ (when (and jao-afio-use-w3m (w3m-alive-p))
(pop-to-buffer (w3m-alive-p)))))
(defun jao-afio--try-init (&optional f)