* bug#35262: Maybe make opening in currently running emacs the default
@ 2019-04-13 17:48 積丹尼 Dan Jacobson
2019-04-14 2:25 ` Basil L. Contovounesios
0 siblings, 1 reply; 5+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-04-13 17:48 UTC (permalink / raw)
To: 35262
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#35262: Maybe make opening in currently running emacs the default
2019-04-13 17:48 bug#35262: Maybe make opening in currently running emacs the default 積丹尼 Dan Jacobson
@ 2019-04-14 2:25 ` Basil L. Contovounesios
2019-04-14 3:01 ` 積丹尼 Dan Jacobson
0 siblings, 1 reply; 5+ messages in thread
From: Basil L. Contovounesios @ 2019-04-14 2:25 UTC (permalink / raw)
To: 積丹尼 Dan Jacobson; +Cc: 35262
積丹尼 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#35262: Maybe make opening in currently running emacs the default
2019-04-14 2:25 ` Basil L. Contovounesios
@ 2019-04-14 3:01 ` 積丹尼 Dan Jacobson
2019-04-14 12:59 ` Basil L. Contovounesios
0 siblings, 1 reply; 5+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-04-14 3:01 UTC (permalink / raw)
To: Basil L. Contovounesios; +Cc: 35262
>>>>> "BLC" == Basil L Contovounesios <contovob@tcd.ie> writes:
BLC> It's not clear to me exactly what it is you're asking for, though. What
BLC> is the "new way" you refer to? Can you please elaborate?
I just want every subsequent invocation of
$ emacs $RANDOM.txt
to open it within the first. Sort of like saying "emacsclient -n"
without remembering to.
Anyway, these days e.g., Firefox refuses to have two of itself running
at the same time.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#35262: Maybe make opening in currently running emacs the default
2019-04-14 3:01 ` 積丹尼 Dan Jacobson
@ 2019-04-14 12:59 ` Basil L. Contovounesios
2019-04-16 20:53 ` Glenn Morris
0 siblings, 1 reply; 5+ messages in thread
From: Basil L. Contovounesios @ 2019-04-14 12:59 UTC (permalink / raw)
To: 積丹尼 Dan Jacobson; +Cc: 35262
積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:
>>>>>> "BLC" == Basil L Contovounesios <contovob@tcd.ie> writes:
>
> BLC> It's not clear to me exactly what it is you're asking for, though. What
> BLC> is the "new way" you refer to? Can you please elaborate?
>
> I just want every subsequent invocation of
> $ emacs $RANDOM.txt
> to open it within the first. Sort of like saying "emacsclient -n"
> without remembering to.
I would suggest using a shell alias or separate script for that.
> Anyway, these days e.g., Firefox refuses to have two of itself running
> at the same time.
Okay, but Emacs does not suffer from any such limitation. Besides, I
think you run multiple Firefox instances by using different profiles for
each.
--
Basil
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#35262: Maybe make opening in currently running emacs the default
2019-04-14 12:59 ` Basil L. Contovounesios
@ 2019-04-16 20:53 ` Glenn Morris
0 siblings, 0 replies; 5+ messages in thread
From: Glenn Morris @ 2019-04-16 20:53 UTC (permalink / raw)
To: Basil L. Contovounesios; +Cc: 35262
It was better explained a decade ago in bug#7741.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-04-16 20:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-13 17:48 bug#35262: Maybe make opening in currently running emacs the default 積丹尼 Dan Jacobson
2019-04-14 2:25 ` Basil L. Contovounesios
2019-04-14 3:01 ` 積丹尼 Dan Jacobson
2019-04-14 12:59 ` Basil L. Contovounesios
2019-04-16 20:53 ` Glenn Morris
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).