bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1267: Emacsclient can't find terminal in daemon mode


From: Dan Nicolaescu
Subject: bug#1267: Emacsclient can't find terminal in daemon mode
Date: Wed, 29 Oct 2008 17:07:33 -0700 (PDT)

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.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]