From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#19462: shr: use wrap-prefix when possible, instead of filling the text Date: Sun, 27 Dec 2015 07:22:55 +0100 Message-ID: <87ege8jtq8.fsf@gnus.org> References: <83fvc5ni0u.fsf@gnu.org> <87k31fwwyv.fsf@ferrier.me.uk> <87bnmq9ibf.fsf@ferrier.me.uk> <87lhlrx5fc.fsf@building.gnus.org> <878uhrcr5l.fsf@building.gnus.org> <83sifzjflk.fsf@gnu.org> <87egric2ki.fsf_-_@violet.siamics.net> <87bn9ezb2h.fsf@gnus.org> <567D8E43.8030408@gmail.com> <87y4ciwe6g.fsf@gnus.org> <567DC781.8040306@gmail.com> <87lh8iuoq1.fsf@gnus.org> <567EC613.6050901@gmail.com> <567F5CC8.5080505@gmail.com> <567F66D7.1020708@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1451197462 10352 80.91.229.3 (27 Dec 2015 06:24:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Dec 2015 06:24:22 +0000 (UTC) Cc: 19462@debbugs.gnu.org To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 27 07:24:11 2015 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 1aD4kV-0002cs-38 for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Dec 2015 07:24:11 +0100 Original-Received: from localhost ([::1]:40838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aD4kU-0001DI-2b for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Dec 2015 01:24:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aD4kQ-0001Cx-8J for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2015 01:24:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aD4kM-0000DC-7y for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2015 01:24:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aD4kM-0000D8-4Z for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2015 01:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aD4kL-00017d-US for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2015 01:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Dec 2015 06:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 19462-submit@debbugs.gnu.org id=B19462.14511974014266 (code B ref 19462); Sun, 27 Dec 2015 06:24:01 +0000 Original-Received: (at 19462) by debbugs.gnu.org; 27 Dec 2015 06:23:21 +0000 Original-Received: from localhost ([127.0.0.1]:42346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aD4jh-00016k-BO for submit@debbugs.gnu.org; Sun, 27 Dec 2015 01:23:21 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:58977) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aD4je-00016b-Qw for 19462@debbugs.gnu.org; Sun, 27 Dec 2015 01:23:19 -0500 Original-Received: from 2.150.58.24.tmi.telenormobil.no ([2.150.58.24] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aD4jJ-0002dW-4S; Sun, 27 Dec 2015 07:22:57 +0100 In-Reply-To: <567F66D7.1020708@gmail.com> ("=?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel"'s message of "Sun, 27 Dec 2015 05:19:35 +0100") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aD4jJ-0002dW-4S MailScanner-NULL-Check: 1451802177.70511@8bX7FvGbGghQ0ajM9d8rvg 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110769 Archived-At: Cl=E9ment Pit--Claudel writes: > I looked into this more, but I don't think it will work. I want to > highlight the context of the element that contains the target id, so > if lines are not broken up then highlighting the full line works > well. If they are, on the other hand, then I can't tell how much > surrounding text to highlight. I'm not sure what you mean by "context". But you can look "down" into the DOM and see if your id is in an element there. Or you can transform the HTML, or transform the DOM, to wrap the elements you want to highlight. For instance, you can loop over all elements that have ids that match with `dom-by-id', and you can alter the DOM to insert, say, h1 elements around those that you want to have highlit. Etc. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no