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.devel Subject: Re: New optimisations for long raw strings in C++ Mode. Date: Tue, 09 Aug 2022 19:05:58 -0400 Message-ID: References: <87wnbkyuhe.fsf@gnus.org> <83sfm8vxht.fsf@gnu.org> <87k07hxwe9.fsf@gnus.org> <87fsi5xw9l.fsf@gnus.org> <83wnbhtlzb.fsf@gnu.org> <703c2351d96919276449@heytings.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38021"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Gregory Heytings , Eli Zaretskii , larsi@gnus.org, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 10 01:07:52 2022 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 1oLYKF-0009jH-Bi for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Aug 2022 01:07:51 +0200 Original-Received: from localhost ([::1]:46192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLYKE-0001E9-Ci for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Aug 2022 19:07:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLYIb-0000Hs-Hg for emacs-devel@gnu.org; Tue, 09 Aug 2022 19:06:10 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:37287) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLYIX-0007YV-7l; Tue, 09 Aug 2022 19:06:08 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D17D2100123; Tue, 9 Aug 2022 19:06:02 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 668D3100102; Tue, 9 Aug 2022 19:06:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1660086361; bh=0yejc2tX+pfJQOtiPFZ5EqSpElNj2KTLNCUtABswn6I=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=jokBhr8dYHa47/ne+43Wbp0/kQzCsUAKlnmzgYBbZus54qj2/IK36LOuVR0shOVUo ykyopViF7EGxzOXK+pdUq8D59lY/ukV8O8RqiYYKnndWeEYaIYivXagTFkZb0Jy7Kl SNkbXCYO6AsotRVMahohpA9eful47gWixe7qw1Ra8uGkyoiJvloHAXtdiBkGJLJRoX tL4+791au0W2Mhhd7MGtquU9QLH6Y0nFLgB1SjWcjW+Bbs6QpdDbuBhp713ch/usGz 2LBKV+6XLXiUrKvxFQY7z2+pU7v/W53MdYN+z5VBNBxLAtmM8WPYuQJRudFKcxA3Jl wR5B2Gt8ERjpA== Original-Received: from milanesa (dyn.144-85-182-186.dsl.vtx.ch [144.85.182.186]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 401691203A9; Tue, 9 Aug 2022 19:06:00 -0400 (EDT) In-Reply-To: (Alan Mackenzie's message of "Tue, 9 Aug 2022 21:43:28 +0000") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:293336 Archived-At: > Er, actually, CC Mode has been around a tad longer than the new feature. > > It would be more accurate to state that the new feature was, by design, > incompatible with existing software. The new feature, by design, breaks > long-standing contracts in Emacs, namely that `widen', etc., work. > > Of course, testing could have shown up this incompatibility at an early > stage, perhaps even leading to a solution. A pity we didn't have more > thorough testing. The long-lines code is not particularly concerned with CC-mode, tho. In my experience long lines occur *extremely* rarely in files handled by CC-mode, so it's not particularly important if this case is handled well or not. > So, what do you intend to do about this incompatibility you have > introduced? Anything? I think "nothing" is a perfectly valid choice at this point. Of course, fixing CC-mode so that its font-lock (and indentation) code doesn't call `widen` would be good in any case (also for use in MMM-mode). I understand it can be somewhat annoying since the code that calls `widen` might also be called from other places than indentation and font-lock. Stefan