From: Dan Nicolaescu <dann@ics.uci.edu>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: 1267@emacsbugs.donarmstrong.com
Subject: bug#1267: Emacsclient can't find terminal in daemon mode
Date: Wed, 29 Oct 2008 17:07:33 -0700 (PDT) [thread overview]
Message-ID: <200810300007.m9U07XYV017977@mothra.ics.uci.edu> (raw)
In-Reply-To: <87zlknvuna.fsf@cyd.mit.edu> (Chong Yidong's message of "Wed, 29 Oct 2008 19:39:05 -0400")
Chong Yidong <cyd@stupidchicken.com> writes:
> Dan Nicolaescu <dann@ics.uci.edu> writes:
>
> > In you particular emacsly Emacs uses the "initial frame" to show the
> > file, which is probably not ideal.
> > This particular case can be solved by trying to see if the
> > `(selected-frame)' is FRAME_INITIAL_P (which is not exposed to elisp).
> > We can guess that if there's no window-system and tty-type frame
> > parameter we are dealing with the initial frame.
> >
> > Not sure if this is good enough to cover all possible cases...
>
> The patch you sent won't work on a text-only terminal.
Have you tried it? It should throw an error and ask for either -t or -c
> I think a better approach is to change emacsclient so that it sends the
> tty name/type if it is supposed to "use the current frame" (normally, it
> doesn't do this unless the -t option is provided). Then, the Emacs
> server should check whether it can actually use the current frame; if
Please define "whether it can actually use the current frame"
> not, it tries X; if that fails, it falls back on using the tty specified
Does "it tries X" mean it tries to create an X frame? That won't be
right, the user might just want to use an existing X frame. I do that
100 times a day.
> by emacsclient.
next prev parent reply other threads:[~2008-10-30 0:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87d4hif53r.fsf@cyd.mit.edu>
2008-10-28 23:04 ` bug#1267: Emacsclient can't find terminal in daemon mode Chong Yidong
2008-10-29 23:06 ` Dan Nicolaescu
2008-10-29 23:39 ` Chong Yidong
2008-10-30 0:07 ` Dan Nicolaescu [this message]
2008-10-30 1:23 ` Chong Yidong
2008-10-30 2:14 ` Dan Nicolaescu
2008-10-30 3:55 ` Chong Yidong
2008-10-30 5:25 ` Dan Nicolaescu
2008-10-30 2:40 ` Stefan Monnier
2008-10-30 1:05 ` Stefan Monnier
2008-10-30 2:15 ` Dan Nicolaescu
2008-10-30 16:05 ` bug#1267: marked as done (Emacsclient can't find terminal in daemon mode) Emacs bug Tracking System
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=200810300007.m9U07XYV017977@mothra.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=1267@emacsbugs.donarmstrong.com \
--cc=cyd@stupidchicken.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.
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).