From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: EWW, Duckduck go and Oops error Date: Thu, 27 Apr 2017 11:57:07 +0700 Message-ID: References: <1493137608.2476.3.camel@localhost> <1493229849.3690.1.camel@localhost> <1493232799.2443.1.camel@localhost> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1493289796 25314 195.159.176.226 (27 Apr 2017 10:43:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Apr 2017 10:43:16 +0000 (UTC) Cc: Help Gnu Emacs mailing list , Lars Ingebrigtsen , damjan.franz@gmail.com To: Kaushal Modi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 27 12:43:10 2017 Return-path: Envelope-to: geh-help-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 1d3gsz-000599-Fo for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Apr 2017 12:42:57 +0200 Original-Received: from localhost ([::1]:58723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3bV9-0004kN-Rb for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Apr 2017 00:57:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3bUh-0004kB-9j for help-gnu-emacs@gnu.org; Thu, 27 Apr 2017 00:57:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3bUg-0001Zp-JM for help-gnu-emacs@gnu.org; Thu, 27 Apr 2017 00:57:31 -0400 Original-Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:37734) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3bUg-0001ZN-D7 for help-gnu-emacs@gnu.org; Thu, 27 Apr 2017 00:57:30 -0400 Original-Received: by mail-wm0-x235.google.com with SMTP id m123so7070775wma.0 for ; Wed, 26 Apr 2017 21:57:29 -0700 (PDT) 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:content-transfer-encoding; bh=VJpoG1rEBN3Uk3AbM/fpta89M6NxcUfo4DjrDHKZW0c=; b=p0IYQ2O9UrKC/KOeztC5q/iXdOvl45dl8fSnCvH6USTOUsKTZkBfWo115Fo5IHmpFc 3jKm6Q9d6cnV3Cz1cc3E2biL9rTC+ovHVTNZfUH9tlWEZdJBsXicy9fz+Safaa2l3lX0 F7JAlhI5q/AYK6/f3ZQA6lT5qGplyLZEBwlqnGJLG1S0Jq+cjRtAhcZkc76gGTv1jq9O 9drphalOQL0mNQ+tkdOCXje/5tlmT4LZf+5oTSqxCSbv1mGjJdO0TF3wruzkMigVLjrU nvigqQ5NEp6BQoSYFbEYwQJaSHrryCaMbKWcK0u8/JIeTTPaZ32dt44YVUzZbOX/5qJ2 afAw== 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:content-transfer-encoding; bh=VJpoG1rEBN3Uk3AbM/fpta89M6NxcUfo4DjrDHKZW0c=; b=U3lcsYGg862TsCC5VWCt2D40DGgUXLZYf7s/6oJGPK04Z+ENKUpT4vTbQ2bwp96HXR sJ3qJydV0R4asF8J5+6hRi2VWvopdZGXEj5a12C1La2BpQHYL1diQNkVhs6tmFS5iwf4 ZBKhxYZuOTe1EHxwj/D/jKdDUPTARF2SpuKoYiTlcL9LCMzHoiz20rpAdHvm81CgsmYn 5OvACMdaJLukpwyRvbut274M32tApE/Jm4+1hmbhoX+lCSxfH2OojYuvyicrlonX7FEd gD26qDuo4hqRCJ/rPQojZ9X//BTD6CBq10wmmzi9JUk5AoPF15cVpRd0sh9Fd6nZSIJG gX6g== X-Gm-Message-State: AN3rC/5XWubrA0v//Wtu6T+l+WOZ1+xdm4WjmnxqQ9rtKj+jyHL361DO EBfN0b2k5ohLooep8ob63sio38Ki9N4a X-Received: by 10.28.199.198 with SMTP id x189mr715707wmf.95.1493269048598; Wed, 26 Apr 2017 21:57:28 -0700 (PDT) Original-Received: by 10.223.169.12 with HTTP; Wed, 26 Apr 2017 21:57:07 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 51aT8Z0W1cc75JpkPwsR6IlX9fE X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112889 Archived-At: On Thu, Apr 27, 2017 at 2:10 AM, Kaushal Modi wrot= e: > (when (or (string-match "^\\([0-9]+\\) *;.*url=3D\"\\([^\"]+\\)\"" refres= h) > (string-match "^\\([0-9]+\\) *;.*url=3D'\\([^']+\\)'" refresh) > (string-match "^\\([0-9]+\\) *;.*url=3D\\([^ ]+\\)" refresh)) This does not look exactly right according to [HTML 5.1 =C2=A7 4.2.5.3 subheading =E2=80=9CRefresh state=E2=80=9D][1]. [1]: https://www.w3.org/TR/html51/document-metadata.html#statedef-http-equi= v-refresh * There may be leading whitespace in the content attribute. * The refresh delay, which is a non-empty sequence of ASCII digits, may be immediately followed by a period and more digits or periods, which are to be ignored. * The time and URL may be separated with a semicolon or comma, with optional whitespace at either or both sides. * The =E2=80=9Curl=E2=80=9D parameter is the only one allowed, it must imme= diately follow the separator, its name is case-insensitive and may be omitted along with the equal sign. * There may be whitespace at either or both sides of the equal sign. * The way I read it, spaces in an unquoted (or quoted) url are permitted, although trailing whitespace is invalid and will be removed by the basic URL parser algorithm.