From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50061: 28.0.50; Hang caused by savehist-save when saving kill ring with large amount of data from nxml-mode buffer Date: Sun, 15 Aug 2021 14:25:03 +0300 Message-ID: <83k0kn9chc.fsf@gnu.org> References: <83r1ev9n24.fsf@gnu.org> <83o89z9k8w.fsf@gnu.org> <875yw73s1b.fsf@mfa.pw> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40519"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50061@debbugs.gnu.org To: Matt Beshara Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 15 13:26:26 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFEHa-000AMK-Nb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Aug 2021 13:26:26 +0200 Original-Received: from localhost ([::1]:36640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFEHY-0006jY-Rg for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Aug 2021 07:26:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFEHB-0006i4-T4 for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 07:26:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mFEHB-0002eX-MG for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 07:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mFEHB-0003Le-JU for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 07:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Aug 2021 11:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50061 X-GNU-PR-Package: emacs Original-Received: via spool by 50061-submit@debbugs.gnu.org id=B50061.162902671812799 (code B ref 50061); Sun, 15 Aug 2021 11:26:01 +0000 Original-Received: (at 50061) by debbugs.gnu.org; 15 Aug 2021 11:25:18 +0000 Original-Received: from localhost ([127.0.0.1]:45867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFEGT-0003KN-OD for submit@debbugs.gnu.org; Sun, 15 Aug 2021 07:25:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFEGS-0003K5-KQ for 50061@debbugs.gnu.org; Sun, 15 Aug 2021 07:25:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45568) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFEGN-0001e4-BM; Sun, 15 Aug 2021 07:25:11 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3785 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFEGM-00075Q-Vo; Sun, 15 Aug 2021 07:25:11 -0400 In-Reply-To: <875yw73s1b.fsf@mfa.pw> (message from Matt Beshara on Sun, 15 Aug 2021 20:38:04 +1000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211883 Archived-At: > From: Matt Beshara > Cc: 50061@debbugs.gnu.org > Date: Sun, 15 Aug 2021 20:38:04 +1000 > > > Eli Zaretskii writes: > > > Specifically, it's the 'rng-state' property on the "

" that > > ends a > > paragraph. It's a massive recursive data structure, and > > printing it > > takes a lot of memory. Maybe nXML could arrange for these > > properties > > to be removed when copying to the kill-ring, but would it get in > > the > > way if you want to paste into an XML buffer? > > I haven’t had time to look at the code yet, so I’m not sure what > information the ‘rng-state’ property contains, and whether it > would cause any problems (to me) for it to be removed when copied. > That said, personally, I don’t think there could be any side > effect of removing that property from copied XML which would be > more disruptive than savehist causing Emacs to hang completely > when trying to save my kill ring. Also, would nXML not be able to > recreate any missing data it needed from the ‘rng-state’ property > if the plain text of the XML was then pasted into an nXML buffer > again? Sorry, I don't know enough about nXML to answer those questions. But I think patches to remove that property when copying stuff to the kill-ring will be welcome.