From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Strange change in backquote expansion Date: Tue, 21 Aug 2007 15:09:22 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187723496 23944 80.91.229.12 (21 Aug 2007 19:11:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2007 19:11:36 +0000 (UTC) Cc: Stefan =?iso-8859-1?Q?Reich=F6r?= , emacs-devel@gnu.org To: Sascha Wilde Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 21 21:11:34 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1INZ8X-000194-RJ for ged-emacs-devel@m.gmane.org; Tue, 21 Aug 2007 21:11:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INZ8X-0005FK-4U for ged-emacs-devel@m.gmane.org; Tue, 21 Aug 2007 15:11:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INZ8S-0005Ci-SX for emacs-devel@gnu.org; Tue, 21 Aug 2007 15:11:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INZ8R-00059r-0U for emacs-devel@gnu.org; Tue, 21 Aug 2007 15:11:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INZ8Q-00059l-Ty for emacs-devel@gnu.org; Tue, 21 Aug 2007 15:11:26 -0400 Original-Received: from tomts5.bellnexxia.net ([209.226.175.25] helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INZ8R-00070V-K4 for emacs-devel@gnu.org; Tue, 21 Aug 2007 15:11:27 -0400 Original-Received: from ceviche.home ([65.94.145.148]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070821191124.ESSH1592.tomts5-srv.bellnexxia.net@ceviche.home> for ; Tue, 21 Aug 2007 15:11:24 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id A4F8470039; Tue, 21 Aug 2007 15:09:22 -0400 (EDT) In-Reply-To: (Sascha Wilde's message of "Sat\, 18 Aug 2007 23\:34\:19 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76907 Archived-At: > Old Emacs (including 22.0): > (defmacro debug-macro-test (arg) > ``(,,@(list (list arg)))) > (macroexpand '(debug-macro-test foo)) > => (list (foo)) I believe the patch below fixes it (installed on the 22 branch). Stefan --- orig/lisp/emacs-lisp/backquote.el +++ mod/lisp/emacs-lisp/backquote.el @@ -110,9 +110,8 @@ (defun backquote-delay-process (s level) "Process a (un|back|splice)quote inside a backquote. This simply recurses through the body." - (let ((exp (backquote-listify (list (backquote-process (nth 1 s) level) - (cons 0 (list 'quote (car s)))) - '(0)))) + (let ((exp (backquote-listify (list (cons 0 (list 'quote (car s)))) + (backquote-process (cdr s) level)))) (if (eq (car-safe exp) 'quote) (cons 0 (list 'quote s)) (cons 1 exp))))