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#63535: Master branch: Error in forw_comment (syntax.c) handling of escaped LFs Date: Tue, 16 May 2023 18:43:59 +0300 Message-ID: <83ttwcz3gg.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6338"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63535@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 16 17:44:17 2023 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 1pywqX-0001S3-9i for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 May 2023 17:44:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pywqJ-0006ce-RM; Tue, 16 May 2023 11:44:03 -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 1pywqI-0006cU-JZ for bug-gnu-emacs@gnu.org; Tue, 16 May 2023 11:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pywqI-0001YQ-Bl for bug-gnu-emacs@gnu.org; Tue, 16 May 2023 11:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pywqI-0002oA-88 for bug-gnu-emacs@gnu.org; Tue, 16 May 2023 11:44: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: Tue, 16 May 2023 15:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63535 X-GNU-PR-Package: emacs Original-Received: via spool by 63535-submit@debbugs.gnu.org id=B63535.168425184110786 (code B ref 63535); Tue, 16 May 2023 15:44:02 +0000 Original-Received: (at 63535) by debbugs.gnu.org; 16 May 2023 15:44:01 +0000 Original-Received: from localhost ([127.0.0.1]:47022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pywqH-0002np-EB for submit@debbugs.gnu.org; Tue, 16 May 2023 11:44:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pywqE-0002na-En for 63535@debbugs.gnu.org; Tue, 16 May 2023 11:43:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pywq8-0001W6-Ik; Tue, 16 May 2023 11:43:52 -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=5tqU+qKamz2vuH4IKhftICMuamBWhgii0W4FHo+terc=; b=VaRi6Shxq/bl QPdxznFz6r8aOZh3HEqEIF1opta1iCcEL5z4J4NBCHotOaE95TjUGb+9ehcCnUgfHe1cMh8jnLiFh 3FB7EL729D1hlBCaGWLa7nLgvRMSjF2/fSZUbk3uCooprqHrPL3dIe2vu9f/i3a47xW29pkxR2J+3 W0mr157285qdU+lRUrHtpWR+SqM87mHBPR3dMy/0AEmrmO9AUaiikkGIDIbC1ZWK2Ler8BKNoyTEd vPEVGTSUkvX78oEngzLRk2fjy1dVdWFYBFabnggYC/1YrqBseDAmaS7Kpe/ZxbV/gES+SSYNk42Y1 KX1Q/bupz32rwsXtZKlKug==; Original-Received: from [87.69.77.57] (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 1pywq8-0006Mm-2f; Tue, 16 May 2023 11:43:52 -0400 In-Reply-To: (message from Alan Mackenzie on Tue, 16 May 2023 10:57:40 +0000) 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:261787 Archived-At: > Date: Tue, 16 May 2023 10:57:40 +0000 > From: Alan Mackenzie > > Hello, Emacs. > > In the master branch: Is it different on emacs-29? > && !(comment_end_can_be_escaped && char_quoted (from, from_byte)) > > .. Checking char_quoted is wrong. Instead the function should check the > current parse state. Why not both? IOW, please explain why char_quoted is not TRT here.