From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#21563: 24.5; discourage load-hook variables Date: Fri, 25 Sep 2015 13:57:21 -0500 Message-ID: <39185.7955.374134.22021@gargle.gargle.HOWL> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1443207684 3100 80.91.229.3 (25 Sep 2015 19:01:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 19:01:24 +0000 (UTC) To: 21563@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 25 21:01:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZfYF4-0003SQ-Pl for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 21:01:10 +0200 Original-Received: from localhost ([::1]:50024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfYF4-0001ly-7d for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 15:01:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfYF1-0001lj-11 for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 15:01:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfYEw-0004Fj-2M for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 15:01:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfYEw-0004FZ-0D for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 15:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZfYEv-0005Pn-Rm for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 15:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2015 19:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21563 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144320763720777 (code B ref -1); Fri, 25 Sep 2015 19:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Sep 2015 19:00:37 +0000 Original-Received: from localhost ([127.0.0.1]:43785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfYEX-0005P3-Dw for submit@debbugs.gnu.org; Fri, 25 Sep 2015 15:00:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57462) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfYEW-0005Ow-Ge for submit@debbugs.gnu.org; Fri, 25 Sep 2015 15:00:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfYEU-0003a8-Ss for submit@debbugs.gnu.org; Fri, 25 Sep 2015 15:00:35 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfYEU-0003Zz-Pl for submit@debbugs.gnu.org; Fri, 25 Sep 2015 15:00:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfYET-0001Zx-Gu for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 15:00:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfYEN-0003T2-Ki for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 15:00:32 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfYEN-0003NE-9m for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 15:00:27 -0400 Original-Received: from [131.156.157.22] (port=39021 helo=lukas) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZfYB2-0002b1-NH for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 14:57:01 -0400 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106915 Archived-At: Somewhere in my emacs init file I was setting the variable dired-load-hook. (I guess I wrote this code years ago when I did not know much about emacs.) Yet suddenly this did not work for me anymore, as I had rearranged my init file so that dired got loaded before I was setting dired-load-hook. I suggest to discourage the usage of any such load-hook variables: I believe eval-after-load is considered to be the cleaner alternative: it does not give rise to the type of problems I ran into. Also it does not require user variables for each package. (Apropos gives me the variables align-load-hook, cal-menu-load-hook, calendar-load-hook, dired-load-hook, ediff-load-hook, and table-load-hook. There might be more.) In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2015-05-29 on lukas Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.3 LTS