From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#14422: 24.3; Eager Macro Expansion Date: Mon, 03 Jun 2013 11:29:30 -0400 Message-ID: References: <87hahz82rh.fsf@Rainer.invalid> <87mwrcjqlu.fsf@Rainer.invalid> <87ehcojm1e.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1370273427 31997 80.91.229.3 (3 Jun 2013 15:30:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Jun 2013 15:30:27 +0000 (UTC) Cc: 14422@debbugs.gnu.org To: Achim Gratz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 03 17:30:26 2013 Return-path: Envelope-to: geb-bug-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 1UjWiH-0003CV-1G for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jun 2013 17:30:25 +0200 Original-Received: from localhost ([::1]:41908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjWiG-00033b-Fc for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jun 2013 11:30:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjWi6-0002vi-Qv for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 11:30:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjWi2-0004Vx-1E for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 11:30:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjWi1-0004Vt-UO for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 11:30:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UjWjp-0006PW-Vf for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 11:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jun 2013 15:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14422 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14422-submit@debbugs.gnu.org id=B14422.137027349324564 (code B ref 14422); Mon, 03 Jun 2013 15:32:01 +0000 Original-Received: (at 14422) by debbugs.gnu.org; 3 Jun 2013 15:31:33 +0000 Original-Received: from localhost ([127.0.0.1]:49181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UjWjM-0006O9-Tm for submit@debbugs.gnu.org; Mon, 03 Jun 2013 11:31:33 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:32368) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UjWjK-0006Nu-VE for 14422@debbugs.gnu.org; Mon, 03 Jun 2013 11:31:31 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFpYtM/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kiB4GwS2RCgOkeoFegxM X-IPAS-Result: Av8EABK/CFFFpYtM/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kiB4GwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="15504433" Original-Received: from 69-165-139-76.dsl.teksavvy.com (HELO pastel.home) ([69.165.139.76]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 03 Jun 2013 11:29:25 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6B9DD63332; Mon, 3 Jun 2013 11:29:30 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Thu, 30 May 2013 17:14:56 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74776 Archived-At: > The behavior is still different in a few other cases (where eager macro > expansion is not performed, typically M-C-x and things like that), but > I hope to reduce/eliminate them at some point. It just occurred to me that the patch below which I just installed covers several of those cases. Stefan --- lisp/emacs-lisp/lisp-mode.el 2013-05-29 14:14:16 +0000 +++ lisp/emacs-lisp/lisp-mode.el 2013-06-03 14:23:31 +0000 @@ -809,6 +809,7 @@ (defun eval-sexp-add-defvars (exp &optional pos) "Prepend EXP with all the `defvar's that precede it in the buffer. POS specifies the starting position where EXP was found and defaults to point." + (setq exp (macroexpand-all exp)) ;Eager macro-expansion. (if (not lexical-binding) exp (save-excursion