GNU bug report logs - #17498
24.4.50; This function has a compiler macro `yes--cmacro'.

Previous Next

Package: emacs;

Reported by: Leo Liu <sdl.web <at> gmail.com>

Date: Thu, 15 May 2014 15:07:02 UTC

Severity: minor

Found in version 24.4.50

Done: Leo Liu <sdl.web <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Leo Liu <sdl.web <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#17498: closed (24.4.50; This function has a compiler macro
 `yes--cmacro'.)
Date: Fri, 16 May 2014 18:27:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 17 May 2014 02:25:57 +0800
with message-id <m3ppjd37ii.fsf <at> gmail.com>
and subject line Re: bug#17498: 24.4.50; This function has a compiler macro `yes--cmacro'.
has caused the debbugs.gnu.org bug report #17498,
regarding 24.4.50; This function has a compiler macro `yes--cmacro'.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
17498: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17498
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Leo Liu <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4.50; This function has a compiler macro `yes--cmacro'.
Date: Thu, 15 May 2014 23:05:18 +0800
Eval the following code

;;;; BEGIN
(defun yes ()
  )
(when nil
  (cl-define-compiler-macro yes (&rest _)))
;;;; END

,----[ C-h f yes RET ]
| yes is a Lisp function.
| 
| (yes)
| 
| This function has a compiler macro `yes--cmacro'.
| 
| Not documented.
| 
| [back]
`----

how is it possible? the compiler macro is defined at macro expansion
time?

Leo


[Message part 3 (message/rfc822, inline)]
From: Leo Liu <sdl.web <at> gmail.com>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 17498-done <at> debbugs.gnu.org
Subject: Re: bug#17498: 24.4.50;
 This function has a compiler macro `yes--cmacro'.
Date: Sat, 17 May 2014 02:25:57 +0800
On 2014-05-16 08:24 -0400, Stefan Monnier wrote:
> Well, there's always some other way, but yes it's made so that it works
> when byte-compiling.

OK and thanks for the explanation. It took me by a surprise.

Leo


This bug report was last modified 11 years and 13 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.