From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.bugs Subject: bug#17498: 24.4.50; This function has a compiler macro `yes--cmacro'. Date: Fri, 16 May 2014 10:59:41 +0200 Message-ID: <87r43udrpe.fsf@geodiff-mac3.ulb.ac.be> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1400230771 23324 80.91.229.3 (16 May 2014 08:59:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2014 08:59:31 +0000 (UTC) Cc: 17498@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 16 10:59:24 2014 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 1WlDz7-0000Ki-0x for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 May 2014 10:59:21 +0200 Original-Received: from localhost ([::1]:34190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlDz6-0008GI-Lc for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 May 2014 04:59:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlDyw-0008Fa-Mv for bug-gnu-emacs@gnu.org; Fri, 16 May 2014 04:59:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WlDyo-0004dV-Iy for bug-gnu-emacs@gnu.org; Fri, 16 May 2014 04:59:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlDyo-0004dP-F2 for bug-gnu-emacs@gnu.org; Fri, 16 May 2014 04:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WlDyo-0000bE-0i for bug-gnu-emacs@gnu.org; Fri, 16 May 2014 04:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 May 2014 08:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17498 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17498-submit@debbugs.gnu.org id=B17498.14002307272272 (code B ref 17498); Fri, 16 May 2014 08:59:01 +0000 Original-Received: (at 17498) by debbugs.gnu.org; 16 May 2014 08:58:47 +0000 Original-Received: from localhost ([127.0.0.1]:36709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WlDyY-0000aa-Tq for submit@debbugs.gnu.org; Fri, 16 May 2014 04:58:47 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:1734) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WlDyW-0000aK-GQ for 17498@debbugs.gnu.org; Fri, 16 May 2014 04:58:45 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArEEADvSdVOkD4Xx/2dsb2JhbABZrmcFBpodAYErdIIlAQEEAXkFCwsOEyUPAQQNPBOILAEDCQitepx+AUoNhhcXhVWBf4RmghUHhEABA5dkiEeGW4Vrgzk7 Original-Received: from mathsrv4.ulb.ac.be (HELO geodiff-mac3.ulb.ac.be) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 16 May 2014 10:58:41 +0200 In-Reply-To: (Leo Liu's message of "Thu, 15 May 2014 23:05:18 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:89153 Archived-At: Leo Liu writes: > Eval the following code > > ;;;; BEGIN > (defun yes () > ) > (when nil > (cl-define-compiler-macro yes (&rest _))) > ;;;; END FWIW (and because it was not obvious to me), it's due to eval-and-compile: (when nil (eval-and-compile (message "foo"))) => foo is shown in *Messages* Same with this : (defmacro bar () '(eval-and-compile (message "foo"))) (when nil (bar)) This case could be "fixed" by optimizing `when' for a nil condition : (defmacro new-when (cond &rest body) (declare (indent 1) (debug t)) (and cond (list 'if cond (cons 'progn body)))) Then (new-when nil (bar)) doesn't show anything. -- Nico.