[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A small hack and a patch
- From: myrkraverk@xxxxxxxxxxxxxxxxxxxxx
- Date: Sat, 30 Aug 2003 00:54:24 +0000
- X-ml-name: emacs-w3m
- X-mail-count: 05683
Hi,
I made this small hack (and here is a patch) so that w3m-view-this-url
does not switch buffers for me. I use escreen and want to swith
buffers myself.
I hope this is not too crude, it's a recent version from cvs to w3m.el
/usr/bin/diff: conflicting specifications of output style
--- w3m.el.~1.847.~ Mon Aug 25 21:13:17 2003
+++ w3m.el Sat Aug 30 00:20:28 2003
@@ -211,6 +211,14 @@
:group 'w3m
:type '(string :size 0))
+;; Please excuse this, I was a little annoyed when I wrote this hack
+;; -- Johann <myrkraverk@playstation2-linux.com>
+(defcustom w3m-do-not-switch-buffers-when-doing-w3m-view-this-url nil
+ "*Makes w3m *not* switch buffers when doing w3m-view-this-url."
+ :group 'w3m
+ :type 'boolean)
+
+
(defcustom w3m-add-user-agent t
"Add User-Agent field to the request header.
The value of `w3m-user-agent' is used for the field body."
@@ -4567,7 +4575,9 @@
(w3m-goto-url url reload nil nil w3m-current-url handler)
(setq newbuffer (current-buffer)
wconfig (current-window-configuration)))))
- (unless (eq buffer newbuffer)
+ (unless (or
+ w3m-do-not-switch-buffers-when-doing-w3m-view-this-url
+ (eq buffer newbuffer))
;; The new buffer visiting the url may not be in the w3m-mode,
;; so we have to make it visible.
(set-window-configuration wconfig))
--
This line is left blank intentionally.