From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Nordin Newsgroups: gmane.emacs.bugs Subject: bug#72915: Docstrings of add-hook and remove-hook improvement? Date: Sun, 15 Sep 2024 11:17:55 +0000 Message-ID: <87ldztmaho.fsf@posteo.net> References: <87v7zgrhrt.fsf@posteo.net> <86y14c9dk3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18229"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72915@debbugs.gnu.org To: Stefan Kangas , Stefan Monnier , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 15 13:19:12 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1spnHb-0004dq-Tu for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Sep 2024 13:19:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spnHK-0007Mm-CR; Sun, 15 Sep 2024 07:18:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spnHH-0007MU-5c for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2024 07:18:51 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1spnHG-0002RY-St for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2024 07:18:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=93ysLdQMo24slHIK+wGWWHDCA4qrUn2N4kRxoeAbOpQ=; b=V6BmuOse2TwaWIKslVnVUdCHAKhkjLbMYhZBRKamB/FPsXBlcs9WmLHnlBb3mHVzn4VGH39YClMXWce9UE7N9H4RqLRTcZHJOQfDs0COdzx0AvoofqU/5t2IRbIGtrMCELdj/JFp27yu0gtzOdGk+zjtzC+4Oq/kX/lDV+y5pc1sW4zzoH7BmIXgTRt4XOEuvIkhiHlraDIOOH2rjaB8vqVjP4KsdfuTBn8cZeT4nIq7XUE2HTBM1p0jYqtk0k9xbwAJAXioBgl7dX6YOzF7m/Jqp9HOvC2b7ac8gEQIlkfg7xB1LTSlI0sBuPcAMj+Ttma31KjzWke/f9btqRO0+w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spnHS-0005qL-AH for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2024 07:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tomas Nordin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Sep 2024 11:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72915 X-GNU-PR-Package: emacs Original-Received: via spool by 72915-submit@debbugs.gnu.org id=B72915.172639909822404 (code B ref 72915); Sun, 15 Sep 2024 11:19:02 +0000 Original-Received: (at 72915) by debbugs.gnu.org; 15 Sep 2024 11:18:18 +0000 Original-Received: from localhost ([127.0.0.1]:48517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spnGk-0005pH-A4 for submit@debbugs.gnu.org; Sun, 15 Sep 2024 07:18:18 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:32933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spnGi-0005p2-0X for 72915@debbugs.gnu.org; Sun, 15 Sep 2024 07:18:17 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3FF4B240028 for <72915@debbugs.gnu.org>; Sun, 15 Sep 2024 13:17:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1726399078; bh=2xo/VPnlwNig0+6RP58QwgFjwgW033X0XKzolHJPFhk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=sIZ9QnjFoEFxbjN/3iAR3pXKorZfUfcAreuKh5AZIDP70Et264aUoj924j49kt5bS Yz7RXZzEI1gQVBYoYqgalTPi1kZ2J2V87V9/jkSDySLi8je1oH2KjjkMjkKN2wSN5f Zpz5CFaKx4aPdwmmS5u5+wO2Y5fmVkXJRb0LBmrheJypPF4iLURyZAQpa4Q13w3sHi Kdan/qJ7RarJ7JSNoanjmvOQYgjLx+ELyJHhOn9NaypqrMcYcvSO0lXRCqBBJNdYy4 RrYROiYmFIJGvFysb5Fcdot2FOBGPRs2L1eB0GVmFMs5DVyVEHxirXR1/g7yXLrq2x ubhCSDqUxVP4w== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X65BD3tyKz9rxD; Sun, 15 Sep 2024 13:17:56 +0200 (CEST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291846 Archived-At: Stefan Kangas writes: > Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of > text editors" writes: > >> Something like: >> >> "Remove FUNCTION from HOOK's functions. >> HOOK should be a symbol, and FUNCTION may be any valid function. >> Does nothing if HOOK does not currently contain FUNCTION. >> Compares functions with `equal`, which means that it can be >> slow if FUNCTION is not a symbol. See `add-hook'. > > Ah, now I see that you posted this proposal. This is a better start > than what I had. > > Should we install it? This is about the doc of remove-hook. What about the edits in the add-hook docstring, was that OK? There was a question on the bit about setting the HOOK to nil, but I think that was sorted out.