From: "Juanma Barranquero" <lekktu@gmail.com>
To: "Thierry Volpiatto" <thierry.volpiatto@gmail.com>
Cc: help-gnu-emacs@gnu.org, reader@newsguy.com
Subject: Re: Starting emacs in ediff mode.
Date: Mon, 28 Jan 2008 17:43:33 +0100 [thread overview]
Message-ID: <f7ccd24b0801280843p6ace621fv4dda45773fa0dbee@mail.gmail.com> (raw)
In-Reply-To: <874pcxewlm.fsf@thievol.homelinux.org>
On Jan 28, 2008 5:36 PM, Thierry Volpiatto <thierry.volpiatto@gmail.com> wrote:
> reader@newsguy.com writes:
> What they want to do (i think):
> when you start emacsclient, if no emacs session is found, start an emacs
> session with the server corresponding to the emacsclient you have
> already started (ouf!).
That's it.
What the stock Emacs' emacsclient does today:
- Try to connect with the Emacs server.
- If it can connect, great, that's all folks.
- If it cannot, and there's an alternate editor, start that editor
(it could be Emacs), passing it the file arguments, etc.
- Otherwise fail.
What would be nice (and Lennart's EmacsW32 emacsclient more or less
does, I think):
- Try to connect with the Emacs server
- If it can connect, great, that's all folks
- If it cannot, start Emacs and wait until Emacs starts the server
- Retry connecting with Emacs
- If it can connect, great.
- If not, start an alternate editor if defined (passing the file args, etc.)
- Otherwise fail
The difference is that, in the first case, emacsclient starts the
alternate Emacs and then finishes. It does not maintain a connection
with Emacs or waits until the user signals (from inside Emacs) that
he's done with the buffer/file. That is not good when the one calling
emacsclient was not the user, but a process that starts emacsclient to
get a user-edited file (for example, a commit log) and considers that
emacsclient finishing means that the user-edited file is ready to be
used.
Juanma
next prev parent reply other threads:[~2008-01-28 16:43 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-24 0:51 Starting emacs in ediff mode DaLoverhino
2008-01-24 2:42 ` Kevin Rodgers
2008-01-24 16:50 ` Lennart Borgman (gmail)
2008-01-25 9:45 ` Eli Zaretskii
2008-01-25 14:55 ` Lennart Borgman (gmail)
2008-01-25 16:48 ` Eli Zaretskii
2008-01-25 17:03 ` Juanma Barranquero
2008-01-26 8:44 ` Eli Zaretskii
2008-01-26 13:46 ` Juanma Barranquero
2008-01-26 14:21 ` Lennart Borgman (gmail)
[not found] ` <mailman.6567.1201357297.18990.help-gnu-emacs@gnu.org>
2008-01-26 19:50 ` Stefan Monnier
2008-01-26 20:52 ` Lennart Borgman (gmail)
2008-01-26 21:55 ` Stefan Monnier
[not found] ` <mailman.6561.1201337056.18990.help-gnu-emacs@gnu.org>
2008-01-27 13:17 ` Richard G Riley
2008-01-27 14:55 ` Juanma Barranquero
2008-01-27 15:13 ` Lennart Borgman (gmail)
2008-01-27 22:25 ` Juanma Barranquero
2008-01-28 16:00 ` reader
2008-01-28 16:36 ` Thierry Volpiatto
2008-01-28 16:43 ` Juanma Barranquero [this message]
[not found] ` <mailman.6605.1201445728.18990.help-gnu-emacs@gnu.org>
2008-01-28 11:32 ` Richard G Riley
[not found] ` <mailman.6531.1201279722.18990.help-gnu-emacs@gnu.org>
2008-01-25 20:58 ` DaLoverhino
2008-01-26 7:08 ` Thierry Volpiatto
[not found] ` <mailman.6460.1201142559.18990.help-gnu-emacs@gnu.org>
2008-01-24 16:40 ` DaLoverhino
2008-01-24 18:03 ` Thien-Thi Nguyen
2008-01-24 18:50 ` Rob Wolfe
2008-01-25 20:51 ` DaLoverhino
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f7ccd24b0801280843p6ace621fv4dda45773fa0dbee@mail.gmail.com \
--to=lekktu@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=reader@newsguy.com \
--cc=thierry.volpiatto@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).