[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: google looping!
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Fri, 08 May 2015 14:43:46 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 12441
- References: <b4m7fsjir9t.fsf@xxxxxxx>
In [emacs-w3m : No.12440]
On Fri, 08 May 2015 14:15:26 +0900, Katsumi Yamaoka wrote:
> What do you think about the best (or a better) way for emacs-w3m
> to fix the problem? What I think is to ignore the REFRESH meta
> tag for only Google.
I've installed a temporary fix in CVS. It ignores the REFRESH
directive if and only if it is zero seconds and from Google.
--- w3m.el~ 2015-04-27 02:16:17.000000000 +0000
+++ w3m.el 2015-05-08 05:39:36.142470200 +0000
@@ -9877,7 +9877,10 @@
(defun w3m-refresh-at-time ()
(when (and w3m-use-refresh w3m-current-refresh)
(if (= (car w3m-current-refresh) 0)
- (w3m-goto-url-with-timer (cdr w3m-current-refresh) (current-buffer))
+ ;; Temporary fix to avoid Google search looping [emacs-w3m:12440].
+ (unless (string-match "\\`https?://\\(?:[^\t\n /]+\\.\\)*google\\."
+ w3m-current-url)
+ (w3m-goto-url-with-timer (cdr w3m-current-refresh) (current-buffer)))
(setq w3m-refresh-timer
(run-at-time (car w3m-current-refresh)
nil