From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 23264@debbugs.gnu.org, Eli Zaretskii <eliz@gnu.org>,
Drew Adams <drew.adams@oracle.com>
Subject: bug#23264: 25.0.90; `C-h f' (`describe-function'): "This function has a compiler macro"
Date: Fri, 13 May 2022 17:59:13 +0200 [thread overview]
Message-ID: <87r14x1l0u.fsf@gnus.org> (raw)
In-Reply-To: <jwvczghh6am.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 13 May 2022 10:20:17 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> 1- If it includes a link to the compiler macro. Admittedly, compiler
> macros are supposed to be placed directly inside the `declare` of the
> function, so you can get there via the usual link to the function's
> definition, which makes this link's usefulness rather marginal.
> (except in theory for those rare exceptions where the compiler macro
> is not provided via `declare`, but to be honest, I can't think of any
> and `grep` couldn't find any either).
There's this:
(put 'featurep 'compiler-macro
(lambda (form feature &rest _ignore)
;; Emacs-21's byte-code doesn't run under XEmacs or SXEmacs anyway, so
;; we can safely optimize away this test.
(if (member feature '('xemacs 'sxemacs 'emacs))
(eval form)
form)))
But that's not a symbol, so Emacs won't offer up a button for it. But
it is indeed extremely rare.
> 2- It warns that advice and (more generally) redefinitions of this
> function may not be obeys at all call sites.
Hm, yes, that can be handy to know.
> Point 1 is quite weak.
> Point 2 is a bit more interesting but then we should say so more
> explicitly and (more importantly) we should also say so for those
> functions which have the same property but for other reasons (e.g. they
> have their own byte-code, or they have a `byte-compile` or
> `byte-optimizer` property).
>
> IOW, I agree but maybe it would be a good idea to replace it with
> a better message that covers this and similar cases warning about
> applicability of `advice`.
Do you have any suggested text? 🙃
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2022-05-13 15:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-10 18:47 bug#23264: 25.0.90; `C-h f' (`describe-function'): "This function has a compiler macro" Drew Adams
2022-05-13 13:00 ` Lars Ingebrigtsen
2022-05-13 14:20 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-13 15:59 ` Lars Ingebrigtsen [this message]
2022-05-13 17:49 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-14 2:09 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r14x1l0u.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=23264@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
--cc=eliz@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.