From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.bugs Subject: bug#47992: 27; 28; Phase out use of `equal` in `add-hook`, `remove-hook` Date: Thu, 08 Jul 2021 04:11:58 +0200 Message-ID: References: <87mttdh57n.fsf@gnus.org> <877di6udfy.fsf@web.de> <87wnq6opfo.fsf@gnus.org> <875yxqrekx.fsf@web.de> <87sg0uokh8.fsf@gnus.org> <87eece66tc.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30686"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: jakanakaevangeli@chiru.no, michael_heerdegen@web.de, mail@daniel-mendler.de, 47992@debbugs.gnu.org, monnier@iro.umontreal.ca, larsi@gnus.org To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 08 04:13:11 2021 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 1m1JXK-0007md-2J for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Jul 2021 04:13:10 +0200 Original-Received: from localhost ([::1]:55340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1JXI-00016d-6X for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Jul 2021 22:13:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1JXC-00016E-2G for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 22:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42359) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1JXB-0000i7-RM for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 22:13:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m1JXB-0002Hl-Kk for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 22:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Jul 2021 02:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47992 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 47992-submit@debbugs.gnu.org id=B47992.16257103298723 (code B ref 47992); Thu, 08 Jul 2021 02:13:01 +0000 Original-Received: (at 47992) by debbugs.gnu.org; 8 Jul 2021 02:12:09 +0000 Original-Received: from localhost ([127.0.0.1]:53905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1JWL-0002Gd-A1 for submit@debbugs.gnu.org; Wed, 07 Jul 2021 22:12:09 -0400 Original-Received: from mail-oln040092074101.outbound.protection.outlook.com ([40.92.74.101]:45792 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1JWI-0002G7-5y for 47992@debbugs.gnu.org; Wed, 07 Jul 2021 22:12:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E9KF3OkbyJ5UOf5jiOL+musuEZ3kGTtnrIiFdL8YxpFZTIwyPRMVIPQnjiXKC+OBr3hePeYcBPL9mSuXhR3KNmYgdcJewYMwl/ArXz+QSELcLh6jS3I5mLgy154PFbVQSkj82B8H0iM0ne5y4Bb976OSgdkfnNQCkNpzIuSi6U6vOPRGWfcOpQTGq9I8d/LD5sup3rqXeZUNuK8vksx74s7ZvwscsF0tGOondNSC/H5l+LN2xqMbq/BK0uA4AgOJ6otpTR/vqHEO2GsEibzEjq7uV6wB+4HLO+OvwvjuxAVRQuzBS2a+h6TlzwDqCFdu9fgl1qNSrXrlmAKw8C4SWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VE9Les8S4NWA4LR6XeAxvqvxELYf5TMiBJzYQuSO9f4=; b=IHf/7rbIYbxppmbLDzas+mzaaZHryGLtZY8MUMzMEgxWEbIk3Jjgb8OwQ7aT3voVg9/NlhZ9RI+kvjoX5nGfdj5xm3dX+aAL77WetwkO7GRN5Qe49p06L5eKGO4+mTjkFkih+JTHEECcoz7/YK5Zd9RQjsfqLMr0IGDqV0HGTwlrmonUM1725xV+0px9xZGXgO2x1VPGonynGdDBq4oKKda/ziJTmerfoBEgvDuB0iksu3OqciE+pnxBgpzOaJoYTjhGT0zBizNxxHG8v3qqGnPITK8hJqPLWeV6H1ij+F+koE55sd9bkQa5dMYk+oV8i80/O5r069mN0CeIQ5HzyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VE9Les8S4NWA4LR6XeAxvqvxELYf5TMiBJzYQuSO9f4=; b=F1RIaFaopSSbr8iioZqsdE+E12Y28SuuLpafgyEbUgz4EEpmidjfucSVLUqc5aKADNh9WFi1TsL9r8Fys8oJaolok91QOaqpW8tFdgKz/IL/nSvBWhvXUSgspo8jbcWer61ND1FPOQ7lW0GOxLZBTIm2DLw/VKVWTyjnDxO1pG2NzdWBHf0cLrEpGfsne3T6YQBUeJFi4iIMqcUp05s54nhybCo2HpwgiG7EFVylcKitkbwzU6TRza5+uru0ZrxFKOI2mKceGF4+oOi09SrhzG09gFdcnoasOJ+6yTGvxgBuNLWTtYSQk5v9RctjTNHvzX8D0Y6puK/k+N/f0ufZEQ== Original-Received: from DB3EUR04FT043.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::48) by DB3EUR04HT236.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20; Thu, 8 Jul 2021 02:12:00 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e0c::48) by DB3EUR04FT043.mail.protection.outlook.com (2a01:111:e400:7e0c::452) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20 via Frontend Transport; Thu, 8 Jul 2021 02:11:59 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:77673C06361BF92C06199232F4F4851A9E8891FE91E63D2E84D49EAEB2A6D4F4; UpperCasedChecksum:F5640F2F8CDB2031F8F2CAD2A0805C647C88DD42F5EEABF14A8AE581146FF5EE; SizeAsReceived:7919; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::656a:1596:f5dc:12ea]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::656a:1596:f5dc:12ea%9]) with mapi id 15.20.4308.022; Thu, 8 Jul 2021 02:11:59 +0000 In-Reply-To: (Richard Stallman's message of "Wed, 07 Jul 2021 19:57:55 -0400") X-TMN: [TAcuzmGxq65dRfKKisuRpICoPqf8WG5z] X-ClientProxiedBy: AM7PR02CA0018.eurprd02.prod.outlook.com (2603:10a6:20b:100::28) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87mtqx8sgh.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM7PR02CA0018.eurprd02.prod.outlook.com (2603:10a6:20b:100::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20 via Frontend Transport; Thu, 8 Jul 2021 02:11:58 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 30b1cd2f-decc-4b56-f805-08d941b5c477 X-MS-TrafficTypeDiagnostic: DB3EUR04HT236: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0QGRRgZKfe6YdPDkHKjY2SdzpDyDFshqN5ErA0++AnMbXZSURVDBJcXYOtECeCRhHNzSNfWfrPIFrJfL+cfsqpPccm0Qlu8omYvigguQIfQlbmORwQqksaJAJ/o7T0gd6zZ0Iyyb5q+2H2RVGEZ+n8b1JQG14p1YWcBS1lTpfodfo91C49P4E25fGzVBelVvJ67nPGJnVV6wY3HuqihZjYiOVoI/Ep7ojHDcUuK5mqojbIVokPMqfE2PE+Ew1IAY1/6W50t9xC1DDBdN1QTFrS2wfYln0MX4MR2dRjJst3lj2pe4+sxIQRi3LxURGxDOIYEE6sEa5cmqWv7I+BuW96LQlTQLCkBThcz41ZR3a7J4ntmUJG8pMawKBkEAfuqjmQExtEDregg3gSdc8nLhSXrXPwXzIXAoIKAU4vA/NvBHb1W7p4EaUYLGJm3N5D1i X-MS-Exchange-AntiSpam-MessageData: gsFE+3WrKSxbvnAld9Z2X6VGx532U/xdzNqpoehR70r/IKyCGFSYmpPtJj2kI94QNz0utm6ACMhU7/oLm1CkeCwIlzWHa0DCrImB4BJZqA3xBg5mvMU0iUB6jdPOvBeZr45kilO9bB+kfud3RzFjFw== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 30b1cd2f-decc-4b56-f805-08d941b5c477 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2021 02:11:59.5427 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB3EUR04FT043.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3EUR04HT236 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" Xref: news.gmane.io gmane.emacs.bugs:209651 Archived-At: Richard Stallman writes: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > If they are equal, why do they need to be distinguished? > > If file A adds such a hook, then file B adds one that is the same, > then you unload file B, testing for "the same hook" would > leave none. But A won't work right without its hook. > > My scheme would put on two distinct but equivalent hooks, > then delete one of them, leaving the other in place. > In some cases, that's what you want. Ok, I understand now. Yes, indeed, put name tag would be one solution to the problem. It trades memory for cpu time.