You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes when quitting Emacs while native compilation is running, it will leave
one or more *.eln files behind with a size of zero bytes. These files will
prevent Emacs from launching until they're deleted either manually, or via the
suggested configuration snippet above in the Configuration section.
Currently I work around this issue by finding and deleting any *.eln files in
my eln-cache directory at startup, along with also setting a custom eln-cache
directory:
(when (boundp'comp-eln-load-path)
(let ((eln-cache-dir (expand-file-name"cache/eln-cache/"
user-emacs-directory))
(find-exec (executable-find"find")))
(setcar comp-eln-load-path eln-cache-dir)
;; Quitting emacs while native compilation in progress can leave zero byte;; sized *.eln files behind. Hence delete such files during startup.
(when find-exec
(call-process find-exec nilnilnil eln-cache-dir
"-name""*.eln""-size""0""-delete""-or""-name""*.eln.tmp""-size""0""-delete"))))
The text was updated successfully, but these errors were encountered:
Recent builds seem to create zero-sized *.eln.tmp files instead of *.eln files, meaning their existence do no prevent Emacs from starting. But they can still get left behind in some situations, so I've updated the config snippet to trash both *.eln and *.eln.tmp files with a size of zero bytes.
Recent builds seem to pre-allocate empty `*.eln.tmp` files rather than
empty `*.eln` files. So the issue of empty `*.eln` files preventing
Emacs from starting should no longer be an issue.
I'm leaving #3 open for now, in case anyone is using older git SHAs from
the list of known good commits in #6.
Sometimes when quitting Emacs while native compilation is running, it will leave
one or more
*.eln
files behind with a size of zero bytes. These files willprevent Emacs from launching until they're deleted either manually, or via the
suggested configuration snippet above in the Configuration section.
Currently I work around this issue by finding and deleting any
*.eln
files inmy eln-cache directory at startup, along with also setting a custom eln-cache
directory:
The text was updated successfully, but these errors were encountered: