From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Newsgroups: gmane.emacs.bugs Subject: bug#19462: shr: use wrap-prefix when possible, instead of filling the text Date: Sun, 27 Dec 2015 04:36:40 +0100 Message-ID: <567F5CC8.5080505@gmail.com> References: <83ppbanqhe.fsf@gnu.org> <87vbl2xigp.fsf@ferrier.me.uk> <83ioh2nlow.fsf@gnu.org> <87sig6xech.fsf@ferrier.me.uk> <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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7MN5LL1X9puKPe73mXu31G0Hm1CA0qH4C" X-Trace: ger.gmane.org 1451187443 15891 80.91.229.3 (27 Dec 2015 03:37:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Dec 2015 03:37:23 +0000 (UTC) Cc: 19462@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 27 04:37:13 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 1aD28u-0008CW-7u for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Dec 2015 04:37:12 +0100 Original-Received: from localhost ([::1]:40644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aD28t-00024N-9s for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Dec 2015 22:37:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aD28p-000247-9a for bug-gnu-emacs@gnu.org; Sat, 26 Dec 2015 22:37:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aD28k-0003zQ-6x for bug-gnu-emacs@gnu.org; Sat, 26 Dec 2015 22:37:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aD28k-0003zM-3i for bug-gnu-emacs@gnu.org; Sat, 26 Dec 2015 22:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aD28j-0005ei-RD for bug-gnu-emacs@gnu.org; Sat, 26 Dec 2015 22:37:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Dec 2015 03:37: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.145118740921722 (code B ref 19462); Sun, 27 Dec 2015 03:37:01 +0000 Original-Received: (at 19462) by debbugs.gnu.org; 27 Dec 2015 03:36:49 +0000 Original-Received: from localhost ([127.0.0.1]:42324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aD28X-0005eI-33 for submit@debbugs.gnu.org; Sat, 26 Dec 2015 22:36:49 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.187]:49887) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aD28V-0005e4-Ae for 19462@debbugs.gnu.org; Sat, 26 Dec 2015 22:36:47 -0500 Original-Received: from [192.168.1.82] ([109.24.225.43]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0LfFYi-1aWygr1KIK-00orw0; Sun, 27 Dec 2015 04:36:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <567EC613.6050901@gmail.com> X-Provags-ID: V03:K0:jT+62J99oco+QhijQSGi5gTwKLyOC+8Bjk1pww9tB794knCX68D JHgFSMdC3PjiWML231OVfdZMYTPTSKCq4ZItb0NnX0poYi5MCthF4GDjA+KG6a3Q4usO0Mz Lund6NN+uqUMuPqpVhmbP8h6kgntyPr36QWnDbxkY5hn8vVM4kqcopfgI0whsif+m/b7Yvr anPnnt07G8Iw5pOke5zbA== X-UI-Out-Filterresults: notjunk:1;V01:K0:SYEEYLlRuWM=:Q72zioUgh4aPjjyNfXnFl7 enkdezxNsRRUD3FrnVXK+U08+R2Yhde62yq+xD5gH9r8GLgNr821VQySk9CXB9maCFT3h9h+8 A20MzH7hgnvuxccWoQQdhSg1Uzx360L+XyJs6kJiFhzvRuDQ/l72HHRs2NaxOkbsedy68K2/t O5Ll8PeLqedlAvKNiZxwdH0XIg92wifQpbqg5KFamRZEw+bTYrzBzJ9UkLwXT70n11UsRoHqx JP7AzE44fjHXeNPZLLQW7tAPkDxq+qqJRuj69IcOiR7RYf293reyveP39mVQ2AXTB8XoKsB39 0ZNICJF24BqE2GpVIedZeXTiWyi+EorIl3sJxfq19MkE9MhpIq2wBOG/nGsc9DXKw8nuVyQbI 39o/s5PdW3owacHElXknHbUNU1BOUE5TATBWayoiva7w0DMomYtsRPxJL+onyqHMpjHxktQ9Y v3dUjs7iSHkrsa1pN9dorAkXhPvABkwzrEuHg87X9gl1FHbMFDyIsRgN1M5u4kEmLbUZpovDa leiGyNMyhhl+Zc9ydtcxNQL/5d/NvL1u927P8TGYRuhwqUZM6j1l3GnLEMLri21adHiCmfjXq a3tAB86oh+3+y5j0lE8Jmpzu/y1AeKPwvVvfNeQsTjDqvKwPUhZT0x/IBS7qEUbJzAK9HIuN5 mi2m+dIKzJ4UdOjnxA2ac//icptXdpWVP8PcwmYCn08+RSbVzkWCM9FoKYQoztslXhDo= 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:110764 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7MN5LL1X9puKPe73mXu31G0Hm1CA0qH4C Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 12/26/2015 05:53 PM, Cl=E9ment Pit--Claudel wrote: > On 12/25/2015 11:51 PM, Lars Ingebrigtsen wrote: >> Cl=E9ment Pit--Claudel writes: >> >>> I do not know how to do this, but it sounds like a convenient >>> solution! How does one tell shr to apply a particular font to its >>> target (all that I know of is `shr-target-id', which seems to insert = a >>> '*')? >> >> Look at `shr-tag-h1', for instance, and create whatever similar versio= n >> of that you want by overriding with `shr-external-rendering-functions'= =2E >=20 > That sounds like a great idea, actually. And I guess I can get the id o= f the current element to check it against the target id using (equal (dom= -attr dom 'id) TARGET-ID). >=20 > I'll try that! I just tried this (capturing the id that I was interested in in a closure= instead of putting it in shr-target-id), but shr-descend only works with= globally defined functions; is there a reason for that? It's due to the = following bit:=20 (if (fboundp function) (funcall function dom) (shr-generic dom)) Cl=E9ment. --7MN5LL1X9puKPe73mXu31G0Hm1CA0qH4C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWf1zIAAoJEPqg+cTm90wjNvcQAJiTnm++a+9kjMn4MEjQb+nO ABr7KOSF0vnkGLAxs8obrhWRzr2srsrO6pr89KeSGR4oXvzoBFcWpKhK9e5OoT8A 2ZD7tVR2gFykucGoccVBHArSZ/JfsdhNiHqfAl+X2ps9FtKMkeY2eAHbf6q1Jb1+ BlGWTWtrsMZ4nSEip+LJ4Uxr95Y7hcgLirvuPz7V1FvN3Mo622WIl38xgAaYEPD3 ucPOsjk87xAQEjFzBvmlG4PZNqOt/3WJ2dVM8LLkPUHTYYTFRjCsf6lMuwfx4iiB sItuaZRqduMxYVkFyyMkoh0kNw+ZY3rohNnlJiHt4jHOkEYS6m0tf1PScmCeTwJw g8OGpi6+72o873ubo7oQ2VijdeHq9S+YykrmjlpZD8ormt5P4Ka9UpM6ncoYZnrI 98pJDVqS1Kwo7e/Qt7bywWMIhkGSC1Emh0ORMlp1zQxuaYYRb+M0S0Q27eriqEiX ixfRm1N33WWawgyRLWIGTBWUFlSIpZeZgMYxwvy+2MTlbZ5mPErOxiQC79Vxu9zE RbVGdv03yDwFM3GVAwdcCeMqjUOzhCx/tlJPOlzbXnyFi4mqVGngAAcMkRA+qwk6 snTjFTxn1V1DwKTfIVoodMRfn1V4dl0GWQGJy+rAndk9IWRr0P78eDIAds3/GZ3B GRMrcUSIodeVWtAp3t88 =PKDo -----END PGP SIGNATURE----- --7MN5LL1X9puKPe73mXu31G0Hm1CA0qH4C--