From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: emacs rendering comparisson between emacs23 and emacs26.3 Date: Mon, 20 Apr 2020 19:51:30 +0000 Message-ID: <20200420195130.GA8796@ACM> References: <50acd968-4459-2fab-1609-7869e1ed072a@yandex.ru> <20200408020913.GA3992@ACM> <20200412153458.GA5249@ACM> <6d65d90c-178e-87e2-68dd-236275a5e038@yandex.ru> <20200419171209.GA23044@ACM> <34fc9563-479e-f026-9640-1b70ca9885b9@yandex.ru> <72ea4b2b-f8b5-a01d-288c-f42bd8fd765a@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="14145"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, emacs-devel@gnu.org, rudalics@gmx.at, rrandresf@gmail.com, Dmitry Gutov , Eli Zaretskii To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 20 21:52:23 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jQcSs-0003ZR-SM for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Apr 2020 21:52:22 +0200 Original-Received: from localhost ([::1]:41468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQcSr-0007M8-U8 for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Apr 2020 15:52:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57864) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQcS9-0006HY-Iv for emacs-devel@gnu.org; Mon, 20 Apr 2020 15:51:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQcS8-0001wH-NC for emacs-devel@gnu.org; Mon, 20 Apr 2020 15:51:37 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:39930 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1jQcS8-0001u1-3l for emacs-devel@gnu.org; Mon, 20 Apr 2020 15:51:36 -0400 Original-Received: (qmail 64399 invoked by uid 3782); 20 Apr 2020 19:51:32 -0000 Original-Received: from acm.muc.de (p4FE15946.dip0.t-ipconnect.de [79.225.89.70]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Mon, 20 Apr 2020 21:51:30 +0200 Original-Received: (qmail 8838 invoked by uid 1000); 20 Apr 2020 19:51:30 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.1; envelope-from=acm@muc.de; helo=mail.muc.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/20 15:51:32 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:247420 Archived-At: Hello, Stefan. On Mon, Apr 20, 2020 at 15:01:14 -0400, Stefan Monnier wrote: > > If it can be done reliably outside of CC Mode (i.e. without relying on > > knowing the particulars of the buffer's programming language), > It can be done reliably, but it would most likely want help from the > major mode (e.g. the C syntax tables give the syntax of strings but > don't indicate that those strings are not allowed to span multiple > lines). How about adding support to the syntax table? For example, a new syntax class called something like "line string quote". One of these would begin a @def{line string}, and another one or an unescaped NL (whichever came first) would end it. Easy enough to implement, at least for forward scanning. back_comment might cause some fun. > Stefan -- Alan Mackenzie (Nuremberg, Germany).