unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Lennart Borgman" <lennart.borgman@gmail.com>
To: "Sven Joachim" <svenjoac@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: no executable emacs binary in exec-directory
Date: Sat, 29 Nov 2008 14:55:21 +0100	[thread overview]
Message-ID: <e01d8a50811290555m569d13fasa7975e1d4842db29@mail.gmail.com> (raw)
In-Reply-To: <e01d8a50811290541p7659ea5dy4855d142c3e0cb66@mail.gmail.com>

On Sat, Nov 29, 2008 at 2:41 PM, Lennart Borgman
<lennart.borgman@gmail.com> wrote:
> On Sat, Nov 29, 2008 at 2:23 PM, Sven Joachim <svenjoac@gmx.de> wrote:
>> On 2008-11-29 14:00 +0100, Lennart Borgman wrote:
>>
>>> I thought that the currently running emacs binary should be in
>>> exec-directory. That does not seem to be the case always.
>>
>> Actually, on GNU/Linux this should never be the case.
>>
>>> How do you find it?
>>
>> It is in invocation-directory, and its name is invocation-name.
>
> Thanks. Is this then the way to find the executable?
>
> (defun ourcomments-find-emacs-executable ()
>  (let ((exec-path (list invocation-directory)))
>    (executable-find invocation-name)))

Hm, this looks better, but I wonder about the "1".

(defun ourcomments-find-emacs ()
  (locate-file invocation-name
               (list invocation-directory)
               exec-suffixes
               1 ;; Depreceated, but used in executable-find
               ))




  reply	other threads:[~2008-11-29 13:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-29 13:00 no executable emacs binary in exec-directory Lennart Borgman
2008-11-29 13:23 ` Sven Joachim
2008-11-29 13:26   ` Juanma Barranquero
2008-11-29 13:46     ` Stephen J. Turnbull
2008-11-29 13:48       ` Lennart Borgman
2008-11-29 13:46     ` Sven Joachim
2008-11-29 14:51       ` Juanma Barranquero
2008-11-29 13:41   ` Lennart Borgman
2008-11-29 13:55     ` Lennart Borgman [this message]
2008-11-29 19:59       ` Stefan Monnier
2008-11-30  0:38         ` Lennart Borgman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a50811290555m569d13fasa7975e1d4842db29@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=svenjoac@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).