From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: emacs rendering comparisson between emacs23 and emacs26.3 Date: Mon, 20 Apr 2020 17:58:39 -0400 Message-ID: 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> <20200420195130.GA8796@ACM> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="44649"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: rms@gnu.org, emacs-devel@gnu.org, rudalics@gmx.at, rrandresf@gmail.com, Dmitry Gutov , Eli Zaretskii To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 20 23:59:48 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 1jQeSB-000BUj-8D for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Apr 2020 23:59:47 +0200 Original-Received: from localhost ([::1]:43082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQeS9-0004s4-51 for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Apr 2020 17:59:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47168) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQeRH-00044e-GZ for emacs-devel@gnu.org; Mon, 20 Apr 2020 17:58:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQeRG-0000yJ-GB for emacs-devel@gnu.org; Mon, 20 Apr 2020 17:58:50 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:7837) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jQeRD-0000vg-Ds; Mon, 20 Apr 2020 17:58:47 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9C47180A02; Mon, 20 Apr 2020 17:58:42 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8544080D57; Mon, 20 Apr 2020 17:58:40 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1587419920; bh=p489Glc2+4pqUDyj9Q9gZ4mBGLB3j+nfovOfiz5PUgA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=IoJverkDfeNsbr0IPAqwfqcSB1P4BkbOlxMbjyrkjcYSpJ0og8B/RVPRjjBjKbg6T mG2Nw3RJQ3usfgje69sFq72JHgeR8wVK+VuNAIFSdQH76Ph2CMRR7C10sjH4AusWVS 55BP8eOhJ3nFYvmxFHnGYxbRTrIsPlBZ3oSvI7ywVmN4XGwA0AXMpY4pIvktBj0ccZ LzI6ol/icck4nYBSfhtxpOGL5vbXII78V6ZjPQt9tkTkgcdVvWA6PPskxrCsDvfrGd SEJWMw8juKBCgD1AqjPXcv6cWBuNKV13oEQysK/UBGiwjWAKrWp+fY2ggjh1MOjuNs YXaS9/l3gWqew== Original-Received: from alfajor (unknown [104.247.241.114]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 09369120809; Mon, 20 Apr 2020 17:58:39 -0400 (EDT) In-Reply-To: <20200420195130.GA8796@ACM> (Alan Mackenzie's message of "Mon, 20 Apr 2020 19:51:30 +0000") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/20 17:50:24 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:247426 Archived-At: >> 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? I don't know of any language that defines strings this way, so I'd rather not. [ Furthermore, I think there are too many subtly different ways to (dis)allow multiline strings in programming languages, so handling it in something like `syntax-propertize` is preferable at least until we have a firm grasp of what is the design space. ] It's OK to try and detect the situation and highlight it as an error, but that's quite different from defining it as "the official syntax". Stefan