From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: elisp test-and-set? Date: Sat, 26 May 2018 10:08:07 +0300 Message-ID: <834liuao88.fsf@gnu.org> References: <86po1jv4bv.fsf@stephe-leake.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1527318392 9786 195.159.176.226 (26 May 2018 07:06:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 26 May 2018 07:06:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 26 09:06:28 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMTHW-0002Q7-UW for ged-emacs-devel@m.gmane.org; Sat, 26 May 2018 09:06:27 +0200 Original-Received: from localhost ([::1]:48001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMTJd-0001oF-8Z for ged-emacs-devel@m.gmane.org; Sat, 26 May 2018 03:08:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMTJU-0001oA-Qo for emacs-devel@gnu.org; Sat, 26 May 2018 03:08:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMTJP-0000Sn-R0 for emacs-devel@gnu.org; Sat, 26 May 2018 03:08:28 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMTJP-0000SR-No; Sat, 26 May 2018 03:08:23 -0400 Original-Received: from [176.228.60.248] (port=3314 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fMTJM-0002g6-8F; Sat, 26 May 2018 03:08:22 -0400 In-reply-to: <86po1jv4bv.fsf@stephe-leake.org> (message from Stephen Leake on Fri, 25 May 2018 16:00:04 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225744 Archived-At: > From: Stephen Leake > Date: Fri, 25 May 2018 16:00:04 -0500 > > In ada-mode, I'm using a parser running in an external process to > compute faces and indentation. > > Since faces are computed by font-lock, which runs on a timer in the > background, it can try to run when indent is running in the foreground. Do you have evidence of this? Emacs is single-threaded, so only one Lisp function can run at any given time. I'm guessing you saw something that led you to above conclusion, but I think the conclusion is at least inaccurate if not incorrect. So please tell more detail about what you see, and probably about the implementation of that parser. E.g., are you running the parser from font-lock, or are you running it from some other hook?