Skip to content

Conversation

@abougouffa
Copy link

Hello!

Thank you for this package.

I've been using your package for a while and I faced some issues. I tried to fix some of them until I found that they are basically solved in open MRs.

I've merged them in my fork so I can use a bug-free systemd-mode, and I thought maybe I can open a MR so you can merge them all at once.

Refs

#11
#15
#18
#19

nverno and others added 9 commits July 22, 2019 00:48
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
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.

5 participants