From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: 27.0.50, (void-function with-buffer-prepared-for-jit-lock) Date: Sat, 30 Jun 2018 17:51:52 +0000 Message-ID: <20180630175152.GA6816@ACM> References: <761011d4-5d4e-2653-3d96-2c3324231d5c@online.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1530381576 5181 195.159.176.226 (30 Jun 2018 17:59:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 30 Jun 2018 17:59:36 +0000 (UTC) User-Agent: Mutt/1.9.4 (2018-02-28) Cc: Andreas =?iso-8859-1?Q?R=F6hler?= , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 30 19:59:31 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 1fZK9j-0001Fj-Et for ged-emacs-devel@m.gmane.org; Sat, 30 Jun 2018 19:59:31 +0200 Original-Received: from localhost ([::1]:47582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZKBq-0001hi-Jq for ged-emacs-devel@m.gmane.org; Sat, 30 Jun 2018 14:01:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZKBK-0001V4-2e for emacs-devel@gnu.org; Sat, 30 Jun 2018 14:01:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZKBH-0004eT-2F for emacs-devel@gnu.org; Sat, 30 Jun 2018 14:01:10 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:53807 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1fZKBG-0004Zk-Si for emacs-devel@gnu.org; Sat, 30 Jun 2018 14:01:07 -0400 Original-Received: (qmail 75381 invoked by uid 3782); 30 Jun 2018 18:01:02 -0000 Original-Received: from acm.muc.de (p5B147D93.dip0.t-ipconnect.de [91.20.125.147]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 30 Jun 2018 20:01:01 +0200 Original-Received: (qmail 9703 invoked by uid 1000); 30 Jun 2018 17:51:52 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 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:226845 Archived-At: Hello, Stefan. On Fri, Jun 29, 2018 at 19:14:50 -0400, Stefan Monnier wrote: > > when running an uncompiled Emacs --which is preferred for jumping into maybe > > changed sources-- got > There's no such thing as "an uncompiled Emacs". All it means is that > you did something to use some uncompiled code somewhere, but without > clarifying what it is you did. > > Error during redisplay: (jit-lock-function 1245) signaled (void-function > > with-buffer-prepared-for-jit-lock) > So, apparently what you did was not right: if it hurts, don't do it. > Without knowing what it is you did, nor what it is you were trying to > do, it's hard to help you much further. I had a similar experience with the macro save-buffer-state in font-lock.el. This macro is restricted by the surrounding eval-when-compile. So when I tried to instrument font-lock-default-fontify-region for edebug, edebug assumed save-buffer-state was an unknown function, and when I tried to run it, it threw an error. It was irritating to have to compile save-buffer-state by hand (with C-x C-e) and then to instrument f-l-d-fontify-region again. I thus concur with Andreas, that such macros (and possibly require operations) should be available at run time. > Stefan -- Alan Mackenzie (Nuremberg, Germany).