bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#11686: 24.1.50; defun should return name


From: Stefan Monnier
Subject: bug#11686: 24.1.50; defun should return name
Date: Wed, 13 Jun 2012 08:27:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

> Here's a patch, think this is right:

> Return NAME, not definition from defun and defmacro

> * lisp/emacs-lisp/byte-run.el (defun, defmacro): Return newly created
> definition's name, not its definition.

I wonder what is the impact on the generated byte-code.

Maybe a simpler way is to change defalias to return the name rather than
the value.


        Stefan





reply via email to

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