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#56393: Actually fix the long lines display bug Date: Sat, 09 Jul 2022 12:30:05 +0300 Message-ID: <83let23a76.fsf@gnu.org> References: <38c1a31040d2d2bc47ae@heytings.org> <38c1a310405bd4bbe370@heytings.org> <87a69n98yy.fsf@yahoo.com> <38c1a31040f5546dbd3a@heytings.org> <87czej6buq.fsf@gnus.org> <38c1a31040e66d2b273e@heytings.org> <834jzt59jt.fsf@gnu.org> <831qux5806.fsf@gnu.org> <9C70BEF7-08EC-46A0-89D3-547417FA01F8@gmail.com> <83let43xg9.fsf@gnu.org> <83sfna3gzq.fsf@gnu.org> <83o7xy3amx.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35609"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, larsi@gnus.org, 56393@debbugs.gnu.org To: gregory@heytings.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 09 11:31:29 2022 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 1oA6oC-00097f-Gx for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jul 2022 11:31:28 +0200 Original-Received: from localhost ([::1]:44090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oA6oA-0001hk-So for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jul 2022 05:31:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oA6nm-0001hF-KL for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2022 05:31:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39860) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oA6nm-0005KQ-Be for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2022 05:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oA6nm-0007nM-5o for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2022 05:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jul 2022 09:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56393 X-GNU-PR-Package: emacs Original-Received: via spool by 56393-submit@debbugs.gnu.org id=B56393.165735903929932 (code B ref 56393); Sat, 09 Jul 2022 09:31:02 +0000 Original-Received: (at 56393) by debbugs.gnu.org; 9 Jul 2022 09:30:39 +0000 Original-Received: from localhost ([127.0.0.1]:33757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oA6nP-0007mh-L9 for submit@debbugs.gnu.org; Sat, 09 Jul 2022 05:30:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oA6nO-0007mO-Cd for 56393@debbugs.gnu.org; Sat, 09 Jul 2022 05:30:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38710) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oA6nI-00047x-U6; Sat, 09 Jul 2022 05:30:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=yfb8D8JeR6Djc3fQCXOPL5QrEQqw5cu2avRyoUgVNdI=; b=hDbDVmkYwR+K bopb/cfvzFHYToh/xwS8DidszrKwXX+zXB/TC8KJRja/AriC76bW0c/IzgZtT1nQ2Qtxo09YUFXLp zt29Q793atRsfC3N6RT6RQjdAx4sQaHZCKZdGIxOM+uUMzkaHWn6QX4wox/YWX7deKmrs8Gj01oe/ D5Hyfd5HuZ+fKiJgCF//OIT5ekFlCrhcELQldZ1+gGxEsFrxn+FfpK4zirWWzq4/hBqaAT73mGh1c 9ufaokAXGEaX/RpdwsLxoUUFH1mjq+sdxJiVOBzzvlBjgY6i71yASBUwOleYfOfeh492dzvsYIgPn WhVnWYNx6Cx/7/FD6vmk6g==; Original-Received: from [87.69.77.57] (port=2908 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 1oA6mw-0008RW-TD; Sat, 09 Jul 2022 05:30:31 -0400 In-Reply-To: <83o7xy3amx.fsf@gnu.org> (message from Eli Zaretskii on Sat, 09 Jul 2022 12:20:38 +0300) 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:236489 Archived-At: > Cc: gerd.moellmann@gmail.com, larsi@gnus.org, 56393@debbugs.gnu.org > Date: Sat, 09 Jul 2022 12:20:38 +0300 > From: Eli Zaretskii > > > > . The WITH_NARROWED_BEGV macro is IMO awkward and not very convenient to > > > use in C. For starters, it cannot accommodate multi-line code, except > > > via the 'do { ... } while(0);' kludge, which I think will make the code > > > less readable. It also should set up an unwind-protect handler, so that > > > any non-local exit from the code will restore BEGV/ZV. So I think it > > > will be better to have two separate functions (and a third one to > > > unwind). > > > > > > > Hmmm... I'll see what I can do. (But I don't understand why you write > > that it cannot accomodate multi-line code: you can write > > "WITH_NARROWED_BEGV (frobnicate (foo); frobnicate (bar));".) > > What if the multi-line code includes an if clause or a for loop with > just one line in their bodies? This also requires to remember NOT to use a semi-colon at the end of the last line, which is problematic.