From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: How the long-lines "optimisation" breaks font locking. Date: Wed, 03 Aug 2022 21:03:56 +0200 Message-ID: <87y1w5tahv.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="475"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, Gregory Heytings To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 03 21:05:07 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 1oJJg3-000AS0-GM for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Aug 2022 21:05:07 +0200 Original-Received: from localhost ([::1]:53920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJJg2-0003QL-6e for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Aug 2022 15:05:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJJf2-0001zl-Fd for emacs-devel@gnu.org; Wed, 03 Aug 2022 15:04:04 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:33142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJJf1-0001z7-20 for emacs-devel@gnu.org; Wed, 03 Aug 2022 15:04:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NEXTgTOCOQUv67ZNGm9c9cNzSa1Xr5TTt0yRPw6n4iA=; b=DmKW+qKiQMsDiClGZnRe+OsZ6i bVIUbyN16y8IgDljPq6S9B6zH0EFiJmrkJ7O6tIV5BDJ9Dxm9stEDF25qSxs8IfpG4GGhObJ2jjv+ DvE6m5ywuGAPMcC729bj0iNNqXHDkM1kjL9FHW/BS0kd016vOt2/xPj0bOLJX4Dpi8kQ=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJJev-0006rz-33; Wed, 03 Aug 2022 21:03:59 +0200 In-Reply-To: (Alan Mackenzie's message of "Wed, 3 Aug 2022 18:39:16 +0000") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEWuESlgKScvGRcF AgLPsLL///8dZI7qAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YIAxMBE63J26YAAAGqSURBVDjLhVOB kcMgDAt0AWwWqM0CxSzQXrv/TC8DCfnm7969SxqEbMmYbetBIVAKiPE5X/9HIKK/ljlXynJd11aa FrlwirYe9sW5CXk4mn4BRqM4a6srfdqiuCBfRhwAC2VVpY2KMYD7ArgZgBQkS2mnXFtoisJERg0U G4suItSMusJaO2UBscIZKXZzzbvghGZGKe7B2LLn2p0wMTVxPUIonaestBGhHzxbgmwHgEaVxs4w B6ScgAa9/ug0WkD23aBod2509DFit1eFav8nms6AC6VOQW96KiaKTXOppe3OQwdUKhczL2BvWFy9 isVUsLWSZKitCyCo9eTVe5sfR9c98WG8yX0x8FnmkOAt6TDoWp1i6jiRTCC0w7n3AEN5H8BtNA/O cx0HyCvVdO6P83x2wJ2/IfACuGTGLx1yw3RgvlzL3lqqkvL01k9rn8QP0w6MUvtFYLS9nADwerLk N+/MgOhxgim8voCtnyAGl1M2PQFT1pMSzUmZMWV9bg8/4riAeVKfeB93ZAkezp+P2JMuYE7DuBBB LwCunzPOJvGtPZLf8ReXBfwAvyJtEVwC/qYAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDgtMDNU MTk6MDE6MTkrMDA6MDCuz8PoAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA4LTAzVDE5OjAxOjE5 KzAwOjAw35J7VAAAAABJRU5ErkJggg== X-Now-Playing: Art Ensemble of Chicago's _Fanfare for the Warriors_: "Nonaah" Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-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:293028 Archived-At: Alan Mackenzie writes: > I don't think it is improbable that a C++ hacker will create a long line > in a raw string. If you don't think that's improbable, then you should like the new optimisations a lot -- because if you, instead of a 10K line in that C++ file, inserted a 1M line, then Emacs would previously hang indefinitely, but with the optimisation, it doesn't. Which is the point here.