From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#21563: 24.5; discourage load-hook variables Date: Wed, 15 Jan 2020 18:27:57 -0600 Message-ID: <44557.57231.795451.24095@gargle.gargle.HOWL> References: <39185.7955.374134.22021@gargle.gargle.HOWL> <87tv4w1poj.fsf@marxist.se> <87zheozc1s.fsf@marxist.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="17416"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 21563@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 16 01:29:13 2020 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 1irt28-0004V8-Uu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Jan 2020 01:29:12 +0100 Original-Received: from localhost ([::1]:34520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irt27-0007MV-Sa for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Jan 2020 19:29:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58922) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irt1y-0007MI-UD for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2020 19:29:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irt1x-0000vT-Vv for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2020 19:29:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58770) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1irt1x-0000vJ-SU for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2020 19:29:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1irt1x-0000cZ-Pu for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2020 19:29:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Jan 2020 00:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21563 X-GNU-PR-Package: emacs Original-Received: via spool by 21563-submit@debbugs.gnu.org id=B21563.15791344872320 (code B ref 21563); Thu, 16 Jan 2020 00:29:01 +0000 Original-Received: (at 21563) by debbugs.gnu.org; 16 Jan 2020 00:28:07 +0000 Original-Received: from localhost ([127.0.0.1]:36510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1irt15-0000bM-6b for submit@debbugs.gnu.org; Wed, 15 Jan 2020 19:28:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1irt13-0000aq-97 for 21563@debbugs.gnu.org; Wed, 15 Jan 2020 19:28:05 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1irt0y-0000PY-3F; Wed, 15 Jan 2020 19:28:00 -0500 Original-Received: from [2601:240:8300:d3d0:248b:bf11:be2e:5309] (port=58926 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1irt0x-0001OX-2G; Wed, 15 Jan 2020 19:27:59 -0500 In-Reply-To: <87zheozc1s.fsf@marxist.se> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:174685 Archived-At: On Wed Jan 15 2020 Stefan Kangas wrote: > Drew Adams writes: > > Setting or changing the explicit hook value has > > no effect if the library was already loaded, whereas > > `(with-)eval-after-load' has an immediate effect in > > that case. (Sure, the latter could test in its body > > whether it's loaded and act conditionally...) > > Good point. So it seems like load-hooks and eval-after-load are > slightly different and could both be useful. What is the benefit of being able to put something into a load-hook that will be ignored because the feature was already loaded? Is there a real-world example that can illustrate how this is useful?