bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35262: Maybe make opening in currently running emacs the default


From: Basil L. Contovounesios
Subject: bug#35262: Maybe make opening in currently running emacs the default
Date: Sun, 14 Apr 2019 03:25:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> Say, most other programs are smart enough to know that
> $ chromium       a.html & #starts chromium
> $ chromium       b.html   #opens b.html in the above running chromium
> $ chromium       c.html   #opens c.html in the above running chromium
>
> Alas, for emacs one still needs
> $ emacs          a.html & #starts emacs
> $ emacsclient -n b.html   #opens b.html in the above running emacs
> $ emacsclient -n c.html   #opens c.html in the above running emacs
> plus one needs server-start...
>
> Anyway maybe the new way should be the default when running in
> X-windows, etc. And maybe even eliminate the need for the & on the
> first line, to be able to type the further lines.

The &, -n, and server-start aren't strictly necessary.  Here's one
alternative:

$ emacs --daemon
$ emacsclient a.html
$ emacsclient b.html
$ emacsclient c.html

And here's another:

$ export ALTERNATE_EDITOR=
$ emacsclient a.html
$ emacsclient b.html
$ emacsclient c.html

It's not clear to me exactly what it is you're asking for, though.  What
is the "new way" you refer to?  Can you please elaborate?

Thanks,

-- 
Basil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]