emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] trunk r114390: * emacs-lisp/eieio.el (class-parent): D


From: Stefan Monnier
Subject: Re: [Emacs-diffs] trunk r114390: * emacs-lisp/eieio.el (class-parent): Don't use defalias with macros.
Date: Thu, 19 Sep 2013 17:34:30 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>>> +   * emacs-lisp/eieio.el (class-parent): Don't use defalias with macros.
>> Why not?

> Because it didn't work.

> (defvar foo-var 0)

> (defmacro foo-mac ()
>   '(setq foo-var (1+ foo-var)))

> (define-obsolete-function-alias 'old-mac #'foo-mac "24.4")

> (defun foo-fails ()
>   (old-mac))

> (defun foo-works ()
>   (foo-mac))

Oh, I see.  We should probably fix this, but in any case the code after
define-obsolete-function-alias should be changed to use new-mac rather
than old-mac.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]