GNU bug report logs -
#25163
26.0.50; Unable to access `user-emacs-directory' (~/.emacs.d/)
Previous Next
Reported by: emacs18 <at> gmail.com
Date: Sun, 11 Dec 2016 03:37:01 UTC
Severity: minor
Found in version 26.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Noam Postavsky <npostavs <at> gmail.com> writes:
> So, taking another look at this, the warning *is* currently delayed
> until after init time (as are all warnings occuring before init time).
> The problem is, delayed warnings are displayed just after init time,
> which is just before --eval args are executed. Maybe we should have
> --early-eval to go along with ~/.emacs.d/early-init.el? Or maybe just
> require suppressing this warning via site-start.el. The patch below
> makes that possible (maybe the first hunk isn't really needed, and we
> should just remove the user-emacs-directory-warning option in favour of
> setting warning-suppress-log-types instead):
[...]
> +(defvar warning-suppress-log-types) ; `warnings.el'.
> +(defun maybe-suppress-user-emacs-directory-warning ()
> + "Apply `user-emacs-directory-warning' suppression."
> + (unless user-emacs-directory-warning
> + (add-to-list 'warning-suppress-log-types '(initialization user-emacs-directory))))
> +(add-hook 'after-init-hook #'maybe-suppress-user-emacs-directory-warning)
I tried applying the patch to Emacs 28, but it doesn't seem to fix the
problem -- I still get the warning about the directory not existing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 109 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.