[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#54381: 29.0.50; Automatically load custom-file
From: |
Lars Ingebrigtsen |
Subject: |
bug#54381: 29.0.50; Automatically load custom-file |
Date: |
Mon, 14 Mar 2022 10:48:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> This isn't really feasible -- it'll lead to the custom file being loaded
> twice for everybody that currently have a
+ ;; make sure that you get the expanded custom-file name
+ ;; because that's what appears in `load-history'
+ (let ((real-custom-file (expand-file-name custom-file)))
+ ;; if it was loaded, assoc will return non-nil
+ (unless (assoc real-custom-file load-history)
+ (load real-custom-file))))
Oops, I should have read the entire patch before answering... so if
it's already loaded, it won't be reloaded. So perhaps this is feasible
after all?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#54381: 29.0.50; Automatically load custom-file, Pedro Andres Aranda Gutierrez, 2022/03/14
- bug#54381: 29.0.50; Automatically load custom-file, Lars Ingebrigtsen, 2022/03/14
- bug#54381: 29.0.50; Automatically load custom-file,
Lars Ingebrigtsen <=
- bug#54381: 29.0.50; Automatically load custom-file, Eli Zaretskii, 2022/03/14
- bug#54381: 29.0.50; Automatically load custom-file, Robert Pluim, 2022/03/14
- bug#54381: 29.0.50; Automatically load custom-file, Pedro Andres Aranda Gutierrez, 2022/03/14
- bug#54381: 29.0.50; Automatically load custom-file, Robert Pluim, 2022/03/14
- bug#54381: 29.0.50; Automatically load custom-file, Pedro Andres Aranda Gutierrez, 2022/03/14
- bug#54381: 29.0.50; Automatically load custom-file, Robert Pluim, 2022/03/14
- bug#54381: 29.0.50; Automatically load custom-file, Pedro Andres Aranda Gutierrez, 2022/03/15
bug#54381: 29.0.50; Automatically load custom-file, Robert Pluim, 2022/03/14
bug#54381: Handling a corner case, Pedro Andres Aranda Gutierrez, 2022/03/17