Skip to content

Conversation

@dadinn
Copy link

@dadinn dadinn commented Aug 24, 2025

This PR has exactly the same content as #21.

The only difference here is that the merged commits have been rebased and fast-forwarded instead, to make the main branch look cleaner, and not littered with merge commits.

I've ensured the commit information is preserved as much as possible, such that the work from @abougouffa to merge the features is correctly addressed and dated.

Refs

#11
#15
#18
#19

nverno and others added 5 commits July 15, 2024 20:24
When building systemd.el with async native compile, we can't rely on
`load-file-name`, so fall back to the native relative path lookup performed
in `insert-file-contents`.

native-compile-async runs compilation in a subprocess launched by loading
an elisp program from a temporary file:

(native-compile-async "/home/phil/.emacs.d/systemd/systemd.el")
=> invokes
emacs --batch -l /tmp/emacs-async-comp-systemd-BZ3kNs.el

Inside the subprocess, `load-file-name` is
/tmp/emacs-async-comp-systemd-BZ3kNs.el instead of .../systemd/systemd.el and
the local txt resource files (unit-directives.txt etc) aren't resolvable from
/tmp.
This will allow other completion at point functions to run to autocomplete things like file path. Figured this out from minad/cape#24
@abougouffa
Copy link

Great! Thank you @dadinn, I hope this gets merged soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants