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#43439: [PATCH] doprnt improvements Date: Thu, 15 Oct 2020 21:12:05 +0300 Message-ID: <83y2k7we8a.fsf@gnu.org> References: <20200916015051.20517-1-eggert@cs.ucla.edu> <83o8m57oq7.fsf@gnu.org> <31fb34a7-26c3-552d-e8d4-74624455ffcb@cs.ucla.edu> <838sd75yor.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27473"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43439@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 15 20:26:23 2020 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 1kT7xG-000737-G5 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Oct 2020 20:26:22 +0200 Original-Received: from localhost ([::1]:40182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kT7xF-0001g8-Bj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Oct 2020 14:26:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kT7kM-0000iK-C4 for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2020 14:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44973) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kT7kL-0003DN-W6 for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2020 14:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kT7kL-00054W-RZ for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2020 14:13: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: Thu, 15 Oct 2020 18:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43439 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 43439-submit@debbugs.gnu.org id=B43439.160278554119447 (code B ref 43439); Thu, 15 Oct 2020 18:13:01 +0000 Original-Received: (at 43439) by debbugs.gnu.org; 15 Oct 2020 18:12:21 +0000 Original-Received: from localhost ([127.0.0.1]:56519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kT7jg-00053a-TO for submit@debbugs.gnu.org; Thu, 15 Oct 2020 14:12:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kT7je-00053M-SG for 43439@debbugs.gnu.org; Thu, 15 Oct 2020 14:12:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55677) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kT7jY-00039m-Dl; Thu, 15 Oct 2020 14:12:12 -0400 Original-Received: from [176.228.60.248] (port=2094 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kT7jV-0001Zg-CF; Thu, 15 Oct 2020 14:12:11 -0400 In-Reply-To: (message from Paul Eggert on Thu, 15 Oct 2020 10:58:49 -0700) 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:190619 Archived-At: > Cc: 43439@debbugs.gnu.org > From: Paul Eggert > Date: Thu, 15 Oct 2020 10:58:49 -0700 > > On 9/18/20 12:30 AM, Eli Zaretskii wrote: > > > How about ... we modify doprint to exit when either it finds > > NUL or reaches the character specified by FORMAT_END? This will allow > > us to keep some of the feature, and I think the amount of changes will > > be smaller. It should also not be much slower than what you propose. > > Better yet, let's leave doprnt's API unchanged, and add a function evsnprintf > (named by analogy from esprintf) whose API is like C vsnprintf but which does > formatting the Emacs way. No, let's not, please. I didn't agree to modifying doprnt in significant ways, so you are now suggesting to do an even more radical modification, just under another name? This is moving away of a potential compromise point, not towards it.