From: Stefan Kangas <stefankangas@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>, Tomas Nordin <tomasn@posteo.net>,
Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 72915@debbugs.gnu.org
Subject: bug#72915: Docstrings of add-hook and remove-hook improvement?
Date: Sun, 1 Sep 2024 00:18:38 -0700 [thread overview]
Message-ID: <CADwFkmnbTbJKkg=w+xWqHTUJ7gNYK8wKN4TM5GtGDknndgiRNQ@mail.gmail.com> (raw)
In-Reply-To: <CADwFkmkLcKOAE3snjkgzS_yQNcq-LOrBcdRrD3pLPe7HzJRmAg@mail.gmail.com>
Stefan Kangas <stefankangas@gmail.com> writes:
> The wording in the manual is probably all that is needed here:
>
> This function removes FUNCTION from the hook variable HOOK.
BTW. Here's another idea:
If HOOK is a list of functions, remove FUNCTION from that list.
If HOOK is equal to FUNCTION, set HOOK to nil.
Otherwise do nothing.
next prev parent reply other threads:[~2024-09-01 7:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-31 12:36 bug#72915: Docstrings of add-hook and remove-hook improvement? Tomas Nordin
2024-08-31 22:35 ` Stefan Kangas
2024-09-01 4:57 ` Eli Zaretskii
2024-09-01 7:15 ` Stefan Kangas
2024-09-01 7:18 ` Stefan Kangas [this message]
2024-09-01 14:17 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-01 15:47 ` Tomas Nordin
2024-09-14 13:31 ` Stefan Kangas
2024-09-01 14:34 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-14 23:24 ` Stefan Kangas
2024-09-15 11:17 ` Tomas Nordin
2024-09-15 13:19 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-15 13:49 ` Tomas Nordin
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='CADwFkmnbTbJKkg=w+xWqHTUJ7gNYK8wKN4TM5GtGDknndgiRNQ@mail.gmail.com' \
--to=stefankangas@gmail.com \
--cc=72915@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=tomasn@posteo.net \
/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).