From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#72915: Docstrings of add-hook and remove-hook improvement? Date: Sat, 14 Sep 2024 19:24:11 -0400 Message-ID: References: <87v7zgrhrt.fsf@posteo.net> <86y14c9dk3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37995"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tomas Nordin , 72915@debbugs.gnu.org To: Stefan Monnier , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 15 01:26:09 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 1spc9Y-0009jK-VU for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Sep 2024 01:26:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spc9M-0003xU-5c; Sat, 14 Sep 2024 19:25:56 -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 1spc9I-0003wn-6y for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 19:25:54 -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 1spc9H-0003BD-Ub for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 19:25:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=xAo0C63zfyW6VOWUd3f5nat1pqHpnFkpuWl5UxqdHAQ=; b=km6veuJP6UztV1IJ+zpNC66LlUng19w14r1H3iH+iu9wYGtqK2mM2Utu1ovO4GtYH+H3IPxSBtJVhhZvhJ65J/mczdjXJ56TPmDH5xkcRxBoRNIX5tDZTbxAbsThloHw7MM+evNnodzdSQdickVcGwC0x6I9QyfS8W7qmp+9PcQQ3l9ojQAaMNTekOD1EL6kgjTXVy26nOEJZx6v++DzBBJ6vprB3STJH3YZzhOxviKCqsIZdOJJA1xZFXB+0DD8F/xAyFZ8M2vo7FtGkXjvalTVwWcYt+ffCX+tWpgOw32nBlBOrU5ND/WlkCjaCfNSkPIOE0fhgXiMLNa5LMnkJQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spc9S-0007R1-JF for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 19:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Sep 2024 23:26: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.172635633228532 (code B ref 72915); Sat, 14 Sep 2024 23:26:02 +0000 Original-Received: (at 72915) by debbugs.gnu.org; 14 Sep 2024 23:25:32 +0000 Original-Received: from localhost ([127.0.0.1]:47952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spc8y-0007Q7-03 for submit@debbugs.gnu.org; Sat, 14 Sep 2024 19:25:32 -0400 Original-Received: from mail-ej1-f53.google.com ([209.85.218.53]:61507) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spc8v-0007Po-5u for 72915@debbugs.gnu.org; Sat, 14 Sep 2024 19:25:30 -0400 Original-Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a8d100e9ce0so391397766b.2 for <72915@debbugs.gnu.org>; Sat, 14 Sep 2024 16:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726356252; x=1726961052; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=xAo0C63zfyW6VOWUd3f5nat1pqHpnFkpuWl5UxqdHAQ=; b=ZXzJdbV3xR64q8Fa7O6zQsZKtK1VOIHg2cUcGdYo1zDejTYYmx3onoEeRB9Tq8vSPe JoEK0V80JVR0SnWyn12lSlZAZ1FTUPfiW+30NOv7iRxAZjWahSpKMeWn+m2Nl9h+54Ce 9IlxGMgPa/Wh3r1LgLWe55HvWwJsGpJApvCjK0eZTeStkbrboBnqeXJtrK243kqMbGc5 t714n1kerlkyxetGy57OIOCKoEGhtV6TxzG+rMZc4rSjYZ6h03QKwE0S/SUUNRSOpulJ HhdSjLDWFte32XIRTjHHbWSEAdcrVCKVhElAW2OYyX/ivyqVh1WUxv0o5WCWAHhdNX8J KlkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726356252; x=1726961052; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xAo0C63zfyW6VOWUd3f5nat1pqHpnFkpuWl5UxqdHAQ=; b=F+4J2AIJpgijnPTyhFQz5nb5EQJFcO2dqF58hS2d72b0H4DaVAtw4bhz9DxqUIWtt9 84MEm8gdjKwmoYQosHpNiMc8IKs0J52PJ+ZGj/pMPEpL2wwEtK9ch/bwe+ECGdtNdpGx SXIie1bEYOeJcHbjKT0oPT1FALLD9qx6j7c3o945BknU5u3+a3TtGYaVDrl+oq7AB+2u 233V6xVw1lgQTeYb4Uyqx6xgCyYhmm5HfH7hk5onmkVHgLcr3edEYa69Hj6jwh+T6UGa f0Xn22guP1cpEAoEcVDL248PpwT+w45BIE95UHjb9cWyuWvttm33jSw7G5GF/rWznxbK E+Dw== X-Forwarded-Encrypted: i=1; AJvYcCWST/la6zOfT9VrN3A2geVQC2q+PnaVWWh0DtmWxA7a+Z6U9on9DQXDmawz5ZHAHvC/yBVbpA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyAltLaWx6JhHKuFVa71m+JAUulCwgp9NmODYWL7vavOeHTzvrE gh5A2A1+qLWHXqdehpq+sWnD8HqPLXbdYmAU5BJ7Men6hMOrjn6MvfcLg/XQYgw2yFMwa9Xzm1P 1ekyhSRuSxiTJM8ny81stNumXvwE= X-Google-Smtp-Source: AGHT+IGtDyulvUhqq9umKvvNQvnJQe/di76LEDCfjW6EzLxdH5oLg7ajPWBHWQ9DZg9QY/qLpTAxPxRokvpAHuyksM0= X-Received: by 2002:a17:907:c88f:b0:a86:8e3d:86e2 with SMTP id a640c23a62f3a-a902941dc57mr1025688366b.11.1726356251732; Sat, 14 Sep 2024 16:24:11 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 14 Sep 2024 19:24:11 -0400 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:291812 Archived-At: 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?