From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Emacs design and architecture Date: Wed, 20 Sep 2023 14:35:41 -0400 Message-ID: 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> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32317"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 20 20:36:56 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 1qj24F-000803-J1 for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Sep 2023 20:36:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qj235-0002gL-4i; Wed, 20 Sep 2023 14:35:43 -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 1qj233-0002g0-TZ for emacs-devel@gnu.org; Wed, 20 Sep 2023 14:35:41 -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 1qj233-0003sa-H7; Wed, 20 Sep 2023 14:35:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=INkGw5kcuorVNbsY36mktrDFYTjCwDFdNS6fIThUb4U=; b=pX7Bf65d4e3T 6xgAgLEVV1dnHcOO85ZXejXTzNa193+yiDDcWDIan6xXvctyXI+XEnUH0XHtPysP2xROGzjjK54Ye 3eJUsSx9CcYOfaQhNZNTks4kX3YHa2x8OD1+GV7fraNqbtoptzoy/S8g8QLs1XRgvxbQadaCPnjnY 8i5HPpSccW9X0Rtuxe7ndnud3zlS4qQ4QWIq2X6okAqW/6+l7HxKdQsV3KjY0P1D0HTYAkYiz8vN1 jgD+mh6Fbno5fH09IBbBg7XvM7evypJNRZAOKvLHa/33LVhXIXQjkG+5ulfM7e2SlVjk9uiNy4mAH p38D5SgBXIrLctFuniD9Eg==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qj233-0002ru-8C; Wed, 20 Sep 2023 14:35:41 -0400 In-Reply-To: <7bc7579d-748a-8676-66b7-cf657015260d@gutov.dev> (message from Dmitry Gutov on Mon, 18 Sep 2023 13:46:58 +0300) 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:310848 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > We do: just as others have noted, redisplay calls back into Lisp. Which > allows us to implement jit-lock with language-specific logic written in > Lisp. To say that this happens in "redisplay" is too general to indicate whether there is anything tricky or dangerous about it. Calls from outer parts of redisplay are not problematical. They are no more dangerous than calling before or after redisplay. 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. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)