From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25445: Bug (Trunk): Redirect fails in Duckduckgo Date: Mon, 16 Jan 2017 21:24:35 +0200 Message-ID: <838tqaajv0.fsf@gnu.org> References: <87pojqxgfm.fsf@users.sourceforge.net> <87k29xvhfo.fsf@gnu.org> <87bmv7yh7c.fsf@users.sourceforge.net> <87r346urvj.fsf@gnu.org> <87pojmdgcj.fsf@Rainer.invalid> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1484595054 24353 195.159.176.226 (16 Jan 2017 19:30:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2017 19:30:54 +0000 (UTC) Cc: Stromeko@nexgo.de, 25445@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 16 20:30:49 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTCzA-0004Uy-7V for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jan 2017 20:30:32 +0100 Original-Received: from localhost ([::1]:59098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTCzE-0001v9-Vh for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jan 2017 14:30:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTCut-0006fH-7E for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 14:26:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTCuo-0000EQ-OY for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 14:26:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40533) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTCuo-0000EK-Kr for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 14:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cTCuo-0003Fj-A8 for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 14:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Jan 2017 19:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25445 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch Original-Received: via spool by 25445-submit@debbugs.gnu.org id=B25445.148459470912446 (code B ref 25445); Mon, 16 Jan 2017 19:26:02 +0000 Original-Received: (at 25445) by debbugs.gnu.org; 16 Jan 2017 19:25:09 +0000 Original-Received: from localhost ([127.0.0.1]:55932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTCtx-0003Ef-JL for submit@debbugs.gnu.org; Mon, 16 Jan 2017 14:25:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTCtv-0003ER-KB for 25445@debbugs.gnu.org; Mon, 16 Jan 2017 14:25:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTCtm-0008Oz-2D for 25445@debbugs.gnu.org; Mon, 16 Jan 2017 14:25:02 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTCtl-0008Ou-Uc; Mon, 16 Jan 2017 14:24:57 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3607 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cTCtj-0004Td-4F; Mon, 16 Jan 2017 14:24:57 -0500 In-reply-to: (message from Noam Postavsky on Mon, 16 Jan 2017 13:24:08 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:128153 Archived-At: > From: Noam Postavsky > Date: Mon, 16 Jan 2017 13:24:08 -0500 > Cc: 25445@debbugs.gnu.org > > On Mon, Jan 16, 2017 at 1:12 PM, Achim Gratz wrote: > > npostavs@users.sourceforge.net writes: > >> (when (or (string-match "^\\([0-9]+\\) *;.*url=\"\\([^\"]+\\)\"" refresh) > >> + (string-match "^\\([0-9]+\\) *;.*url=\'\\([^\']+\\)\'" refresh) > >> (string-match "^\\([0-9]+\\) *;.*url=\\([^ ]+\\)" refresh)) > > > > Why not use a regex with alternatives and do just a single match? > > Stefan made the same suggestion: > https://lists.gnu.org/archive/html/emacs-devel/2017-01/msg00268.html > > I'm not entirely sure it's an improvement. Neither am I: it would make the regexp harder to interpret (for humans).