[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
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
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 @@
:type '(string :size 0))
+;; Please excuse this, I was a little annoyed when I wrote this hack
+;; -- Johann <firstname.lastname@example.org>
+(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)
- (unless (eq buffer newbuffer)
+ (unless (or
+ (eq buffer newbuffer))
;; The new buffer visiting the url may not be in the w3m-mode,
;; so we have to make it visible.
This line is left blank intentionally.