From: Robert Pluim <rpluim@gmail.com>
To: emacs-devel@gnu.org
Cc: Lars Ingebrigtsen <larsi@gnus.org>
Subject: Re: master c8a2af3037 1/3: Add new function function-alias-p
Date: Thu, 13 Jan 2022 11:41:03 +0100 [thread overview]
Message-ID: <87sftr3olc.fsf@gmail.com> (raw)
In-Reply-To: <20220113084927.707D2C0DA30@vcs2.savannah.gnu.org> (Lars Ingebrigtsen's message of "Thu, 13 Jan 2022 03:49:27 -0500 (EST)")
>>>>> On Thu, 13 Jan 2022 03:49:27 -0500 (EST), Lars Ingebrigtsen <larsi@gnus.org> said:
Lars> branch: master
Lars> commit c8a2af3037c647bf6dd53f53af1b344e284f809b
Lars> Author: Lars Ingebrigtsen <larsi@gnus.org>
Lars> Commit: Lars Ingebrigtsen <larsi@gnus.org>
Lars> Add new function function-alias-p
Lars> * doc/lispref/functions.texi (Defining Functions): Document it.
Lars> * lisp/subr.el (function-alias-p): New function (bug#53178).
Lars> ---
Lars> doc/lispref/functions.texi | 17 +++++++++++++++++
Lars> etc/NEWS | 5 +++++
Lars> lisp/subr.el | 22 ++++++++++++++++++++++
Lars> test/lisp/subr-tests.el | 17 +++++++++++++++++
Lars> 4 files changed, 61 insertions(+)
Lars> diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
Lars> index 96fecc8c89..caf8e3444f 100644
Lars> --- a/doc/lispref/functions.texi
Lars> +++ b/doc/lispref/functions.texi
Lars> @@ -667,6 +667,23 @@ which file defined the function, just like @code{defun}
Lars> By contrast, in programs that manipulate function definitions for other
Lars> purposes, it is better to use @code{fset}, which does not keep such
Lars> records. @xref{Function Cells}.
Lars> +@end defun
Lars> +
Lars> +@defun function-alias-p object &optional noerror
Lars> +Use the @code{function-alias-p} function to check whether an object is
Lars> +a function alias. If it isn't, this predicate will return
Lars> +non-@code{nil}. If it is, the value returned will be a list of symbol
Lars> +representing the function alias chain. For instance, if @code{a} is
Lars> +an alias for @code{b}, and @code{b} is an alias for @code{c}:
Lars> +
I think thatʼs not correct (and a bit convoluted). How about:
Checks whether @var{object} is a function alias. If it is, it returns
a list of symbols representing the function alias chain, else
@code{nil}. For instance, if @code{a} is an alias for @code{b}, and
@code{b} is an alias for @code{c}:
Robert
--
next parent reply other threads:[~2022-01-13 10:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <164206376686.342.13318619183595442698@vcs2.savannah.gnu.org>
[not found] ` <20220113084927.707D2C0DA30@vcs2.savannah.gnu.org>
2022-01-13 10:41 ` Robert Pluim [this message]
2022-01-14 7:25 ` master c8a2af3037 1/3: Add new function function-alias-p Lars Ingebrigtsen
2022-01-13 15:39 ` Stefan Monnier
2022-01-14 7:28 ` Lars Ingebrigtsen
2022-01-14 16:10 ` Stefan Monnier
2022-01-15 8:18 ` Lars Ingebrigtsen
2022-01-15 14:39 ` Stefan Monnier
2022-01-20 9:54 ` Lars Ingebrigtsen
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=87sftr3olc.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
/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).