From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Is there a way to instrument for edebug a form (say, a progn) given to `eval'? Date: Tue, 05 Jan 2016 10:04:55 +0100 Message-ID: <87k2nos8g8.fsf@mbork.pl> References: <87k2nw866r.fsf@mbork.pl> <87wprv6e0f.fsf@web.de> <87mvslrn8q.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1451984741 19903 80.91.229.3 (5 Jan 2016 09:05:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jan 2016 09:05:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 05 10:05:28 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aGNYV-0005pa-8L for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jan 2016 10:05:27 +0100 Original-Received: from localhost ([::1]:48689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGNYU-00087U-Lr for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jan 2016 04:05:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGNYK-00087N-M8 for help-gnu-emacs@gnu.org; Tue, 05 Jan 2016 04:05:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGNYG-0008HX-Dd for help-gnu-emacs@gnu.org; Tue, 05 Jan 2016 04:05:16 -0500 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:36541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGNYG-0008H6-6M for help-gnu-emacs@gnu.org; Tue, 05 Jan 2016 04:05:12 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 9BE1D8F2016; Tue, 5 Jan 2016 10:04:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ppBs38+TMmyI; Tue, 5 Jan 2016 10:04:56 +0100 (CET) Original-Received: from localhost (unknown [109.232.24.28]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 6A5E68F200B; Tue, 5 Jan 2016 10:04:56 +0100 (CET) User-agent: mu4e 0.9.13; emacs 25.1.50.1 In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2a01:5e00:2:52::8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108611 Archived-At: On 2016-01-05, at 05:41, Stefan Monnier wrote: >> OK, so try C-u C-M-x with this form: > >> (eval >> '(progn >> (message "foo") >> (message "bar"))) > > Of course, this is a silly use of `eval' and for more real uses this Of course it's silly, it wasn't meant to be anything else. > problem typically doesn't happen. This said, you can try > > (eval (edebug-\` (progn (message "foo") (message "bar")))) > > Where edebug-\` is an alias for the normal backquote which tells Edebug > that the quoted data is actually dynamically-generated code, so Edebug > can try to "do the right thing". Ha, that's interesting. Do I get it correctly that the "normal backquote" is the symbol \`, which is an alias for the `backquote' macro? > Stefan Thanks, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University