GNU bug report logs - #35262
Maybe make opening in currently running emacs the default

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sun, 14 Apr 2019 01:57:01 UTC

Severity: wishlist

Tags: confirmed

Merged with 7741, 22725

Found in versions 23.2.91, 24.5

To reply to this bug, email your comments to 35262 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#35262; Package emacs. (Sun, 14 Apr 2019 01:57:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 14 Apr 2019 01:57:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Maybe make opening in currently running emacs the default
Date: Sun, 14 Apr 2019 01:48:49 +0800
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.




Forcibly Merged 7741 35262. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 14 Apr 2019 02:17:01 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 14 Apr 2019 02:19:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35262; Package emacs. (Sun, 14 Apr 2019 02:26:02 GMT) Full text and rfc822 format available.

Message #12 received at 35262 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 35262 <at> debbugs.gnu.org
Subject: Re: bug#35262: Maybe make opening in currently running emacs the
 default
Date: Sun, 14 Apr 2019 03:25:41 +0100
積丹尼 Dan Jacobson <jidanni <at> 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




Merged 7741 22725 35262. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 14 Apr 2019 02:40:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35262; Package emacs. (Sun, 14 Apr 2019 03:03:02 GMT) Full text and rfc822 format available.

Message #17 received at 35262 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 35262 <at> debbugs.gnu.org
Subject: Re: bug#35262: Maybe make opening in currently running emacs the
 default
Date: Sun, 14 Apr 2019 11:01:49 +0800
>>>>> "BLC" == Basil L Contovounesios <contovob <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35262; Package emacs. (Sun, 14 Apr 2019 13:01:01 GMT) Full text and rfc822 format available.

Message #20 received at 35262 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 35262 <at> debbugs.gnu.org
Subject: Re: bug#35262: Maybe make opening in currently running emacs the
 default
Date: Sun, 14 Apr 2019 13:59:57 +0100
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

>>>>>> "BLC" == Basil L Contovounesios <contovob <at> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35262; Package emacs. (Tue, 16 Apr 2019 20:54:01 GMT) Full text and rfc822 format available.

Message #23 received at 35262 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 35262 <at> debbugs.gnu.org
Subject: Re: bug#35262: Maybe make opening in currently running emacs the
 default
Date: Tue, 16 Apr 2019 16:53:28 -0400
It was better explained a decade ago in bug#7741.




This bug report was last modified 6 years and 61 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.