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 23:06:11 -0400 Message-ID: References: <761011d4-5d4e-2653-3d96-2c3324231d5c@online.de> <20180630175152.GA6816@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1530414299 21355 195.159.176.226 (1 Jul 2018 03:04:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 1 Jul 2018 03:04:59 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Andreas =?windows-1252?Q?R=F6hler?= , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 01 05:04:55 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 1fZSfX-0005UP-2h for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2018 05:04:55 +0200 Original-Received: from localhost ([::1]:48662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZShe-0001Uv-6t for ged-emacs-devel@m.gmane.org; Sat, 30 Jun 2018 23:07:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZSgr-0001Uq-PN for emacs-devel@gnu.org; Sat, 30 Jun 2018 23:06:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZSgn-00009u-Ph for emacs-devel@gnu.org; Sat, 30 Jun 2018 23:06:17 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:46306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZSgn-00007r-JW for emacs-devel@gnu.org; Sat, 30 Jun 2018 23:06:13 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w6136B3Q003942; Sat, 30 Jun 2018 23:06:11 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 510B665491; Sat, 30 Jun 2018 23:06:11 -0400 (EDT) In-Reply-To: <20180630175152.GA6816@ACM> (Alan Mackenzie's message of "Sat, 30 Jun 2018 17:51:52 +0000") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6319=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6319> : inlines <6730> : streams <1791242> : uri <2666715> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:226860 Archived-At: > 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. Oh, yes, been there, many times. Maybe we could look for preceding `eval-when-compile` forms when instrumenting (as well as when using C-M-x and a few other cases) and either blindly run them or ask the user. We already have some similar code that looks for preceding (defvar FOO) in eval-sexp-add-defvars maybe we could just extend that. Stefan