summaryrefslogtreecommitdiffhomepage
path: root/lib/eos/jao-afio.el
diff options
context:
space:
mode:
Diffstat (limited to 'lib/eos/jao-afio.el')
-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)