From unknown Tue Aug 19 05:11:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29047: 26.0.90; shr hang (regression from 25.3) Resent-From: Mike Kupfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Oct 2017 23:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29047 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 29047@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150923512710883 (code B ref -1); Sat, 28 Oct 2017 23:59:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Oct 2017 23:58:47 +0000 Received: from localhost ([127.0.0.1]:39574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8azx-0002pO-G2 for submit@debbugs.gnu.org; Sat, 28 Oct 2017 19:58:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8azu-0002pA-Ho for submit@debbugs.gnu.org; Sat, 28 Oct 2017 19:58:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8azn-0004z4-TQ for submit@debbugs.gnu.org; Sat, 28 Oct 2017 19:58:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47059) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e8azn-0004yr-Js for submit@debbugs.gnu.org; Sat, 28 Oct 2017 19:58:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8azl-0000ux-FQ for bug-gnu-emacs@gnu.org; Sat, 28 Oct 2017 19:58:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8azi-0004u1-7G for bug-gnu-emacs@gnu.org; Sat, 28 Oct 2017 19:58:29 -0400 Received: from shell1.rawbw.com ([198.144.192.42]:53476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8azh-0004tf-H9 for bug-gnu-emacs@gnu.org; Sat, 28 Oct 2017 19:58:26 -0400 Received: from alto (m208-249.dsl.rawbw.com [198.144.208.249]) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTP id v9SNwKV8029337 for ; Sat, 28 Oct 2017 16:58:21 -0700 (PDT) (envelope-from mkupfer@alum.berkeley.edu) X-Authentication-Warning: shell1.rawbw.com: Host m208-249.dsl.rawbw.com [198.144.208.249] claimed to be alto From: Mike Kupfer X-Mailer: MH-E 8.6+git; nmh 1.7-RC3; GNU Emacs 26.0.90 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Sat, 28 Oct 2017 16:58:20 -0700 Message-ID: <24901.1509235100@alto> X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain Displaying the attached email with MH-E (using "emacs -Q") or Gnus leads to a hang in shr (CPU is pegged, I waited for 5 minutes before giving up). The HTML looks pretty gnarly, but Emacs 25.3 displays the message just fine, with maybe a pause of a couple seconds. In GNU Emacs 26.0.90 (build 2, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2017-10-27 built on alto Repository revision: 50f711e7fab149d11da8c5caa61ee0b5e6c89bf1 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.9 (jessie) Recent messages: Auto-saving...done Scanning +inbox...done Quit Mark set Mark saved where search started Mark set No more undeleted messages Processing deletes and refiles for +inbox...done Auto-saving...done Making completion list... Configured using: 'configure --prefix=/usr/new' Configured features: XPM JPEG TIFF GIF PNG SOUND NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 Important settings: value of $LC_TIME: C value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: MH-Folder Minor modes in effect: diff-auto-refine-mode: t hl-line-mode: t shell-dirtrack-mode: t delete-selection-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow emacsbug mh-funcs gnus-draft mh-thread nnir dired-aux diff-mode gnus-mh mh-identity mh-letter mh-comp gnus-html cus-theme eieio-custom wid-browse tree-widget help-fns radix-tree cus-edit cus-start cus-load flow-fill grep compile dired-x mh-alias crm cl-print debug mh-mime mh-gnus diary-lib diary-loaddefs cal-move info pp shr-color sort mail-extr gnus-async gnus-bcklg misearch multi-isearch qp gnus-kill cursor-sensor mhtml-mode css-mode smie color eww url-queue shr svg browse-url js json map sgml-mode dom flyspell ispell gnus-ml disp-table mm-archive url-http url-gw url-cache url-auth url-handlers nnrss xml mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars nndoc nndraft nnmh network-stream nsm starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache mh-show goto-addr thingatpt gnus-cite gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-win gnus-range gnus nnheader wid-edit mh-inc hl-line mh-tool-bar mh-seq mh-xface mh-utils mdk-mail smtpmail auth-source eieio eieio-core cl-macs eieio-loaddefs sendmail message rmc puny seq byte-opt gv bytecomp byte-compile cconv rfc822 mml mml-sec password-cache epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 gmm-utils mailheader mh-folder which-func imenu mh-scan mh-e mh-compat mailabbrev mh-buffers mh-loaddefs vc-hg cl-extra help-mode org-rmail org-mhe org-irc org-info org-gnus gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils org-docview doc-view jka-compr image-mode dired dired-loaddefs org-bibtex bibtex org-bbdb org-w3m org-element cl-seq avl-tree generator org org-macro org-footnote org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs elec-pair server noutline outline easy-mmode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs shell pcomplete comint ansi-color ring xcscope easymenu advice delsel vc cl-loaddefs cl-lib vc-dispatcher timeclock mdk-hacks time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote inotify dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 618925 173854) (symbols 48 47553 20) (miscs 40 894 1526) (strings 32 131114 29559) (string-bytes 1 6012527) (vectors 16 55934) (vector-slots 8 1841037 152694) (floats 8 559 704) (intervals 56 102368 2278) (buffers 992 123) (heap 1024 79393 50480)) --=-=-= Content-Type: message/rfc822 Content-Disposition: inline; filename=1 Content-Description: message that causes the hang Date: Thu, 12 Oct 2017 01:35:05 +0000 To: Michael Kupfer From: San Francisco Zen Center Subject: Corrected Donation Receipt Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="12ef0e27c7ce41b49e7988b6c54a38ed" --12ef0e27c7ce41b49e7988b6c54a38ed Content-Type: text/html; charset="ascii" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable = =
&n= bsp;
Thank you for your = donation!
 
<= table style=3D"-webkit-text-size-adjust: 100%; text-align: left; vertical-a= lign: top; mso-table-rspace: 0pt; mso-table-lspace: 0pt; border-spacing: 0;= table-layout: fixed; -ms-text-size-adjust: 100%; width: 100%; background-c= olor: rgb(255, 255, 255); padding: 0; margin: 0; min-width: 100%; max-width= : 100%; border-collapse: collapse;" cellpadding=3D"0" cellspacing=3D"0" bor= der=3D"0">
 
3D"log=
 
=
 
 
Thank = you for your recent donation.
 
Please find = an updated donation receipt below that reflects the correct amount for your= records. We apologize for the error in the original receipt. Thank you aga= in for your donation.
<= div>
 
 
<= /td>
 
You have donated
 
<= span class=3D"center donation-amount black-text" style=3D"color: #393939; f= ont-size: 42px; line-height: 48px; font-weight: bold; display: block; width= : 100%; text-align: center;"> $xxx.00
+ fees to
San Francisco Ze= n Center
 
Charged Amount $= xxx.xx USD
 
Donation Date
 
08/06/2017
 
<= div class=3D"space-16" style=3D"font-size: 16px; line-height: 16px; width: = 100%;"> Donation Number
 
 8161106
 
 <= /div>
Your official receipt is attached to this email<= /td>
<= div class=3D"space-16" style=3D"font-size: 16px; line-height: 16px; width: = 100%;"> 
 
=
=
 
 
&n= bsp;
San Francisco Zen Center
300 Page St
Sa= n Francisco, CA 94102
 
 
 
3D"" --12ef0e27c7ce41b49e7988b6c54a38ed-- --=-=-=-- From unknown Tue Aug 19 05:11:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29047: 26.0.90; shr hang (regression from 25.3) Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Oct 2017 14:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29047 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mike Kupfer , Katsumi Yamaoka , Lars Ingebrigtsen Cc: 29047@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 29047-submit@debbugs.gnu.org id=B29047.150928606712718 (code B ref 29047); Sun, 29 Oct 2017 14:08:02 +0000 Received: (at 29047) by debbugs.gnu.org; 29 Oct 2017 14:07:47 +0000 Received: from localhost ([127.0.0.1]:40735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8oFf-0003J4-GH for submit@debbugs.gnu.org; Sun, 29 Oct 2017 10:07:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8oFd-0003Iq-J9 for 29047@debbugs.gnu.org; Sun, 29 Oct 2017 10:07:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8oFV-00026r-BQ for 29047@debbugs.gnu.org; Sun, 29 Oct 2017 10:07:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8oFV-00026n-86; Sun, 29 Oct 2017 10:07:37 -0400 Received: from [176.228.60.248] (port=2086 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e8oFU-0001MR-OL; Sun, 29 Oct 2017 10:07:37 -0400 Date: Sun, 29 Oct 2017 16:07:34 +0200 Message-Id: <8360ayujx5.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <24901.1509235100@alto> (message from Mike Kupfer on Sat, 28 Oct 2017 16:58:20 -0700) References: <24901.1509235100@alto> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Mike Kupfer > Date: Sat, 28 Oct 2017 16:58:20 -0700 > > Displaying the attached email with MH-E (using "emacs -Q") or Gnus leads > to a hang in shr (CPU is pegged, I waited for 5 minutes before giving > up). The HTML looks pretty gnarly, but Emacs 25.3 displays the message > just fine, with maybe a pause of a couple seconds. (Sending such a message as an inline HTML attachment to people most of whom can be assumed to use Emacs to read email, which will use shr, is not very friendly, okay?) Thanks, this bug was introduced by 9eb028f, and the problematic property is 'display' with value '(space :align-to (NNN))'. It causes shr-fill-line to infloop when this property is put on a newline. I can prevent the loop with the patch below. I'm not sure this is the right fix, though. Comments? diff --git a/lisp/net/shr.el b/lisp/net/shr.el index c90d71d..067a3b9 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -704,8 +704,11 @@ shr-fill-line (gap-start (point))) (insert "\n") (shr-indent) - (when props - (add-text-properties gap-start (point) props))) + (while props + (let ((type (pop props)) + (value (pop props))) + (unless (eq type 'display) + (put-text-property gap-start (point) type value))))) (setq start (point)) (shr-vertical-motion shr-internal-width) (when (looking-at " $") From unknown Tue Aug 19 05:11:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29047: 26.0.90; shr hang (regression from 25.3) References: <24901.1509235100@alto> Resent-From: Mike Kupfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Oct 2017 14:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29047 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 29047@debbugs.gnu.org, Katsumi Yamaoka , Lars Ingebrigtsen Received: via spool by 29047-submit@debbugs.gnu.org id=B29047.150928790115465 (code B ref 29047); Sun, 29 Oct 2017 14:39:02 +0000 Received: (at 29047) by debbugs.gnu.org; 29 Oct 2017 14:38:21 +0000 Received: from localhost ([127.0.0.1]:40759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8ojF-00041N-MS for submit@debbugs.gnu.org; Sun, 29 Oct 2017 10:38:21 -0400 Received: from shell1.rawbw.com ([198.144.192.42]:57886 ident=root) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8ojD-00041E-Lm for 29047@debbugs.gnu.org; Sun, 29 Oct 2017 10:38:20 -0400 Received: from alto (m208-249.dsl.rawbw.com [198.144.208.249]) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTP id v9TEcCIl005834; Sun, 29 Oct 2017 07:38:14 -0700 (PDT) (envelope-from mkupfer@alum.berkeley.edu) X-Authentication-Warning: shell1.rawbw.com: Host m208-249.dsl.rawbw.com [198.144.208.249] claimed to be alto From: Mike Kupfer In-Reply-To: Your message of "Sun, 29 Oct 2017 16:07:34 +0200." <8360ayujx5.fsf@gnu.org> X-Mailer: MH-E 8.6+git; nmh 1.7-RC3; GNU Emacs 26.0.90 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27388.1509287892.1@alto> Date: Sun, 29 Oct 2017 07:38:12 -0700 Message-ID: <27389.1509287892@alto> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Eli Zaretskii wrote: > (Sending such a message as an inline HTML attachment to people most of > whom can be assumed to use Emacs to read email, which will use shr, is > not very friendly, okay?) Yes, sorry, after sending it I realized I should have switched it to non-inline. Ah, I see I can make non-inline the default by tweaking mml-content-disposition-alist. Anyway, my apologies. mike From unknown Tue Aug 19 05:11:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29047: 26.0.90; shr hang (regression from 25.3) In-Reply-To: <24901.1509235100@alto> Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Oct 2017 06:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29047 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 29047@debbugs.gnu.org, Lars Ingebrigtsen , Mike Kupfer Received: via spool by 29047-submit@debbugs.gnu.org id=B29047.150934449026358 (code B ref 29047); Mon, 30 Oct 2017 06:22:01 +0000 Received: (at 29047) by debbugs.gnu.org; 30 Oct 2017 06:21:30 +0000 Received: from localhost ([127.0.0.1]:41213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e93Ry-0006r2-Hx for submit@debbugs.gnu.org; Mon, 30 Oct 2017 02:21:30 -0400 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:58582 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e93Rx-0006qo-60 for 29047@debbugs.gnu.org; Mon, 30 Oct 2017 02:21:29 -0400 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1e93Rn-000Yv9-LY; Mon, 30 Oct 2017 01:21:21 -0500 Date: Mon, 30 Oct 2017 15:21:17 +0900 Message-ID: From: Katsumi Yamaoka References: <24901.1509235100@alto> <8360ayujx5.fsf@gnu.org> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (i686-pc-cygwin) Cancel-Lock: sha1:OsA5AvB3tCVXqpu0LdNHBFO17o4= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= On Sun, 29 Oct 2017 16:07:34 +0200, Eli Zaretskii wrote: > Thanks, this bug was introduced by 9eb028f, and the problematic > property is 'display' with value '(space :align-to (NNN))'. It > causes shr-fill-line to infloop when this property is put on a > newline. Sorry, I did the 9eb028f change for fixing bug#24034: > I can prevent the loop with the patch below. I'm not sure this is the > right fix, though. Comments? That's ok, but the properties necessary to copy there are only `face' and `image-displayer'. How about this one? * lisp/net/shr.el (shr-fill-line): Copy only face and image-displayer properties to gaps (bug#29047). --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- shr.el~ 2017-10-29 22:05:08.139411500 +0000 +++ shr.el 2017-10-30 06:19:48.874402200 +0000 @@ -700,12 +700,16 @@ ;; Success; continue. (when (= (preceding-char) ?\s) (delete-char -1)) - (let ((props (text-properties-at (point))) + (let ((props `(face ,(get-text-property (point) 'face) + ;; Don't break the image-displayer property + ;; as it will cause `gnus-article-show-images' + ;; to show the two or more same images. + image-displayer + ,(get-text-property (point) 'image-displayer))) (gap-start (point))) (insert "\n") (shr-indent) - (when props - (add-text-properties gap-start (point) props))) + (add-text-properties gap-start (point) props)) (setq start (point)) (shr-vertical-motion shr-internal-width) (when (looking-at " $") --=-=-=-- From unknown Tue Aug 19 05:11:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29047: 26.0.90; shr hang (regression from 25.3) Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Oct 2017 18:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29047 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Katsumi Yamaoka Cc: 29047@debbugs.gnu.org, larsi@gnus.org, mkupfer@alum.berkeley.edu Reply-To: Eli Zaretskii Received: via spool by 29047-submit@debbugs.gnu.org id=B29047.150938973412342 (code B ref 29047); Mon, 30 Oct 2017 18:56:01 +0000 Received: (at 29047) by debbugs.gnu.org; 30 Oct 2017 18:55:34 +0000 Received: from localhost ([127.0.0.1]:42628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9FDf-0003Cw-6Y for submit@debbugs.gnu.org; Mon, 30 Oct 2017 14:55:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9FDb-0003Cf-1t for 29047@debbugs.gnu.org; Mon, 30 Oct 2017 14:55:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9FDQ-00022m-Lo for 29047@debbugs.gnu.org; Mon, 30 Oct 2017 14:55:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9FDQ-00022f-Ie; Mon, 30 Oct 2017 14:55:16 -0400 Received: from [176.228.60.248] (port=4211 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e9FDP-0000xg-AZ; Mon, 30 Oct 2017 14:55:16 -0400 Date: Mon, 30 Oct 2017 20:54:57 +0200 Message-Id: <83h8ugtqim.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Katsumi Yamaoka on Mon, 30 Oct 2017 15:21:17 +0900) References: <24901.1509235100@alto> <8360ayujx5.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Mon, 30 Oct 2017 15:21:17 +0900 > From: Katsumi Yamaoka > Cc: Mike Kupfer , > Lars Ingebrigtsen , 29047@debbugs.gnu.org > > Sorry, I did the 9eb028f change for fixing bug#24034: > > > > I can prevent the loop with the patch below. I'm not sure this is the > > right fix, though. Comments? > > That's ok, but the properties necessary to copy there are only > `face' and `image-displayer'. How about this one? > > * lisp/net/shr.el (shr-fill-line): Copy only face and image-displayer > properties to gaps (bug#29047). Works for me, thanks. Please push to the emacs-26 branch. From unknown Tue Aug 19 05:11:19 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mike Kupfer Subject: bug#29047: closed (Re: bug#29047: 26.0.90; shr hang (regression from 25.3)) Message-ID: References: <24901.1509235100@alto> X-Gnu-PR-Message: they-closed 29047 X-Gnu-PR-Package: emacs Reply-To: 29047@debbugs.gnu.org Date: Mon, 30 Oct 2017 23:32:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1509406323-21217-1" This is a multi-part message in MIME format... ------------=_1509406323-21217-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #29047: 26.0.90; shr hang (regression from 25.3) which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 29047@debbugs.gnu.org. --=20 29047: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D29047 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1509406323-21217-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 29047-done) by debbugs.gnu.org; 30 Oct 2017 23:31:05 +0000 Received: from localhost ([127.0.0.1]:42895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9JWJ-0005Uy-Nw for submit@debbugs.gnu.org; Mon, 30 Oct 2017 19:31:05 -0400 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:35829 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9JWH-0005UV-UM for 29047-done@debbugs.gnu.org; Mon, 30 Oct 2017 19:31:02 -0400 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1e9JW7-001ujR-Ue; Mon, 30 Oct 2017 18:30:53 -0500 Date: Tue, 31 Oct 2017 08:30:50 +0900 Message-ID: From: Katsumi Yamaoka To: Eli Zaretskii Subject: Re: bug#29047: 26.0.90; shr hang (regression from 25.3) References: <24901.1509235100@alto> <8360ayujx5.fsf@gnu.org> <83h8ugtqim.fsf@gnu.org> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (i686-pc-cygwin) Cancel-Lock: sha1:rCW87ic8PGD3dyIQWohf/RHVReQ= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 29047-done Cc: larsi@gnus.org, 29047-done@debbugs.gnu.org, mkupfer@alum.berkeley.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Mon, 30 Oct 2017 20:54:57 +0200, Eli Zaretskii wrote: >> Date: Mon, 30 Oct 2017 15:21:17 +0900 >> From: Katsumi Yamaoka [...] >> That's ok, but the properties necessary to copy there are only >> `face' and `image-displayer'. How about this one? [...] > Works for me, thanks. Please push to the emacs-26 branch. Thanks. Although, strictly speaking, not only `image-displayer' but also `image-url' is essential to display an image, 'gnus-article-show-images' sees it in only the start position of the `image-displayer' property, not gaps. So, I've installed the patch I posted last as is in the emacs-26 branch. Regards, ------------=_1509406323-21217-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Oct 2017 23:58:47 +0000 Received: from localhost ([127.0.0.1]:39574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8azx-0002pO-G2 for submit@debbugs.gnu.org; Sat, 28 Oct 2017 19:58:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8azu-0002pA-Ho for submit@debbugs.gnu.org; Sat, 28 Oct 2017 19:58:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8azn-0004z4-TQ for submit@debbugs.gnu.org; Sat, 28 Oct 2017 19:58:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47059) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e8azn-0004yr-Js for submit@debbugs.gnu.org; Sat, 28 Oct 2017 19:58:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8azl-0000ux-FQ for bug-gnu-emacs@gnu.org; Sat, 28 Oct 2017 19:58:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8azi-0004u1-7G for bug-gnu-emacs@gnu.org; Sat, 28 Oct 2017 19:58:29 -0400 Received: from shell1.rawbw.com ([198.144.192.42]:53476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8azh-0004tf-H9 for bug-gnu-emacs@gnu.org; Sat, 28 Oct 2017 19:58:26 -0400 Received: from alto (m208-249.dsl.rawbw.com [198.144.208.249]) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTP id v9SNwKV8029337 for ; Sat, 28 Oct 2017 16:58:21 -0700 (PDT) (envelope-from mkupfer@alum.berkeley.edu) X-Authentication-Warning: shell1.rawbw.com: Host m208-249.dsl.rawbw.com [198.144.208.249] claimed to be alto From: Mike Kupfer To: bug-gnu-emacs@gnu.org Subject: 26.0.90; shr hang (regression from 25.3) X-Mailer: MH-E 8.6+git; nmh 1.7-RC3; GNU Emacs 26.0.90 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Sat, 28 Oct 2017 16:58:20 -0700 Message-ID: <24901.1509235100@alto> X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain Displaying the attached email with MH-E (using "emacs -Q") or Gnus leads to a hang in shr (CPU is pegged, I waited for 5 minutes before giving up). The HTML looks pretty gnarly, but Emacs 25.3 displays the message just fine, with maybe a pause of a couple seconds. In GNU Emacs 26.0.90 (build 2, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2017-10-27 built on alto Repository revision: 50f711e7fab149d11da8c5caa61ee0b5e6c89bf1 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.9 (jessie) Recent messages: Auto-saving...done Scanning +inbox...done Quit Mark set Mark saved where search started Mark set No more undeleted messages Processing deletes and refiles for +inbox...done Auto-saving...done Making completion list... Configured using: 'configure --prefix=/usr/new' Configured features: XPM JPEG TIFF GIF PNG SOUND NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 Important settings: value of $LC_TIME: C value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: MH-Folder Minor modes in effect: diff-auto-refine-mode: t hl-line-mode: t shell-dirtrack-mode: t delete-selection-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow emacsbug mh-funcs gnus-draft mh-thread nnir dired-aux diff-mode gnus-mh mh-identity mh-letter mh-comp gnus-html cus-theme eieio-custom wid-browse tree-widget help-fns radix-tree cus-edit cus-start cus-load flow-fill grep compile dired-x mh-alias crm cl-print debug mh-mime mh-gnus diary-lib diary-loaddefs cal-move info pp shr-color sort mail-extr gnus-async gnus-bcklg misearch multi-isearch qp gnus-kill cursor-sensor mhtml-mode css-mode smie color eww url-queue shr svg browse-url js json map sgml-mode dom flyspell ispell gnus-ml disp-table mm-archive url-http url-gw url-cache url-auth url-handlers nnrss xml mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars nndoc nndraft nnmh network-stream nsm starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache mh-show goto-addr thingatpt gnus-cite gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-win gnus-range gnus nnheader wid-edit mh-inc hl-line mh-tool-bar mh-seq mh-xface mh-utils mdk-mail smtpmail auth-source eieio eieio-core cl-macs eieio-loaddefs sendmail message rmc puny seq byte-opt gv bytecomp byte-compile cconv rfc822 mml mml-sec password-cache epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 gmm-utils mailheader mh-folder which-func imenu mh-scan mh-e mh-compat mailabbrev mh-buffers mh-loaddefs vc-hg cl-extra help-mode org-rmail org-mhe org-irc org-info org-gnus gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils org-docview doc-view jka-compr image-mode dired dired-loaddefs org-bibtex bibtex org-bbdb org-w3m org-element cl-seq avl-tree generator org org-macro org-footnote org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs elec-pair server noutline outline easy-mmode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs shell pcomplete comint ansi-color ring xcscope easymenu advice delsel vc cl-loaddefs cl-lib vc-dispatcher timeclock mdk-hacks time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote inotify dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 618925 173854) (symbols 48 47553 20) (miscs 40 894 1526) (strings 32 131114 29559) (string-bytes 1 6012527) (vectors 16 55934) (vector-slots 8 1841037 152694) (floats 8 559 704) (intervals 56 102368 2278) (buffers 992 123) (heap 1024 79393 50480)) --=-=-= Content-Type: message/rfc822 Content-Disposition: inline; filename=1 Content-Description: message that causes the hang Date: Thu, 12 Oct 2017 01:35:05 +0000 To: Michael Kupfer From: San Francisco Zen Center Subject: Corrected Donation Receipt Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="12ef0e27c7ce41b49e7988b6c54a38ed" --12ef0e27c7ce41b49e7988b6c54a38ed Content-Type: text/html; charset="ascii" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable = =
&n= bsp;
Thank you for your = donation!
 
<= table style=3D"-webkit-text-size-adjust: 100%; text-align: left; vertical-a= lign: top; mso-table-rspace: 0pt; mso-table-lspace: 0pt; border-spacing: 0;= table-layout: fixed; -ms-text-size-adjust: 100%; width: 100%; background-c= olor: rgb(255, 255, 255); padding: 0; margin: 0; min-width: 100%; max-width= : 100%; border-collapse: collapse;" cellpadding=3D"0" cellspacing=3D"0" bor= der=3D"0">
 
3D"log=
 
=
 
 
Thank = you for your recent donation.
 
Please find = an updated donation receipt below that reflects the correct amount for your= records. We apologize for the error in the original receipt. Thank you aga= in for your donation.
<= div>
 
 
<= /td>
 
You have donated
 
<= span class=3D"center donation-amount black-text" style=3D"color: #393939; f= ont-size: 42px; line-height: 48px; font-weight: bold; display: block; width= : 100%; text-align: center;"> $xxx.00
+ fees to
San Francisco Ze= n Center
 
Charged Amount $= xxx.xx USD
 
Donation Date
 
08/06/2017
 
<= div class=3D"space-16" style=3D"font-size: 16px; line-height: 16px; width: = 100%;"> Donation Number
 
 8161106
 
 <= /div>
Your official receipt is attached to this email<= /td>
<= div class=3D"space-16" style=3D"font-size: 16px; line-height: 16px; width: = 100%;"> 
 
=
=
 
 
&n= bsp;
San Francisco Zen Center
300 Page St
Sa= n Francisco, CA 94102
 
 
 
3D"" --12ef0e27c7ce41b49e7988b6c54a38ed-- --=-=-=-- ------------=_1509406323-21217-1--