From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alessandro Bertulli Newsgroups: gmane.emacs.help Subject: Re: PGTK+ warning Date: Sat, 19 Nov 2022 11:21:35 +0100 Message-ID: <87cz9jqm0b.fsf@gmail.com> References: <87tu308r0y.fsf@gmail.com> <87iljg6y5o.fsf@gmail.com> <87fsekw7rc.fsf@dataswamp.org> <87cz9ow0n1.fsf@gmail.com> <87fsekulgc.fsf@dataswamp.org> <87y1saa5e9.fsf@gmail.com> <87cz9m4gun.fsf@dataswamp.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="27782"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.11; emacs 29.0.50 Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 19 11:26:28 2022 Return-path: Envelope-to: geh-help-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 1owL3M-00072w-9P for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 19 Nov 2022 11:26:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owL2e-0006ye-Hs; Sat, 19 Nov 2022 05:25:44 -0500 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 1owL2c-0006yV-Vj for help-gnu-emacs@gnu.org; Sat, 19 Nov 2022 05:25:43 -0500 Original-Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owL2U-0005q7-Rg for help-gnu-emacs@gnu.org; Sat, 19 Nov 2022 05:25:42 -0500 Original-Received: by mail-ed1-x529.google.com with SMTP id i29so2774795edj.11 for ; Sat, 19 Nov 2022 02:25:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=rWWk+q7alDZbcTD/KABU6Vkb0/uMZmxucWJHu6eJlVU=; b=LGEl0P6Fh4KmN5mgFYhGMskafFaUHb3fd58v5CpUJ2J2eW5uJpiXa4k2MEZ7XOrUS1 YUwxeQNV3G9RXLXHaVYfDqILCzziLm1uMs8YgntmWg/wk/MWvdT8MxgJsw0JLDw/Vusn fyvX3Qz/4IXIJyAfhWtlx0jrKJoenc/Cjg92oBLX+Nw2pmiNxvvaUjmiJm5z8txaTdDC vcDulykhzO9jCWeoS/PEV/2Dls5ZBEF3sMNbZxOcEmEEDart2oSxBn+7ayVTbNj6n485 4cecNmnFcIfgrbykkhJAjhq+Q2AHiPSTgIufzRY6gx98H1K71ly0qz7GWaoGRJDDcv8A GrkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rWWk+q7alDZbcTD/KABU6Vkb0/uMZmxucWJHu6eJlVU=; b=OaJXJ402n8EQ16Jzt7dd2T5kK3PTeRSR3vkI4f+UH4OkTZmwbMJP3HCtGszycL/C6V 79S9PXrwoq0M23j6wodvBUrXM0XaDIpr+cX83NaYFWb8JNnnfXG0dYSS0RwBpgcjZTpr enJeviELtvcgqLavsG2c00UUP3FecSQIxEuugkpo3N4W9JTpU8LZmftWPJ/qVf5NkvzY d3+Uwf3iqJUbQoTC51kh2W8XPVnlRWtXBLPhoBPQYVYoqvRGmRExNaZYAyWLyt+9d58J urJLQOntYPczbxYAq8SkBE5rrk3nwrFKOJGUUARUQS0F9IL7zw3V3iorx32q+WLkwSV2 kC4Q== X-Gm-Message-State: ANoB5pkqxXEe5H0rJJPoEgCX1fvnmT+Gb07SJpn52ZhSk1wbSi/+e4VK Ht9Ps9IACmvW4TxQt9+vWv4bnE+gO+o= X-Google-Smtp-Source: AA0mqf6JZGJ9JuLKpKSRRCQ81boWG7vym1XZhzAAtllzGoTGNTbAz1nfSiPwqTXiBNt4XiECLdVy5Q== X-Received: by 2002:a05:6402:1f03:b0:468:7be6:55e7 with SMTP id b3-20020a0564021f0300b004687be655e7mr9238280edb.345.1668853526994; Sat, 19 Nov 2022 02:25:26 -0800 (PST) Original-Received: from commodoroII ([2001:b07:646e:446c:91c2:925b:a413:8a45]) by smtp.gmail.com with ESMTPSA id s16-20020a056402015000b00461816beef9sm2785158edu.14.2022.11.19.02.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Nov 2022 02:25:26 -0800 (PST) In-reply-to: <87cz9m4gun.fsf@dataswamp.org> Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=alessandro.bertulli96@gmail.com; helo=mail-ed1-x529.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141054 Archived-At: Emanuel Berg writes: > I realized you can simply use `remove-hook' to remove your > addition to it :) Yap, this together with the one-umbrella-function approach should do the trick, thanks! I wonder: - Is this the same approach used by use-package? - Are there any shortcomings in having a single function in the hook? maybe for debugging purposes. I'd say no, since actually you can instrument a single function to debug, it becomes even simpler, and there aren't really other reasons, are they? -- Alessandro Bertulli