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.devel Subject: Re: bug#19462: shr: use wrap-prefix when possible, instead of filling the text Date: Fri, 25 Dec 2015 19:43:15 +0100 Message-ID: <567D8E43.8030408@gmail.com> References: <83y4pzptpx.fsf@gnu.org> <871tnr1gqo.fsf@ferrier.me.uk> <83bnmvowdb.fsf@gnu.org> <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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dSQjcCfBjvgIheGGDAisLa2eCdUwqFQ01" X-Trace: ger.gmane.org 1451069033 25720 80.91.229.3 (25 Dec 2015 18:43:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Dec 2015 18:43:53 +0000 (UTC) Cc: larsi@gnus.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 25 19:43:44 2015 Return-path: Envelope-to: ged-emacs-devel@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 1aCXL5-0006Tq-8P for ged-emacs-devel@m.gmane.org; Fri, 25 Dec 2015 19:43:43 +0100 Original-Received: from localhost ([::1]:36148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCXL4-0007S8-DW for ged-emacs-devel@m.gmane.org; Fri, 25 Dec 2015 13:43:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCXKq-0007Rm-0j for emacs-devel@gnu.org; Fri, 25 Dec 2015 13:43:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCXKm-0003LT-Pr for emacs-devel@gnu.org; Fri, 25 Dec 2015 13:43:27 -0500 Original-Received: from mout.kundenserver.de ([212.227.17.13]:61004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCXKm-0003LI-Gz for emacs-devel@gnu.org; Fri, 25 Dec 2015 13:43:24 -0500 Original-Received: from [192.168.1.82] ([109.24.225.43]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0LjsPB-1aj7C71R0b-00bq8Y; Fri, 25 Dec 2015 19:43:22 +0100 X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <87bn9ezb2h.fsf@gnus.org> X-Provags-ID: V03:K0:i0XKkjzQrw2aXv8IB3Ky+CVVc5iwDVXx1ROTcyKAIJcrMh4XeYS IPGUjzjqQJjHMjmMBgXvnDTS5sqAKDlD1xUHsdv7oy8rsARk4SfLpA3WaWdTLyI2TmaDEV4 iXa1vZ0zVkDYSr77IEROnVWR9oQbMVYnd+i1va9S5jmxVv/JvbQ1TG3PiQ3/BYDPiKO5q9g V3BlIewjuCJI/17u9a5hw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Mef9DJVw4TE=:Pbt+sTtjfRCxErn586VFNa 6FlFnjjTeV012AH0jBNVuZZ8huF2dkTo0/1qX6D/3cQCgsGRXf1blJYid269L8cnd/QjaYXED ajpvSodXmYd7PQQMhqH2WjgTvBVvpciV4RVOAeFB5MdcyDj2BDGkJHtwT8On1tw1RkRT2Z3zY ZmZ3tvIcW7TIovfbaoLI2TrM07cIBABXe/Bj/1wWG4RYXM0oEusAes3OBh4qqcB5hhpcppyId ZOGoqnzqgAlSKMreZrimku7OnKX/TzVUBA2cIALEAYVNVEz3LGslmBVSyFD6CJ975z8kNgbsx k3sODXTbV8qtUeM+ooRMSOfP1qMmGOAyiC2lKeLHhcGjOEuntIbzprQEbQto0qmBJAagMX3E1 FaT61Mm36SRaVxPsb3pQm/xPB7A+8YaYDC+rr/GWxoLFsVBJGhqzmNrPIllRf3Die/EWvFO/g O2TYLReuCjBf/OeGezaubSy0WD59V5An2TaMi9oeAzGii652lui8hjCwXPosv7WG06GnueHWC hSpNAVUjayrHRhzhHz1W3i5gA9bBjqEPhJnyvLWM8OO0p7z8rC+xtzVFMEvURUV1S1xSA9I67 0OD7fr86Xi5CVxIBXEmM3c9HxyFeZlU27F/9B5xSA0Sy1XUylMi8WcFpZjIjFAIXCL3h5K4H3 NhXzzLrYCmSNHt70tLL4otxKIqmjyAEfcpNA7IsKUOlTUBbiLM06ylLTcRFMMcp5lSqc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.13 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196849 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --dSQjcCfBjvgIheGGDAisLa2eCdUwqFQ01 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 12/25/2015 06:34 PM, Lars Ingebrigtsen wrote: > Ivan Shmakov writes: >=20 >> >> (Yes, Emacs can display proportional fonts and fonts of different >> >> sizes, but until you can fold (etc) proportional text (and text wi= th >> >> a mixture of font sizes) in a pretty manner, that's more of a toy >> >> than anything else.) >> >> > What's non-pretty with how we do this now? What features are >> > missing? >> >> The only feature that I=92m aware to be missing is the actual >> support for Emacs native text wrapping (as in: the word-wrap >> variable and wrap-prefix text property) in SHR. >> >> Please thus consider the patch MIMEd. >=20 > I think this was superseded by the shr proportional font rewrite, so I'= m > closing the bug. I'd love a tiny bit more of information about this :)=20 In one of my packages I do some post-processing of a buffer rendered by s= hr from an html page to increase the font size of a particular title (thi= s is combined with company's support for documentation buffers for comple= tion).=20 For this to work properly, I need to ensure that shr does not insert hard= newlines to wrap the text; otherwise, the larger sized textx wraps in aw= kward ways. To do this in Emacs < 25 I set `shr-width' to `most-positive-= fixnum' and preprocess the html to remove s and
s (which other= wise cause an out of memory exception due to the `shr-width' hack), and i= n Emacs >=3D 25 I set it to 0, which shr seems to recognize there thanks = to this test in `shr-fill-lines': (if (<=3D shr-internal-width 0) nil Is there another solution to use visual-line-mode with shr that I have ov= erlooked? Cl=E9ment. --dSQjcCfBjvgIheGGDAisLa2eCdUwqFQ01 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) iQIcBAEBAgAGBQJWfY5IAAoJEPqg+cTm90wj3Q4P/2zlMk5lWHXt2hO6BmIeDlLk m+C8VYtXWmCtyzthvWt9buNDBVags4xMt2iV/hroRSiWpsWbGJhjZgX1uFtpYVcN gsvOp/LCrGHCC2m3Hy2J3Xb55mgn3aJxgn+6DPfxG8gPGu1yhO1CjXZOTtm2wgdo HigjOiD2ptle/3bn4hJU/OYO07KJohuY8qJhOvXJTIszzI0PiOkOHrIRKwXWCXuC i0z3T7ojFBw9eVIKjBIsoHt3KH1jM7tvYc8Cim3uk5c0aVbEpw3otoWXmh793EjQ NrhFs5gN1x6jjz4zIES6eBpkui+qoYU23GM/NbXHJVdrPvHkIfQLA8fhbs28OqpG 8wP2R4+aBlC8+xOjNw7CSOd61CPYptnnx7kmXiElQLob/6zpihamWZcIIiaRdT2u T6C5DaB3sE9d7+PQarvqwEMPY0Ej3rknc2BlAfiST5rWC1DgDVdeYt14L211k38/ uMweVggQLuTsbx0z9egpk84t3zfDNN+0h4fGow8gRPMqTORCzz1oui/f0w0JAQmZ aYslyCMzvMWMWd2wr8bQIOqZZ7jR+ckvXdtTQflFQ+rMt9T2Ocsu2r3tdteWvadq 4/AK2qGFiJDOZanDe8o1xJzLfvwBGbZ2rYt9/L92DCHf40cvb6DU/G72D9j5+HdF sRbEbGL5xZhgnurTnM23 =Lvc1 -----END PGP SIGNATURE----- --dSQjcCfBjvgIheGGDAisLa2eCdUwqFQ01--