From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#66020: (bug#64735 spin-off): regarding the default for read-process-output-max Date: Tue, 11 Jun 2024 06:12:21 +0300 Message-ID: <5922967c-1a6e-4b6e-b299-37fb598e5eca@gutov.dev> References: <5c493f86-0af5-256f-41a7-7d886ab4c5e4@gutov.dev> <83ledanvzw.fsf@gnu.org> <83r0n2m7qz.fsf@gnu.org> <26afa109-9ba3-78a3-0e68-7585ae8e3a19@gutov.dev> <83il8dna30.fsf@gnu.org> <83bke5mhvs.fsf@gnu.org> <83a5tmk79p.fsf@gnu.org> <937d9927-506f-aa36-94e9-3cceb8f629dd@gutov.dev> <83zg1hay6q.fsf@gnu.org> <451d6012-e5ab-df6c-50e3-dac20b91781c@gutov.dev> <83led09dlk.fsf@gnu.org> <1d43341a-2e7c-9f1d-68e9-9bac6f4b5fba@gutov.dev> <838r8w3zr2.fsf@gnu.org> <868qzwwoif.fsf@gnu.org> <86o78bd473.fsf@gnu.org> <15f746d0-e635-47a0-a613-2ea31523966a@gutov.dev> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------4d5ZOQY3RYEeg7nAqkyMKYNl" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31181"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: eggert@cs.ucla.edu, monnier@iro.umontreal.ca, 66020-done@debbugs.gnu.org To: Eli Zaretskii , Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 11 18:03:21 2024 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 1sH3xu-0007gh-OW for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Jun 2024 18:03:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sH3wv-00032U-Ho; Tue, 11 Jun 2024 12:02:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sH3wh-0002kf-Qm for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2024 12:02:11 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sH3wh-0004pS-I4 for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2024 12:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sH3wf-00011V-JL for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2024 12:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jun 2024 16:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66020 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66020-done@debbugs.gnu.org id=D66020.17181216743843 (code D ref 66020); Tue, 11 Jun 2024 16:02:01 +0000 Original-Received: (at 66020-done) by debbugs.gnu.org; 11 Jun 2024 16:01:14 +0000 Original-Received: from localhost ([127.0.0.1]:35859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sH3vu-0000zs-3O for submit@debbugs.gnu.org; Tue, 11 Jun 2024 12:01:14 -0400 Original-Received: from fout2-smtp.messagingengine.com ([103.168.172.145]:58065) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sH3vq-0000zQ-Iy for 66020-done@debbugs.gnu.org; Tue, 11 Jun 2024 12:01:12 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 3705E13801ED; Mon, 10 Jun 2024 23:12:26 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 10 Jun 2024 23:12:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1718075546; x=1718161946; bh=JK/GZPOTDL sXCy5cgLMXdq3udLzVSZItgMBX+ZxV8nI=; b=MpqwJRG/FNLG1fvYa6GIkjeAJD 1sKgMeDLcsGYXjehCN6J3/nXaPBwPMyuXQ/l86IEK73xADZdJnPRoFk93tvYxCmS Jr8lBF8k0ehp14nV/vZuI0o5PgAzv967jOVi71AL8mUEtI6IaTrm16VHva78b1GS kuxRI6RLgtrEkSKKPmR9cc+rthEGIDw8WUxouwN9r2FtJiBluBvhwkJsjgEShyMy Yts7ghHKeWuHNbozY8gIi1jtpbb6mmgHaRYgnDQIGJMXZsI6LOmw3xUSP7zRywi4 LprOTZznEwB9F1yDmAern63Y5ov23hbaWFdthaCQkPkmzDA3lF4qFrImaEFg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1718075546; x=1718161946; bh=JK/GZPOTDLsXCy5cgLMXdq3udLzV SZItgMBX+ZxV8nI=; b=nhhWSzCyGymqN9QPLcMvXtZLKJ0U3ZKnBXJJ5qhzCnbA Y5iIRdLGgcszVliYnZI2n4GnQOIUfzNctyRbJHcQB3T7+jSLNCoURwWyDpdPx8aj 07n5+SYj5eALGY7n4miYeQhSSKa7m6sAGEmZlyiNKxgp6m1fbke/rrZhsB/1bCM2 LFHuvaC0STb5zg/P3DvvY+epTJJaIEe1bJIZUOCn785CYHLww9tWo8q/Cwa+Of2c teoUpw/An4RkWDzJc+FlcAb5yPsMdKWW2hpppPjuljY8rHr3PCxDYHZDwPY3B0EF yQML5wFARB3RFLVItiqdXUzAv/qmpijyxE9+nbYeiQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeduuddgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurheptgfkffggfgfuhffvvehfjgesmhdtreertddvjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpedtvdeugedvteelvdegvefguedtgfethefggeffkedtkeegveeifeeiudejueff ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 10 Jun 2024 23:12:24 -0400 (EDT) Content-Language: en-US In-Reply-To: <15f746d0-e635-47a0-a613-2ea31523966a@gutov.dev> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287086 Archived-At: This is a multi-part message in MIME format. --------------4d5ZOQY3RYEeg7nAqkyMKYNl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 09/06/2024 03:12, Dmitry Gutov wrote: >>> >> I guess we can install all 3 patches and see if anything breaks. > > Thank you, now pushed to master. On the heels of bug#71452, I've pushed three updates. Here's a third one (hopefully last) which I'd like a second opinion on. Process output -- apparently -- needs to be inserted before markers. Is it okay to make adjust_markers_for_insert non-static and call it here? See attached. --------------4d5ZOQY3RYEeg7nAqkyMKYNl Content-Type: text/x-patch; charset=UTF-8; name="read_and_insert_process_output_before_markers.diff" Content-Disposition: attachment; filename="read_and_insert_process_output_before_markers.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3NyYy9pbnNkZWwuYyBiL3NyYy9pbnNkZWwuYwppbmRleCAzODA5Zjhi YzA2MC4uZmJmNzFlMWU1OTUgMTAwNjQ0Ci0tLSBhL3NyYy9pbnNkZWwuYworKysgYi9zcmMv aW5zZGVsLmMKQEAgLTI4NCw3ICsyODQsNyBAQCBhZGp1c3RfbWFya2Vyc19mb3JfZGVsZXRl IChwdHJkaWZmX3QgZnJvbSwgcHRyZGlmZl90IGZyb21fYnl0ZSwKICAgIHdlIGFkdmFuY2Ug aXQgaWYgZWl0aGVyIGl0cyBpbnNlcnRpb24tdHlwZSBpcyB0CiAgICBvciBCRUZPUkVfTUFS S0VSUyBpcyB0cnVlLiAgKi8KIAotc3RhdGljIHZvaWQKK3ZvaWQKIGFkanVzdF9tYXJrZXJz X2Zvcl9pbnNlcnQgKHB0cmRpZmZfdCBmcm9tLCBwdHJkaWZmX3QgZnJvbV9ieXRlLAogCQkJ ICAgcHRyZGlmZl90IHRvLCBwdHJkaWZmX3QgdG9fYnl0ZSwgYm9vbCBiZWZvcmV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