unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs server not detected in Mac OS High Sierra
@ 2017-12-28 22:59 Artemio González López
  0 siblings, 0 replies; 3+ messages in thread
From: Artemio González López @ 2017-12-28 22:59 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,

When a .tex file is opened in Emacs 25.3.1 under the newly released macOS 10.13 High Sierra by double-clicking on it it always launches a second instance of Emacs, even if a server process is already running (launched by a “(server-start)” line at the beginning of my .emacs file). Is there any way to fix this?

Thanks in advance,


Artemio González López
artemiogl@telefonica.net






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

* Re: Emacs server not detected in Mac OS High Sierra
       [not found] <mailman.6502.1514503126.27995.help-gnu-emacs@gnu.org>
@ 2017-12-29  2:53 ` Rusi
  2017-12-29  3:36   ` Rusi
  0 siblings, 1 reply; 3+ messages in thread
From: Rusi @ 2017-12-29  2:53 UTC (permalink / raw)
  To: help-gnu-emacs

On Friday, December 29, 2017 at 4:48:49 AM UTC+5:30, Artemio González López wrote:
> Hi all,
> 
> When a .tex file is opened in Emacs 25.3.1 under the newly released macOS 10.13 High Sierra by double-clicking on it it always launches a second instance of Emacs, even if a server process is already running (launched by a “(server-start)” line at the beginning of my .emacs file). Is there any way to fix this?

For gnome/unity/etc I wrote something for my students
https://bitbucket.org/rustom/vit-projects/wiki/emacsasdefault

But whats the equivalent of a ".desktop file" under macOS, I have no idea

Note 1.
Some typos need to be corrected
Change these two lines

Comment=Edit text MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=emacsclient -n -a "" %F

to these 3

Comment=Edit text
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=emacsclient -n -a "" -c %F

[Seems to be some org-mode to md export bug]

Note 2 Modern emacsen seem to come with a systemd service file for this
Maybe also made working for MacOS??


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

* Re: Emacs server not detected in Mac OS High Sierra
  2017-12-29  2:53 ` Emacs server not detected in Mac OS High Sierra Rusi
@ 2017-12-29  3:36   ` Rusi
  0 siblings, 0 replies; 3+ messages in thread
From: Rusi @ 2017-12-29  3:36 UTC (permalink / raw)
  To: help-gnu-emacs

On Friday, December 29, 2017 at 8:23:33 AM UTC+5:30, Rusi wrote:
> Note 1.
> Some typos need to be corrected
> Change these two lines
> 
> Comment=Edit text MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
> Exec=emacsclient -n -a "" %F
> 
> to these 3
> 
> Comment=Edit text
> MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
> Exec=emacsclient -n -a "" -c %F
> 
> [Seems to be some org-mode to md export bug]

No bug

I had a newline missing that disappeared (or misappeared) due to the long
MimeType line


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

end of thread, other threads:[~2017-12-29  3:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.6502.1514503126.27995.help-gnu-emacs@gnu.org>
2017-12-29  2:53 ` Emacs server not detected in Mac OS High Sierra Rusi
2017-12-29  3:36   ` Rusi
2017-12-28 22:59 Artemio González López

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