jwiegley / emacs-async

Simple library for asynchronous processing in Emacs
GNU General Public License v3.0
838 stars 68 forks source link

Don't assume the Emacs executable is "emacs" #40

Closed Malabarba closed 9 years ago

Malabarba commented 9 years ago

In the function async-start, the executable name is hardcoded as "emacs". While that certainly catches most usecases, if the user has more than one Emacs versions installed, there are various ways this could end up starting a different executable than the one currently in use.

Ideally, the function would use the same command that Emacs was invoked with. If that's not possible, then perhaps it should at least be configurable.

thierryvolpiatto commented 9 years ago

Artur Malabarba notifications@github.com writes:

In the function async-start, the executable name is hardcoded as "emacs".

It is not hardcoded to "emacs".

Ideally, the function would use the same command that Emacs was invoked with.

It does:

(file-truename (expand-file-name invocation-name invocation-directory))

Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997

Malabarba commented 9 years ago

I am so sorry. It was late and I confused the name with the program. Thanks for the reply.