From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#47588: 28.0.50; C-M-x in emacs-lisp-mode: elisp--eval-defun: =?UTF-8?Q?Symbol=E2=80=99s?= function definition is void: nil [3 times] Date: Sat, 17 Apr 2021 23:48:53 +0000 Message-ID: <1869622e1629fd40f6c9@heytings.org> References: <837dliebu7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="RMpTQ2DYle" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14380"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47588@debbugs.gnu.org, Stefan Monnier To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 18 01:49:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lXugY-0003e9-Dq for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Apr 2021 01:49:10 +0200 Original-Received: from localhost ([::1]:44476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXugX-0006vX-HZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Apr 2021 19:49:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXugQ-0006tq-7o for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 19:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33382) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXugP-00074U-UQ for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 19:49:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXugP-0002sr-Rf for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 19:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 23:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47588 X-GNU-PR-Package: emacs Original-Received: via spool by 47588-submit@debbugs.gnu.org id=B47588.161870333711075 (code B ref 47588); Sat, 17 Apr 2021 23:49:01 +0000 Original-Received: (at 47588) by debbugs.gnu.org; 17 Apr 2021 23:48:57 +0000 Original-Received: from localhost ([127.0.0.1]:44928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXugL-0002sY-2Q for submit@debbugs.gnu.org; Sat, 17 Apr 2021 19:48:57 -0400 Original-Received: from heytings.org ([95.142.160.155]:42438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXugJ-0002sO-Cc for 47588@debbugs.gnu.org; Sat, 17 Apr 2021 19:48:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1618703333; bh=1+lLYMK6PNKleUZY3aIjI9TKbhO55ketafuBapGcXbE=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=i+Vzt/dDzglIL/bbNIuTL0v79numxeXnJ9ceFRjspPj+xrPlGUC5O4mpEkVJeHqFZ dJIBWEX1cW3izKg61GYDGO0IlHsTEY6jtp8yiyPFL9PLmIG/Cq5UAb00F4BvVRUlmv j0UDz/pHQoIa1BHnG9E3jTSdP/pl/OGP34u4Q4WJTyLFY/oZRbB92IErDK+ix9po5g FiCnKf6mjsTkICKma1G/+t5Tf21VGRMOh5G2dV5ZpQDhfR3DHPXXz0+vogONc+0pIH QltuVFUv+eYUp4z+06ACqPGai9Ud4yibdcxogZR3tZ935qY74SZSpGobL38gRFqEK3 XPlg9dCfbkrHQ== In-Reply-To: Content-ID: <1869622e161a212501ae@heytings.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204280 Archived-At: --RMpTQ2DYle Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-ID: <1869622e16959a7f41c1@heytings.org> > > 1. emacs -Q > > 2. Go to *scratch* (but it is happening anywhere) > > 2. Evaluate (number-to-string nil) and get error, do not press Q in=20 > *Backtrace*, switch back to *scratch* > > 3. Try evaluating any defun with C-M-x it will give error:=20 > elisp--eval-defun: Symbol=E2=80=99s function definition is void: nil > > 4. You can evaluate with C-x C-e on the end of the defun, but not in the= =20 > middle with C-M-x > > 5. Go to *Backtrace*, click q or erase *Backtrace*, come back and it=20 > works again. > IIUC, this is a kind chicken-and-egg problem: eval-defun at that point=20 does not work without a (require 'edebug), which executes=20 (edebug-install-read-eval-functions), which puts an advice around=20 eval-defun... Here's a patch, which I'm sure is not TRT, but which at least fixes that=20 bug. Cc'ing Stefan, who wrote bae2cfe63c, who might have a better idea on= =20 how this should be done. --RMpTQ2DYle Content-Type: text/x-diff; name=Load-edebug-before-actually-calling-eval-defun.patch Content-Transfer-Encoding: base64 Content-ID: <1869622e16986b7a8ba7@heytings.org> Content-Description: Content-Disposition: attachment; filename=Load-edebug-before-actually-calling-eval-defun.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