From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.orgmode,gmane.emacs.help Subject: Re: Why does evaluating a piece of Elisp code seemingly not expand a macro? Date: Mon, 18 Jan 2016 21:03:33 +0100 Message-ID: <8737tu8xka.fsf@mbork.pl> References: <87a8o7duj6.fsf@mbork.pl> <878u3rcdpu.fsf@gmail.com> <87io2r95n2.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453147448 22424 80.91.229.3 (18 Jan 2016 20:04:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jan 2016 20:04:08 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, emacs-orgmode@gnu.org To: Stefan Monnier Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Mon Jan 18 21:04:01 2016 Return-path: Envelope-to: geo-emacs-orgmode@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 1aLG1w-0003cr-Ml for geo-emacs-orgmode@m.gmane.org; Mon, 18 Jan 2016 21:04:00 +0100 Original-Received: from localhost ([::1]:33438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLG1v-0002N7-LR for geo-emacs-orgmode@m.gmane.org; Mon, 18 Jan 2016 15:03:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLG1g-00026D-Ll for emacs-orgmode@gnu.org; Mon, 18 Jan 2016 15:03:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLG1d-0005jA-Ft for emacs-orgmode@gnu.org; Mon, 18 Jan 2016 15:03:44 -0500 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:38192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLG1d-0005iy-8O; Mon, 18 Jan 2016 15:03:41 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 1F0EB8F2023; Mon, 18 Jan 2016 21:03:40 +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 iX6g--u-Eg7U; Mon, 18 Jan 2016 21:03:37 +0100 (CET) Original-Received: from localhost (unknown [109.232.24.28]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 3591C8F2020; Mon, 18 Jan 2016 21:03:37 +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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Original-Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.orgmode:104313 gmane.emacs.help:108770 Archived-At: On 2016-01-18, at 14:54, Stefan Monnier wrote: >> Does it mean that C-M-x is different than loading? > > Yes. > >> Or C-x C-e, for that matter? > > As well. > >> Is this covered by the manual? (If not, it might need correcting.) > > Not really. The basic idea is that macroexpansion can take place > *anytime* (tho, before the code is actually executed). If you care > about when expansion takes place you probably have a bug. Does that mean that it's possible that a function definition contains unexpanded macros? Does that mean that `symbol-function' will expand them? Does that mean that if I define a macro, then a function using that macro, and then change the definition of the macro, the behavior of the function is undefined? Sorry for so many questions, but I really want to understand this. (Also, when that happens, I might send a patch for the manual.) > Stefan Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University