From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs design and architecture Date: Wed, 20 Sep 2023 21:59:37 +0300 Message-ID: <831qesbrhi.fsf@gnu.org> References: <83h6nwlmt4.fsf@gnu.org> <456d12ac-ecf4-3de4-56bb-a2440580777f@gutov.dev> <83a5tokmsv.fsf@gnu.org> <83sf7fki5g.fsf@gnu.org> <43d642a8-d1b4-05ed-41e0-6e52d22df2d4@gutov.dev> <83edizjn0v.fsf@gnu.org> <0518f65b-1dd1-6923-8497-da4d3aeac631@gutov.dev> <1cff05f8-df80-b776-5175-dd27a6e59799@gutov.dev> <87wmwqiax9.fsf@whxvd.name> <87a5tmz319.fsf@yahoo.com> <699f1578-6174-fd89-de67-c226d7412235@gutov.dev> <87wmwpxpto.fsf@yahoo.com> <7bc7579d-748a-8676-66b7-cf657015260d@gutov.dev> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32948"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 20 21:00:35 2023 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 1qj2R9-0008PB-H9 for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Sep 2023 21:00:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qj2QI-0008Og-E1; Wed, 20 Sep 2023 14:59:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qj2QG-0008O1-KB for emacs-devel@gnu.org; Wed, 20 Sep 2023 14:59:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qj2QG-0007mF-7K; Wed, 20 Sep 2023 14:59:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ShND9ffyzX2F5RUwePIQry8InHT93vA4bRm4YfpMEkw=; b=mTnWcbV1Ri1N gUep8iKt4tflI/igLpieXDQnM7CxCJ0r7GX9azH5bXNzuK/sSIuUvSF1ddhMV88xSj4vyzfT4xRv7 RkYudbT7+C0XuYEFhD6GCRhWNW1kRGa5Y4A8g2dHP2/IZnQ69nnwafy/wGzDvL7kgl+ZpCN+8/CmL d1NtHUg5hKMyTwGmco/krw5wWCnKptmilxbeqvrjD6xxqaomXKCcRBY8PMWwDxybg6zmxxBvvZ+Nr ItUgLfFrBPV9tFVRrX2cdzBgj507WfLAv2tYtx4oWis1kkcCBJu/F+s4WXf8kI5U6Iw83hF3SjRVU MTjN126np2wEuHFEO3ubig==; In-Reply-To: (message from Richard Stallman on Wed, 20 Sep 2023 14:35:41 -0400) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310850 Archived-At: > From: Richard Stallman > Cc: emacs-devel@gnu.org > Date: Wed, 20 Sep 2023 14:35:41 -0400 > > What would be problematical is calling from within the parts > of redisplay that alter the display matrices. An error there > would be hard to recover. It could crash. > > It is many years since I looked at that code, but ISTR that the > calls for font lock are in the outer parts, specifically to > avoid this danger. No, they are called from where the glyph matrices are constructed. But we catch Lisp errors when we call jit-lock (and any other Lisp) from the display code, so any error just causes a message in *Messages* (and might leave the text unfontified). So it is not dangerous.