* no executable emacs binary in exec-directory
@ 2008-11-29 13:00 Lennart Borgman
2008-11-29 13:23 ` Sven Joachim
0 siblings, 1 reply; 11+ messages in thread
From: Lennart Borgman @ 2008-11-29 13:00 UTC (permalink / raw)
To: Emacs Devel
I thought that the currently running emacs binary should be in
exec-directory. That does not seem to be the case always. How do you
find it?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: no executable emacs binary in exec-directory
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:41 ` Lennart Borgman
0 siblings, 2 replies; 11+ messages in thread
From: Sven Joachim @ 2008-11-29 13:23 UTC (permalink / raw)
To: Lennart Borgman; +Cc: emacs-devel
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.
Sven
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: no executable emacs binary in exec-directory
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:46 ` Sven Joachim
2008-11-29 13:41 ` Lennart Borgman
1 sibling, 2 replies; 11+ messages in thread
From: Juanma Barranquero @ 2008-11-29 13:26 UTC (permalink / raw)
To: Sven Joachim; +Cc: Lennart Borgman, emacs-devel
On Sat, Nov 29, 2008 at 14:23, Sven Joachim <svenjoac@gmx.de> wrote:
> Actually, on GNU/Linux this should never be the case.
Not even when you build in place?
Juanma
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: no executable emacs binary in exec-directory
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
1 sibling, 1 reply; 11+ messages in thread
From: Stephen J. Turnbull @ 2008-11-29 13:46 UTC (permalink / raw)
To: Juanma Barranquero; +Cc: Lennart Borgman, Sven Joachim, emacs-devel
Juanma Barranquero writes:
> On Sat, Nov 29, 2008 at 14:23, Sven Joachim <svenjoac@gmx.de> wrote:
> > Actually, on GNU/Linux [emacs found in exec-directory should
> > never be the case.
>
> Not even when you build in place?
exec-directory is where emacs finds its bundled copies of utilities
like movemail and etags. When running-in-place, that's lib-src. So,
no. The emacs binary should be on $PATH, not in exec-directory.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: no executable emacs binary in exec-directory
2008-11-29 13:46 ` Stephen J. Turnbull
@ 2008-11-29 13:48 ` Lennart Borgman
0 siblings, 0 replies; 11+ messages in thread
From: Lennart Borgman @ 2008-11-29 13:48 UTC (permalink / raw)
To: Stephen J. Turnbull; +Cc: Juanma Barranquero, Sven Joachim, emacs-devel
On Sat, Nov 29, 2008 at 2:46 PM, Stephen J. Turnbull
<turnbull@sk.tsukuba.ac.jp> wrote:
> Juanma Barranquero writes:
> > On Sat, Nov 29, 2008 at 14:23, Sven Joachim <svenjoac@gmx.de> wrote:
>
> > > Actually, on GNU/Linux [emacs found in exec-directory should
> > > never be the case.
> >
> > Not even when you build in place?
>
> exec-directory is where emacs finds its bundled copies of utilities
> like movemail and etags. When running-in-place, that's lib-src. So,
> no. The emacs binary should be on $PATH, not in exec-directory.
I do not think that the emacs binary always should be on PATH. On w32
that is not usually the way to handle it.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: no executable emacs binary in exec-directory
2008-11-29 13:26 ` Juanma Barranquero
2008-11-29 13:46 ` Stephen J. Turnbull
@ 2008-11-29 13:46 ` Sven Joachim
2008-11-29 14:51 ` Juanma Barranquero
1 sibling, 1 reply; 11+ messages in thread
From: Sven Joachim @ 2008-11-29 13:46 UTC (permalink / raw)
To: Juanma Barranquero; +Cc: Lennart Borgman, emacs-devel
On 2008-11-29 14:26 +0100, Juanma Barranquero wrote:
> On Sat, Nov 29, 2008 at 14:23, Sven Joachim <svenjoac@gmx.de> wrote:
>
>> Actually, on GNU/Linux this should never be the case.
>
> Not even when you build in place?
Not even then, in this case emacs is built in src, while the helper
binaries live in lib-src.
Well, actually there is one possibility where invocation-directory is
the same as exec-directory: if you pass the same values for --bindir and
--libexecdir to `configure'.
Sven
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: no executable emacs binary in exec-directory
2008-11-29 13:46 ` Sven Joachim
@ 2008-11-29 14:51 ` Juanma Barranquero
0 siblings, 0 replies; 11+ messages in thread
From: Juanma Barranquero @ 2008-11-29 14:51 UTC (permalink / raw)
To: Sven Joachim; +Cc: Lennart Borgman, emacs-devel
On Sat, Nov 29, 2008 at 14:46, Sven Joachim <svenjoac@gmx.de> wrote:
> Well, actually there is one possibility where invocation-directory is
> the same as exec-directory: if you pass the same values for --bindir and
> --libexecdir to `configure'.
Aha. In Windows, these are both conflated into bin/.
Thanks (and Stephen, too).
Juanma
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: no executable emacs binary in exec-directory
2008-11-29 13:23 ` Sven Joachim
2008-11-29 13:26 ` Juanma Barranquero
@ 2008-11-29 13:41 ` Lennart Borgman
2008-11-29 13:55 ` Lennart Borgman
1 sibling, 1 reply; 11+ messages in thread
From: Lennart Borgman @ 2008-11-29 13:41 UTC (permalink / raw)
To: Sven Joachim; +Cc: emacs-devel
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)))
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: no executable emacs binary in exec-directory
2008-11-29 13:41 ` Lennart Borgman
@ 2008-11-29 13:55 ` Lennart Borgman
2008-11-29 19:59 ` Stefan Monnier
0 siblings, 1 reply; 11+ messages in thread
From: Lennart Borgman @ 2008-11-29 13:55 UTC (permalink / raw)
To: Sven Joachim; +Cc: emacs-devel
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
))
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: no executable emacs binary in exec-directory
2008-11-29 13:55 ` Lennart Borgman
@ 2008-11-29 19:59 ` Stefan Monnier
2008-11-30 0:38 ` Lennart Borgman
0 siblings, 1 reply; 11+ messages in thread
From: Stefan Monnier @ 2008-11-29 19:59 UTC (permalink / raw)
To: Lennart Borgman; +Cc: Sven Joachim, emacs-devel
>> (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
> ))
Why does it look better to you?
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: no executable emacs binary in exec-directory
2008-11-29 19:59 ` Stefan Monnier
@ 2008-11-30 0:38 ` Lennart Borgman
0 siblings, 0 replies; 11+ messages in thread
From: Lennart Borgman @ 2008-11-30 0:38 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Sven Joachim, emacs-devel
On Sat, Nov 29, 2008 at 8:59 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>>> (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
>> ))
>
> Why does it look better to you?
I feel that it more explicitly mentions in which directory the search
is made. But I might change my mind about that tomorrow ... ;-)
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-11-30 0:38 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2008-11-29 19:59 ` Stefan Monnier
2008-11-30 0:38 ` Lennart Borgman
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).