From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#43558: [PATCH]: Fix (forward-comment 1) when end delimiter is escaped. Date: Wed, 23 Sep 2020 14:44:54 -0400 Message-ID: References: <20200923144824.GD6178@ACM> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27586"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 43558@debbugs.gnu.org, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 23 20:49:26 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 1kL9pV-00074j-GJ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Sep 2020 20:49:25 +0200 Original-Received: from localhost ([::1]:36982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kL9pU-0007K6-DU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Sep 2020 14:49:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kL9mE-000501-8k for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 14:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54528) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kL9mD-0002gu-Ul for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 14:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kL9mD-0006Wm-Sd for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 14:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Sep 2020 18:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43558 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 43558-submit@debbugs.gnu.org id=B43558.160088670424983 (code B ref 43558); Wed, 23 Sep 2020 18:46:01 +0000 Original-Received: (at 43558) by debbugs.gnu.org; 23 Sep 2020 18:45:04 +0000 Original-Received: from localhost ([127.0.0.1]:37841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kL9lI-0006Ur-3R for submit@debbugs.gnu.org; Wed, 23 Sep 2020 14:45:04 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:43100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kL9lG-0006U3-VF for 43558@debbugs.gnu.org; Wed, 23 Sep 2020 14:45:03 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 4A33A440703; Wed, 23 Sep 2020 14:44:57 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id CE53044064F; Wed, 23 Sep 2020 14:44:55 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1600886695; bh=DuysRVMXl329iMy/ZAsjZjxyvpKdn7Dr5mMpO6KcrsA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=edxlcPOXxDkHS/oGfhsIAeZbpvCv2Pip88WPV2TCfgdusslBQao5Vo9d8fiQp0iwg JRQKODcMlYoqAjID+1LerD0VlFefQS/FETwjiDqpLSAulMzFd1khf8opiXkMdFsk13 TCFazxsWAcdc5j1qzy/ZJnTK8UF97p9Qrh0G8EC4ozFtcKthL/xzcdDp1Sq7Wfd+Qh tqW8U9ZCJ/4m0STx72f2OaXjVf5SIlfswwhkYCRH+euhuRy6G7wqyxjARaVAUIIO+9 9Vr0qQKWHy5DU+Q82htUStivJJgmY64ReNhxMWWel6+hum022iuFZS6WUm9hjvnEOr M/TGCueG6ZxLg== Original-Received: from alfajor (unknown [45.72.232.131]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9A08A12029C; Wed, 23 Sep 2020 14:44:55 -0400 (EDT) In-Reply-To: <20200923144824.GD6178@ACM> (Alan Mackenzie's message of "Wed, 23 Sep 2020 14:48:24 +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" Xref: news.gmane.io gmane.emacs.bugs:188820 Archived-At: > It seems that as well as the existing variable > comment-end-can-be-escaped, we need a new one, say > line-comment-end-can-be-escaped, too. syntax.c doesn't like to think of it as "line-comment" but rather as comment stay a, b, c, or nested and non-nested. > In C and C++ modes, these would > be nil and t respectively. I sm-c-mode, I'd handle those corner cases in `syntax-propertize-function` (tho I think I don't bother with this one currently). So, I guess in CC-mode, you could handle those by placing `syntax-table` properties from ... wherever you place them ;-) Stefan