unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs-mac and emacsclient
@ 2021-12-21  7:57 Jean-Christophe Helary
  2021-12-21  9:17 ` Po Lu
  0 siblings, 1 reply; 14+ messages in thread
From: Jean-Christophe Helary @ 2021-12-21  7:57 UTC (permalink / raw)
  To: help-gnu-emacs

I'm building emacs-mac locally but it looks like emacsclient is not included in the final Emacs.app so I have to use 
emacs-mac/lib-src/emacsclient which does not seem to be the best way to do that.

Am I missing something during the build process that does not put emacsclient in Emacs.app ?

-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: emacs-mac and emacsclient
  2021-12-21  7:57 emacs-mac and emacsclient Jean-Christophe Helary
@ 2021-12-21  9:17 ` Po Lu
  2021-12-21 11:35   ` Jean-Christophe Helary
  0 siblings, 1 reply; 14+ messages in thread
From: Po Lu @ 2021-12-21  9:17 UTC (permalink / raw)
  To: Jean-Christophe Helary; +Cc: help-gnu-emacs

Jean-Christophe Helary <lists@traduction-libre.org> writes:

> I'm building emacs-mac locally but it looks like emacsclient is not
> included in the final Emacs.app so I have to use
> emacs-mac/lib-src/emacsclient which does not seem to be the best way
> to do that.
>
> Am I missing something during the build process that does not put
> emacsclient in Emacs.app ?

AFAIR emacsclient doesn't work in Carbon Emacs, or maybe it's just
multi-tty that's missing.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: emacs-mac and emacsclient
  2021-12-21  9:17 ` Po Lu
@ 2021-12-21 11:35   ` Jean-Christophe Helary
  2021-12-21 11:38     ` Po Lu
  0 siblings, 1 reply; 14+ messages in thread
From: Jean-Christophe Helary @ 2021-12-21 11:35 UTC (permalink / raw)
  To: Po Lu; +Cc: help-gnu-emacs



> On Dec 21, 2021, at 18:17, Po Lu <luangruo@yahoo.com> wrote:
> 
> Jean-Christophe Helary <lists@traduction-libre.org> writes:
> 
>> I'm building emacs-mac locally but it looks like emacsclient is not
>> included in the final Emacs.app so I have to use
>> emacs-mac/lib-src/emacsclient which does not seem to be the best way
>> to do that.
>> 
>> Am I missing something during the build process that does not put
>> emacsclient in Emacs.app ?
> 
> AFAIR emacsclient doesn't work in Carbon Emacs, or maybe it's just
> multi-tty that's missing.

I am not talking about Carbon Emacs, I am talking about Mitsuharu Yamamoto's emacs version.

https://bitbucket.org/mituharu/emacs-mac.git

-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: emacs-mac and emacsclient
  2021-12-21 11:35   ` Jean-Christophe Helary
@ 2021-12-21 11:38     ` Po Lu
  2021-12-21 11:58       ` Jean-Christophe Helary
  0 siblings, 1 reply; 14+ messages in thread
From: Po Lu @ 2021-12-21 11:38 UTC (permalink / raw)
  To: Jean-Christophe Helary; +Cc: help-gnu-emacs

Jean-Christophe Helary <lists@traduction-libre.org> writes:

>> AFAIR emacsclient doesn't work in Carbon Emacs, or maybe it's just
>> multi-tty that's missing.

> I am not talking about Carbon Emacs, I am talking about Mitsuharu
> Yamamoto's emacs version.

That's Carbon Emacs.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: emacs-mac and emacsclient
  2021-12-21 11:38     ` Po Lu
@ 2021-12-21 11:58       ` Jean-Christophe Helary
  2021-12-21 12:01         ` Po Lu
  0 siblings, 1 reply; 14+ messages in thread
From: Jean-Christophe Helary @ 2021-12-21 11:58 UTC (permalink / raw)
  To: Po Lu; +Cc: help-gnu-emacs



> On Dec 21, 2021, at 20:38, Po Lu <luangruo@yahoo.com> wrote:
> 
> Jean-Christophe Helary <lists@traduction-libre.org> writes:
> 
>>> AFAIR emacsclient doesn't work in Carbon Emacs, or maybe it's just
>>> multi-tty that's missing.
> 
>> I am not talking about Carbon Emacs, I am talking about Mitsuharu
>> Yamamoto's emacs version.
> 
> That's Carbon Emacs.

Ok, but 

emacs-mac/lib-src/emacsclient

works fine.

Except that it is not inside 

emacs-mac/mac/Emacs.app


-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: emacs-mac and emacsclient
  2021-12-21 11:58       ` Jean-Christophe Helary
@ 2021-12-21 12:01         ` Po Lu
  2021-12-21 12:11           ` Jean-Christophe Helary
  0 siblings, 1 reply; 14+ messages in thread
From: Po Lu @ 2021-12-21 12:01 UTC (permalink / raw)
  To: Jean-Christophe Helary; +Cc: help-gnu-emacs

Jean-Christophe Helary <lists@traduction-libre.org> writes:

> Ok, but 
>
> emacs-mac/lib-src/emacsclient
>
> works fine.
>
> Except that it is not inside 
>
> emacs-mac/mac/Emacs.app

IIUC NS-style application bundles are for applications themselves and
not for support binaries like emacsclient, which are supposed to be
installed elsewhere.

I could be mistaken though.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: emacs-mac and emacsclient
  2021-12-21 12:01         ` Po Lu
@ 2021-12-21 12:11           ` Jean-Christophe Helary
  2021-12-22  3:22             ` Po Lu
  0 siblings, 1 reply; 14+ messages in thread
From: Jean-Christophe Helary @ 2021-12-21 12:11 UTC (permalink / raw)
  To: Po Lu; +Cc: help-gnu-emacs



> On Dec 21, 2021, at 21:01, Po Lu <luangruo@yahoo.com> wrote:
> 
> Jean-Christophe Helary <lists@traduction-libre.org> writes:
> 
>> Ok, but 
>> 
>> emacs-mac/lib-src/emacsclient
>> 
>> works fine.
>> 
>> Except that it is not inside 
>> 
>> emacs-mac/mac/Emacs.app
> 
> IIUC NS-style application bundles are for applications themselves and
> not for support binaries like emacsclient, which are supposed to be
> installed elsewhere.

I don't want to run it from the GUI, just have it in the package, like it is in the official Emacs.app:

emacs/nextstep/Emacs.app/Contents/MacOS/bin/emacsclient

That way I can put it in the path and run it whenever I need to.


-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: emacs-mac and emacsclient
  2021-12-21 12:11           ` Jean-Christophe Helary
@ 2021-12-22  3:22             ` Po Lu
  2021-12-22  3:47               ` Jean-Christophe Helary
  0 siblings, 1 reply; 14+ messages in thread
From: Po Lu @ 2021-12-22  3:22 UTC (permalink / raw)
  To: Jean-Christophe Helary; +Cc: help-gnu-emacs

Jean-Christophe Helary <lists@traduction-libre.org> writes:

> I don't want to run it from the GUI, just have it in the package, like it is in the official Emacs.app:
>
> emacs/nextstep/Emacs.app/Contents/MacOS/bin/emacsclient
>
> That way I can put it in the path and run it whenever I need to.

I don't understand the logic behind putting NS bundles into PATH: aren't
they only supposed to work when run from the Workspace Manager
(i.e. GWorkspace)?  And if you want Emacs in your path, aren't you
supposed to use `--disable-ns-self-contained' instead?

Thanks.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: emacs-mac and emacsclient
  2021-12-22  3:22             ` Po Lu
@ 2021-12-22  3:47               ` Jean-Christophe Helary
  2021-12-22  4:45                 ` Po Lu
  0 siblings, 1 reply; 14+ messages in thread
From: Jean-Christophe Helary @ 2021-12-22  3:47 UTC (permalink / raw)
  To: Po Lu; +Cc: help-gnu-emacs



> On Dec 22, 2021, at 12:22, Po Lu <luangruo@yahoo.com> wrote:
> 
> Jean-Christophe Helary <lists@traduction-libre.org> writes:
> 
>> I don't want to run it from the GUI, just have it in the package, like it is in the official Emacs.app:
>> 
>> emacs/nextstep/Emacs.app/Contents/MacOS/bin/emacsclient
>> 
>> That way I can put it in the path and run it whenever I need to.
> 
> I don't understand the logic behind putting NS bundles into PATH: aren't
> they only supposed to work when run from the Workspace Manager
> (i.e. GWorkspace)?  And if you want Emacs in your path, aren't you
> supposed to use `--disable-ns-self-contained' instead?

My original question was:

> I'm building emacs-mac locally but it looks like emacsclient is not included in the final Emacs.app so I have to use 
> emacs-mac/lib-src/emacsclient which does not seem to be the best way to do that.
> 
> Am I missing something during the build process that does not put emacsclient in Emacs.app ?

What I would like to know is whether there a way to build emacs-mac so that emacsclient is inside the Emacs.app package, just like it is for the generic Emacs.app package.

If you don't have an answer to that, that's totally fine. Maybe it is a question for emacs-devel. I'll wait a few more days here before checking there.

-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: emacs-mac and emacsclient
  2021-12-22  3:47               ` Jean-Christophe Helary
@ 2021-12-22  4:45                 ` Po Lu
  2021-12-22  4:49                   ` Jean-Christophe Helary
  0 siblings, 1 reply; 14+ messages in thread
From: Po Lu @ 2021-12-22  4:45 UTC (permalink / raw)
  To: Jean-Christophe Helary; +Cc: help-gnu-emacs

Jean-Christophe Helary <lists@traduction-libre.org> writes:

>> On Dec 22, 2021, at 12:22, Po Lu <luangruo@yahoo.com> wrote:
>> 
>> Jean-Christophe Helary <lists@traduction-libre.org> writes:
>> 
>>> I don't want to run it from the GUI, just have it in the package,
>>> like it is in the official Emacs.app:
>>> 
>>> emacs/nextstep/Emacs.app/Contents/MacOS/bin/emacsclient
>>> 
>>> That way I can put it in the path and run it whenever I need to.
>> 
>> I don't understand the logic behind putting NS bundles into PATH:
>> aren't they only supposed to work when run from the Workspace Manager
>> (i.e. GWorkspace)?  And if you want Emacs in your path, aren't you
>> supposed to use `--disable-ns-self-contained' instead?
>
> My original question was:
>
>> I'm building emacs-mac locally but it looks like emacsclient is not
>> included in the final Emacs.app so I have to use
>> emacs-mac/lib-src/emacsclient which does not seem to be the best way
>> to do that.
>> 
>> Am I missing something during the build process that does not put
>> emacsclient in Emacs.app ?
>
> What I would like to know is whether there a way to build emacs-mac so
> that emacsclient is inside the Emacs.app package, just like it is for
> the generic Emacs.app package.
>
> If you don't have an answer to that, that's totally fine. Maybe it is
> a question for emacs-devel. I'll wait a few more days here before
> checking there.

I was asking a question and advising you to disable the self-contained
bundle feature at the same time :)

Thanks.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: emacs-mac and emacsclient
  2021-12-22  4:45                 ` Po Lu
@ 2021-12-22  4:49                   ` Jean-Christophe Helary
  2021-12-22  4:53                     ` Po Lu
  0 siblings, 1 reply; 14+ messages in thread
From: Jean-Christophe Helary @ 2021-12-22  4:49 UTC (permalink / raw)
  To: Po Lu; +Cc: help-gnu-emacs



> On Dec 22, 2021, at 13:45, Po Lu <luangruo@yahoo.com> wrote:
> 
> Jean-Christophe Helary <lists@traduction-libre.org> writes:
> 
>>> On Dec 22, 2021, at 12:22, Po Lu <luangruo@yahoo.com> wrote:
>>> 
>>> Jean-Christophe Helary <lists@traduction-libre.org> writes:
>>> 
>>>> I don't want to run it from the GUI, just have it in the package,
>>>> like it is in the official Emacs.app:
>>>> 
>>>> emacs/nextstep/Emacs.app/Contents/MacOS/bin/emacsclient
>>>> 
>>>> That way I can put it in the path and run it whenever I need to.
>>> 
>>> I don't understand the logic behind putting NS bundles into PATH:
>>> aren't they only supposed to work when run from the Workspace Manager
>>> (i.e. GWorkspace)?  And if you want Emacs in your path, aren't you
>>> supposed to use `--disable-ns-self-contained' instead?
>> 
>> My original question was:
>> 
>>> I'm building emacs-mac locally but it looks like emacsclient is not
>>> included in the final Emacs.app so I have to use
>>> emacs-mac/lib-src/emacsclient which does not seem to be the best way
>>> to do that.
>>> 
>>> Am I missing something during the build process that does not put
>>> emacsclient in Emacs.app ?
>> 
>> What I would like to know is whether there a way to build emacs-mac so
>> that emacsclient is inside the Emacs.app package, just like it is for
>> the generic Emacs.app package.
>> 
>> If you don't have an answer to that, that's totally fine. Maybe it is
>> a question for emacs-devel. I'll wait a few more days here before
>> checking there.
> 
> I was asking a question and advising you to disable the self-contained
> bundle feature at the same time :)

But that's not the way I work with Emacs. I work with Emacs.app in the GUI exclusively and I sometimes need to use emacsclient in a script (applescript) to launch files directly in Emacs.

Having emacs and emacsclient in the path is just a convenience, not a requirement. My requirement is that I can move the Emacs.app package and use the commands that are contained inside the package.


-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: emacs-mac and emacsclient
  2021-12-22  4:49                   ` Jean-Christophe Helary
@ 2021-12-22  4:53                     ` Po Lu
  2021-12-22  4:55                       ` Jean-Christophe Helary
  0 siblings, 1 reply; 14+ messages in thread
From: Po Lu @ 2021-12-22  4:53 UTC (permalink / raw)
  To: Jean-Christophe Helary; +Cc: help-gnu-emacs

Jean-Christophe Helary <lists@traduction-libre.org> writes:

> Having emacs and emacsclient in the path is just a convenience, not a
> requirement. My requirement is that I can move the Emacs.app package
> and use the commands that are contained inside the package.

Would it suffice to copy `emacsclient' to a directory that is inside
your PATH?

Anyhow, this is a Carbon Emacs bug, and should thus be raised with their
developers and not upstream.

Thanks.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: emacs-mac and emacsclient
  2021-12-22  4:53                     ` Po Lu
@ 2021-12-22  4:55                       ` Jean-Christophe Helary
  2021-12-22  5:00                         ` Po Lu
  0 siblings, 1 reply; 14+ messages in thread
From: Jean-Christophe Helary @ 2021-12-22  4:55 UTC (permalink / raw)
  To: Po Lu; +Cc: help-gnu-emacs



> On Dec 22, 2021, at 13:53, Po Lu <luangruo@yahoo.com> wrote:
> 
> Jean-Christophe Helary <lists@traduction-libre.org> writes:
> 
>> Having emacs and emacsclient in the path is just a convenience, not a
>> requirement. My requirement is that I can move the Emacs.app package
>> and use the commands that are contained inside the package.
> 
> Would it suffice to copy `emacsclient' to a directory that is inside
> your PATH?
> 
> Anyhow, this is a Carbon Emacs bug, and should thus be raised with their
> developers and not upstream.

What I would like to know is whether there a way to build emacs-mac so
that emacsclient is inside the Emacs.app package, just like it is for
the generic Emacs.app package.

If you don't have an answer to that, that's totally fine. Maybe it is
a question for emacs-devel. I'll wait a few more days here before
checking there.

-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: emacs-mac and emacsclient
  2021-12-22  4:55                       ` Jean-Christophe Helary
@ 2021-12-22  5:00                         ` Po Lu
  0 siblings, 0 replies; 14+ messages in thread
From: Po Lu @ 2021-12-22  5:00 UTC (permalink / raw)
  To: Jean-Christophe Helary; +Cc: help-gnu-emacs

Jean-Christophe Helary <lists@traduction-libre.org> writes:

> If you don't have an answer to that, that's totally fine. Maybe it is
> a question for emacs-devel. I'll wait a few more days here before
> checking there.

On an unrelated note, it's not a question for emacs-devel, as the Mac
port is not officially supported.

But you should just be able to `cp lib-src/emacsclient' where you want.



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-12-22  5:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-21  7:57 emacs-mac and emacsclient Jean-Christophe Helary
2021-12-21  9:17 ` Po Lu
2021-12-21 11:35   ` Jean-Christophe Helary
2021-12-21 11:38     ` Po Lu
2021-12-21 11:58       ` Jean-Christophe Helary
2021-12-21 12:01         ` Po Lu
2021-12-21 12:11           ` Jean-Christophe Helary
2021-12-22  3:22             ` Po Lu
2021-12-22  3:47               ` Jean-Christophe Helary
2021-12-22  4:45                 ` Po Lu
2021-12-22  4:49                   ` Jean-Christophe Helary
2021-12-22  4:53                     ` Po Lu
2021-12-22  4:55                       ` Jean-Christophe Helary
2021-12-22  5:00                         ` Po Lu

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).