[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21563: 24.5; discourage load-hook variables
From: |
Roland Winkler |
Subject: |
bug#21563: 24.5; discourage load-hook variables |
Date: |
Fri, 25 Sep 2015 13:57:21 -0500 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#21563: 24.5; discourage load-hook variables,
Roland Winkler <=