[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: w3m-new-session-in-background t doesn't behave conveniently



In [emacs-w3m : No.11955] Katsumi Yamaoka wrote:
> In [emacs-w3m : No.11954] Michael Heerdegen wrote:
>> This has always bothered me: Set `w3m-new-session-in-background' to t.
>> Now, if you use <S-return> or <S-mouse-2> to open a link in the
>> background, W3m creates a new tab, switches to this new tab, waits until
>> the new page is completely rendered, and not before that is done, it
>> jumps back to the old tab.

> Thanks.  But I cannot reproduce this.
[...]
Oops, I can reproduce it.  Maybe I was half asleep, sorry.
Could you try the attached patch?  I'll install it in CVS later.
--- w3m.el~	2012-12-17 11:34:22.000000000 +0000
+++ w3m.el	2013-01-11 00:12:50.629614000 +0000
@@ -6912,7 +6912,8 @@
       (setq buffer (current-buffer)))
     (let (handler)
       (w3m-process-do
-	  (success (w3m-goto-url url reload nil nil w3m-current-url handler))
+	  (success (w3m-goto-url url reload nil nil w3m-current-url handler
+				 nil w3m-new-session-in-background))
 	(set-window-hscroll (selected-window) 0)
 	;; Delete the newly created buffer if it's been made empty.
 	(when (and pos