From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: 27.0.50, (void-function with-buffer-prepared-for-jit-lock) Date: Sat, 30 Jun 2018 09:37:27 -0400 Message-ID: References: <761011d4-5d4e-2653-3d96-2c3324231d5c@online.de> <54a698c7-a9c0-1075-37da-a44e21e20e62@online.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1530365768 26497 195.159.176.226 (30 Jun 2018 13:36:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 30 Jun 2018 13:36:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 30 15:36:04 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 1fZG2l-0006lx-6x for ged-emacs-devel@m.gmane.org; Sat, 30 Jun 2018 15:36:03 +0200 Original-Received: from localhost ([::1]:46957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZG4s-0002Gh-Gc for ged-emacs-devel@m.gmane.org; Sat, 30 Jun 2018 09:38:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZG4J-0002GT-Bi for emacs-devel@gnu.org; Sat, 30 Jun 2018 09:37:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZG4G-00039J-6R for emacs-devel@gnu.org; Sat, 30 Jun 2018 09:37:39 -0400 Original-Received: from [195.159.176.226] (port=37804 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZG4F-000351-V1 for emacs-devel@gnu.org; Sat, 30 Jun 2018 09:37:36 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fZG25-00066f-FY for emacs-devel@gnu.org; Sat, 30 Jun 2018 15:35:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:kjaMtaa0Uss6ToBQPO5je9iUdgA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:226843 Archived-At: > Okay. Should mean didn't compile elisp .el files into .elc All files? Some of the files? > 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: > > Well, the question is if a general used function should depend from > > (eval-when-compile The content of eval-when-compile is executed when the .el file is loaded (it's not executed when the .elc file is loaded, because it's executed when the .elc file is generated instead). So, loading jit-lock.el will define with-buffer-prepared-for-jit-lock just fine and hence not compiling jit-lock.el (like you seem to claim you did) doesn't explain the error you got. IOW, I still don't think you've actually described what you've done. My guess is that you M-C-x (or eval-region or something like that) to (re)evaluate a particular chunk of jit-lock.el. And indeed, doing that doesn't always work right because of things like (eval-when-compile (require )) But M-x eval-buffer (or M-x load-file RET .../foo.el) normally works fine. Stefan