From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#16285: 24.3.50; [PATCH] shr: handle tag with blank error. Date: Sun, 05 Jan 2014 10:48:18 +0100 Message-ID: References: <877ganst3f.fsf@dhcp-193-97.nrt.redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1388915356 19485 80.91.229.3 (5 Jan 2014 09:49:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jan 2014 09:49:16 +0000 (UTC) Cc: 16285@debbugs.gnu.org To: Kenjiro NAKAYAMA Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 05 10:49:22 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VzkKe-0006h3-2Z for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jan 2014 10:49:20 +0100 Original-Received: from localhost ([::1]:57229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzkKd-0005Sg-Mh for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jan 2014 04:49:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzkKU-0005M0-8u for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2014 04:49:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VzkKN-0005fd-VZ for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2014 04:49:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzkKN-0005fY-S3 for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2014 04:49:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VzkKM-0002ix-Og for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2014 04:49:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2014 09:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16285 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 16285-submit@debbugs.gnu.org id=B16285.138891532010435 (code B ref 16285); Sun, 05 Jan 2014 09:49:02 +0000 Original-Received: (at 16285) by debbugs.gnu.org; 5 Jan 2014 09:48:40 +0000 Original-Received: from localhost ([127.0.0.1]:35212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VzkJz-0002i8-78 for submit@debbugs.gnu.org; Sun, 05 Jan 2014 04:48:39 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:46196) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VzkJs-0002hl-Va for 16285@debbugs.gnu.org; Sun, 05 Jan 2014 04:48:34 -0500 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VzkJe-0002W1-Kz; Sun, 05 Jan 2014 10:48:18 +0100 X-Now-Playing: Barbara Morgenstern's _Vermona ET 6-1_: "Ein Tag auf dem Balkon" X-Hashcash: 1:23:140105:16285@debbugs.gnu.org::cb3a56hxdu62jSOy:0000000000000000000000000000000000000000B5R0 X-Hashcash: 1:23:140105:nakayamakenjiro@gmail.com::9AwS2zM6DCKwlU5H:000000000000000000000000000000000000stjL In-Reply-To: <877ganst3f.fsf@dhcp-193-97.nrt.redhat.com> (Kenjiro NAKAYAMA's message of "Sun, 29 Dec 2013 22:08:04 +0900") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1VzkJe-0002W1-Kz MailScanner-NULL-Check: 1389520099.40333@AFIJmm/VU5JepH3kucwaAg X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:82989 Archived-At: Kenjiro NAKAYAMA writes: > * net/eww.el (shr-descend): Handle tag with blank error. I've now fixed this in a different manner. Your patch would have bugged out if the empty anchor was the first element in the buffer, so I just made it insert a "*" if we have an empty anchor. The anchoring mechanism should perhaps be implemented in a different way -- markers instead of text properties, for instance? That way zero-length anchors would be no problem. Rewriting it in that way should probably wait until after the feature freeze, though. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no