[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]
(B On Fri, 08 May 2015 14:15:26 +0900, Katsumi Yamaoka wrote:
(B> What do you think about the best (or a better) way for emacs-w3m
(B> to fix the problem? What I think is to ignore the REFRESH meta
(B> tag for only Google.
(BI've installed a temporary fix in CVS. It ignores the REFRESH
(Bdirective if and only if it is zero seconds and from Google.
--- w3m.el~ 2015-04-27 02:16:17.000000000 +0000
(B+++ w3m.el 2015-05-08 05:39:36.142470200 +0000
(B@@ -9877,7 +9877,10 @@
(B (defun w3m-refresh-at-time ()
(B (when (and w3m-use-refresh w3m-current-refresh)
(B (if (= (car w3m-current-refresh) 0)
(B- (w3m-goto-url-with-timer (cdr w3m-current-refresh) (current-buffer))
(B+ ;; Temporary fix to avoid Google search looping [emacs-w3m:12440].
(B+ (unless (string-match "\\`https?://\\(?:[^\t\n /]+\\.\\)*google\\."
(B+ (w3m-goto-url-with-timer (cdr w3m-current-refresh) (current-buffer)))
(B (setq w3m-refresh-timer
(B (run-at-time (car w3m-current-refresh)