From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: emacs rendering comparisson between emacs23 and emacs26.3 Date: Tue, 7 Apr 2020 15:52:14 +0300 Message-ID: <696b93d9-728f-38da-7bc5-d8f12f2c2094@yandex.ru> References: <86tv2h2vww.fsf@gmail.com> <20200322123818.GB32470@ACM> <87eetk5swm.fsf@gnu.org> <20200326193128.GC14092@ACM> <86d08y4zsx.fsf@gmail.com> <83sghs7qdz.fsf@gnu.org> <83h7y63sjj.fsf@gnu.org> <834ku43c61.fsf@gnu.org> <83k12zz6ds.fsf@gnu.org> <054393f3-3873-ab6e-b325-0eca354d8838@gmx.at> <83eet0sqb2.fsf@gnu.org> <0315ea48-8eb3-38fa-67c1-2e2170a65168@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="44509"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 Cc: acm@muc.de, rrandresf@gmail.com, emacs-devel@gnu.org To: martin rudalics , Eli Zaretskii , rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 07 14:57: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 1jLnnX-000BU4-PX for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Apr 2020 14:57:47 +0200 Original-Received: from localhost ([::1]:46996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLnnW-0006F8-QN for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Apr 2020 08:57:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37261) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLniG-0002HS-OJ for emacs-devel@gnu.org; Tue, 07 Apr 2020 08:52:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLniF-0000QG-NU for emacs-devel@gnu.org; Tue, 07 Apr 2020 08:52:20 -0400 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:46821) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jLniF-0000Pk-HY; Tue, 07 Apr 2020 08:52:19 -0400 Original-Received: by mail-wr1-x435.google.com with SMTP id y44so191780wrd.13; Tue, 07 Apr 2020 05:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=smQ21Q+lu4YzWkpIL0NQMpSHnjdqJ3p/aahLUhEqNKQ=; b=ht0AUwY7A6IBzl52yrwxvDAkEYPjlJWc7immbVWfm7Nl3fhjGlFdQaAfPno0yR5sk/ 9beeMA9jabCUESBu0cgJl0gKJZSnTxjWKxiH63UDyXKk9yLN1bilnk7dq26cIrqoFC+C gteH0LnehOtGdbEd7y2B3CxT0Q2UqYR0Pb40jq3hyVPEjIkKKBO+bc9CsJEY/8Biz4wy YLU7l86OtgOk5WaLa/DryZjIbQ/yAeF2KJgPKIpexSAcigxqnCFMpBv4e7iLJBozcj8g bzwTAJK8reldjn9w4kDJes+WePiuyVl86FvEryCwMXQUVic/W2H1KpDaKu72v/m4vvBW ssZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=smQ21Q+lu4YzWkpIL0NQMpSHnjdqJ3p/aahLUhEqNKQ=; b=UiXXcVXfu4nwb5ZC6HCOzkp6wpeq7YxXDiAdXPahMO8SJTYD7lGmm0Ja+IISI70FI/ Ieoj8FlQR5s3TFTvcmxPwKik/yA6X3v+yGDEkODkaRYwM8HEYkNoYZpkM/T3uDk+R+bQ hxgFhgTF6mZ6sRNf0OvLY2QJE+V8GOoRDfd3s/PNoRWcrXmKKRITtOUj5ijsNC44MviG TgIxYRHSJyMPNMH2eCT4qkQbIbxKuP2GlwgBsl3uAcm7UKk9V4i9J8gxi2TF6PZUv3ct r0yjhBAaAJftTA9AVlmQs0P0s6bN73ED/jz90jTxo/F0reuPrlx78o57klu1XwTvA+aK 7Ldg== X-Gm-Message-State: AGi0PuZu0u+VLfsXGj33vSMwHwc8GwHeeQXbMN6/SAtQN+k/6UsZkHyC 5lGB55MErqx7lfovBuGHwlExBiCyO+4= X-Google-Smtp-Source: APiQypKhiDNHHLcpW+9IApYT9D7MlmEkrH0BNposg08U9YCRHLoGH6pJTuurpd1Jc+/ixjXkJHIWxw== X-Received: by 2002:a5d:414f:: with SMTP id c15mr2939696wrq.60.1586263938065; Tue, 07 Apr 2020 05:52:18 -0700 (PDT) Original-Received: from [192.168.0.2] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id c6sm5355001wrm.0.2020.04.07.05.52.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Apr 2020 05:52:17 -0700 (PDT) In-Reply-To: <0315ea48-8eb3-38fa-67c1-2e2170a65168@gmx.at> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::435 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:246594 Archived-At: On 07.04.2020 11:32, martin rudalics wrote: > It depends on what we consider a failure: I do not think that inserting > a "/*" in my window showing the top of my C buffer should cause the > window showing the bottom of my buffer consider everything part of a > comment starting at that "/*".  I think that the comment should stop at > the first paren in column zero after that "/*" even if that paren is > shown in the window showing the top of the buffer and even if that's > syntactically wrong (and hence the compiler would see it differently). To be accurate, the comment started by '/*' would end at the first occurrence of '*/' somewhere down the buffer. If you insert or close a paren, however, that would definitely change syntax state at EOB. The former case is possible to support better in syntax-ppss, FWIW. The latter we probably never will (in syntax-ppss). > So what I would vote for in this case is that font-lock would specially > highlight the open paren that "stops seeing the comment as comment" so > the user is aware of the fact.  Would that be so hard to implement? > Even with a slight change in 'parse-partial-sexp' and 'syntax-ppss' that > would accompany it.  Optionally, by default turned off, so nobody who > wants the correct syntactic interpretation would be bothered. According to Alan's experiment, you can get this behavior now already simply by setting comment-use-syntax-ppss to nil and open-paren-in-column-0-is-defun-start to t. Does it improve your experience significantly?