unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Lawrence Mitchell <wence@gmx.li>
Cc: 11686@debbugs.gnu.org
Subject: bug#11686: 24.1.50; defun should return name
Date: Mon, 18 Jun 2012 11:58:09 -0400	[thread overview]
Message-ID: <jwvr4tcpqhi.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <874nqfl1r2.fsf@gmx.li> (Lawrence Mitchell's message of "Wed, 13 Jun 2012 15:34:09 +0100")

>> Maybe a simpler way is to change defalias to return the name rather than
>> the value.
> But defalias says:
> | (defalias SYMBOL DEFINITION &optional DOCSTRING)
> | Set SYMBOL's function definition to DEFINITION, and return DEFINITION.
> So you'll probably then get a bug report about that instead.

We'll see, I just installed a patch that does that.

I don't know of any use-case where the return value of `defalias' is
used, whereas I do know of one use case where the return value of
`defun' is used (it's in (add-hook 'foo-hook (defun bar () ...))).


        Stefan





  reply	other threads:[~2012-06-18 15:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-12 20:58 bug#11686: 24.1.50; defun should return name Johan Bockgård
2012-06-13  9:13 ` Lawrence Mitchell
2012-06-13 12:27   ` Stefan Monnier
2012-06-13 14:34     ` Lawrence Mitchell
2012-06-18 15:58       ` Stefan Monnier [this message]
2012-06-22 13:38         ` Lawrence Mitchell
2012-06-24 17:08           ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvr4tcpqhi.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=11686@debbugs.gnu.org \
    --cc=wence@gmx.li \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).