From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11686: 24.1.50; defun should return name Date: Wed, 13 Jun 2012 08:27:08 -0400 Message-ID: References: <87ipewb637.fsf@gnu.org> <87mx47h8wp.fsf@gmx.li> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1339590513 17755 80.91.229.3 (13 Jun 2012 12:28:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2012 12:28:33 +0000 (UTC) Cc: 11686@debbugs.gnu.org To: Lawrence Mitchell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 13 14:28:31 2012 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 1SemgV-0004yG-Oe for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jun 2012 14:28:27 +0200 Original-Received: from localhost ([::1]:48832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SemgV-0000rE-L9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jun 2012 08:28:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SemgO-0000qh-Gn for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2012 08:28:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SemgJ-0001B2-Oq for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2012 08:28:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SemgJ-0001Ax-KH for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2012 08:28:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Semj0-0006Pd-F0 for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2012 08:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jun 2012 12:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11686 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11686-submit@debbugs.gnu.org id=B11686.133959060824586 (code B ref 11686); Wed, 13 Jun 2012 12:31:02 +0000 Original-Received: (at 11686) by debbugs.gnu.org; 13 Jun 2012 12:30:08 +0000 Original-Received: from localhost ([127.0.0.1]:40576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Semi7-0006OU-Fe for submit@debbugs.gnu.org; Wed, 13 Jun 2012 08:30:07 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:14605) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Semi3-0006Ny-VU for 11686@debbugs.gnu.org; Wed, 13 Jun 2012 08:30:04 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09FxIKb/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCwsOJhIUGA0kiBwFugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="191277632" Original-Received: from 69-196-130-155.dsl.teksavvy.com (HELO pastel.home) ([69.196.130.155]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 13 Jun 2012 08:27:15 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 5169258E8D; Wed, 13 Jun 2012 08:27:08 -0400 (EDT) In-Reply-To: <87mx47h8wp.fsf@gmx.li> (Lawrence Mitchell's message of "Wed, 13 Jun 2012 10:13:10 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:60927 Archived-At: > 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