From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#25445: Bug (Trunk): Redirect fails in Duckduckgo Date: Mon, 16 Jan 2017 13:24:08 -0500 Message-ID: References: <87pojqxgfm.fsf@users.sourceforge.net> <87k29xvhfo.fsf@gnu.org> <87bmv7yh7c.fsf@users.sourceforge.net> <87r346urvj.fsf@gnu.org> <87pojmdgcj.fsf@Rainer.invalid> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1484591266 13829 195.159.176.226 (16 Jan 2017 18:27:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2017 18:27:46 +0000 (UTC) Cc: 25445@debbugs.gnu.org To: Achim Gratz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 16 19:27:41 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 1cTC0K-00039j-M7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jan 2017 19:27:40 +0100 Original-Received: from localhost ([::1]:58838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTC0P-0001fn-DG for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jan 2017 13:27:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTBxp-00086F-L2 for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 13:25:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTBxm-00006G-Hx for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 13:25:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40514) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTBxm-000068-Em for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 13:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cTBxm-0001sh-1E for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 13:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Jan 2017 18:25:01 +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.14845910567172 (code B ref 25445); Mon, 16 Jan 2017 18:25:01 +0000 Original-Received: (at 25445) by debbugs.gnu.org; 16 Jan 2017 18:24:16 +0000 Original-Received: from localhost ([127.0.0.1]:55913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTBx1-0001rc-Rh for submit@debbugs.gnu.org; Mon, 16 Jan 2017 13:24:16 -0500 Original-Received: from mail-oi0-f47.google.com ([209.85.218.47]:32814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTBx0-0001rP-8o for 25445@debbugs.gnu.org; Mon, 16 Jan 2017 13:24:14 -0500 Original-Received: by mail-oi0-f47.google.com with SMTP id w204so106836085oiw.0 for <25445@debbugs.gnu.org>; Mon, 16 Jan 2017 10:24:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=FrmrjaE/WawiIRiADUo+XD9JJ7zCr1keKzxWNr81gU8=; b=KisJfkMa9jmbp60g9OYXMLt1XEtLadftHKEZDY+SM3RThsXGFdTPilK7A0fwYv7feX pftTaeCvxwNOpcjyQWDO6bH000b41dDhUeMR1/DsQ+CaNFaoXWDi3ikJSty596ebBkUT XF5883nazhtxrgo5W2feRKboaj9+gzrKrId8zUNKS015Vk1EWmlvWme3BhSk4Vpx0cLo eZVcA5yFyn8JX7bAJTtPQQbgyWxhSB3ZMYSA84Z1U6uKH2vMyNxAPCD7zPa8lqIEn/0u N6Rj02KSAmnvef/uGHMO/fmz1kMIpUpJ09T8ipw1hruVs1E1ImzR0LH5KXt1+890Q67q YpYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=FrmrjaE/WawiIRiADUo+XD9JJ7zCr1keKzxWNr81gU8=; b=XTyvccuUxcitih58Kzf1B4kbFQGG+uDWB7yfD0iy9VEvTyKSvHSMoGz79W8Up8G8BH 9MJzAU8Oc+d+D9M6hu036rZBcgQOVfyLzx0k02mdBkqof21UCLF3WMO0YAves78Hxbcv 3YL3xxTFWwzpqi/MjN0LBBvlb1UFwrpypXaYB4omI/yLNV2+zXMVRXtXBS3/4yApgs5K WeajsDu0siROiOFX2bRMed3rkF6oOHLTA5jjAxrU7/lTFQnH6pI5OjPUQWCgYbVzOAcg p8K06EKqUnhlZmeYi6qJKiNKjbQgl4t0cUKHDh5tDaB3oNk3eCLMcMwHpJxYHIph71Hy xohg== X-Gm-Message-State: AIkVDXISrsEdFyrVTsSFdGxJgC1oAv7b03uZ1N7MpByOIHBiWw6kfo8T31kPwDvt8vVh428UeAHrLKa3eaGQkw== X-Received: by 10.202.105.70 with SMTP id e67mr18141845oic.26.1484591048706; Mon, 16 Jan 2017 10:24:08 -0800 (PST) Original-Received: by 10.157.21.117 with HTTP; Mon, 16 Jan 2017 10:24:08 -0800 (PST) In-Reply-To: <87pojmdgcj.fsf@Rainer.invalid> X-Google-Sender-Auth: HR2UqV-ZK0VP3r07AFU0B1FWFjw 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:128152 Archived-At: 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.