From: Chong Yidong <cyd@stupidchicken.com>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: 1267@emacsbugs.donarmstrong.com
Subject: bug#1267: Emacsclient can't find terminal in daemon mode
Date: Wed, 29 Oct 2008 19:39:05 -0400 [thread overview]
Message-ID: <87zlknvuna.fsf@cyd.mit.edu> (raw)
In-Reply-To: <200810292306.m9TN6fE0017904@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Wed, 29 Oct 2008 16:06:41 -0700 (PDT)")
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.
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
not, it tries X; if that fails, it falls back on using the tty specified
by emacsclient.
next prev parent reply other threads:[~2008-10-29 23:39 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 [this message]
2008-10-30 0:07 ` Dan Nicolaescu
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=87zlknvuna.fsf@cyd.mit.edu \
--to=cyd@stupidchicken.com \
--cc=1267@emacsbugs.donarmstrong.com \
--cc=dann@ics.uci.edu \
/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).