all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@ics.uci.edu>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Sascha Wilde <wilde@sha-bang.de>,
	lenbok@gmail.com, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: emacsclient bug
Date: Wed, 06 Feb 2008 09:40:33 -0800	[thread overview]
Message-ID: <200802061740.m16HeX90025576@sallyv1.ics.uci.edu> (raw)
In-Reply-To: <jwvbq6udmqy.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 06 Feb 2008 12:29:15 -0500")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

  > > emacsclient -d $DISPLAY -c
  > > works, but this is very annoying, because there are many situations
  > > where emacsclient is handy but determining the current display is not so
  > > easy.
  > 
  > > For example I use the ViewSourceWith Firefox extension, with emacsclient
  > > as editor and `-c $f' as parameters, ($f is expanded by the plugin).
  > 
  > How did you do it with Emacs-22?
  > 
  > The -c argument is not very clearly specified: it just says "use a new
  > frame", so if the current Emacs frame is on a tty, creating a new frame
  > on that same tty seems like a correct choice.
  > 
  > If you don't want tty frames, then maybe you shouldn't start your Emacs
  > server on a tty?
  > 
  > Of course, if your Emacs server has both X11 and tty frames, then "-c"
  > will arbitrarily open either a tty frame or an X11 frame depending on
  > which frame happens to be selected when the emacsclient connects to it.

Given that, taking into account the current frame when emacsclient
connects does not seem like a good idea.

  > Maybe there should be some kind of affinity: look at the emacsclient
  > context (its tty and its $DISPLAY setting) and then look for an existing
  > frame (or terminal) that is "similar" (same tty or same $DISPLAY).
  > This would remove/reduce the "arbitrary" part of the behavior.

IMO:
  - if -c is given, and $DISPLAY is present in the emacsclient
  environment (-d is not on the command line), then it should be
  equivalent to -c -d $DISPLAY

  - if $DISPLAY is not present, then it should be equivalent to -t





  reply	other threads:[~2008-02-06 17:40 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-17  0:07 emacsclient bug Len Trigg
2008-01-17 15:42 ` Stefan Monnier
2008-01-17 17:48   ` Len Trigg
2008-01-17 17:56   ` Len Trigg
2008-01-17 18:42     ` Stefan Monnier
2008-01-17 19:00       ` Len Trigg
2008-01-20 20:41         ` Stefan Monnier
2008-01-20 21:56           ` Len Trigg
2008-01-21  1:45             ` Stefan Monnier
2008-01-21  3:16               ` Len Trigg
2008-01-21  9:54                 ` Andreas Schwab
2008-01-21 15:52                 ` Stefan Monnier
2008-01-22 11:30                   ` Richard Stallman
2008-01-26 21:58                     ` Stefan Monnier
2008-01-27  2:06                       ` Dan Nicolaescu
     [not found]                       ` <ur9odb89g39.fsf@totally-fudged-out-message-id>
2008-01-27 15:41                         ` Dan Nicolaescu
2008-01-28  7:57                           ` KOBAYASHI Yasuhiro
2008-01-31 17:15                           ` Sascha Wilde
2008-02-03  0:10                             ` David De La Harpe Golden
2008-02-04 11:46                               ` Sascha Wilde
2008-02-04 14:56                                 ` David De La Harpe Golden
2008-02-04 15:04                                   ` David De La Harpe Golden
2008-02-04 17:33                                     ` Sascha Wilde
2008-02-06 17:29                             ` Stefan Monnier
2008-02-06 17:40                               ` Dan Nicolaescu [this message]
2008-02-06 19:31                                 ` Stefan Monnier
2008-02-07  0:44                                 ` Richard Stallman
2008-02-07  0:50                                   ` Leo
2008-02-07  1:00                                   ` Dan Nicolaescu
2008-02-07  9:03                                   ` Sascha Wilde
2008-02-08  4:16                                     ` Richard Stallman
2008-02-07  9:05                                 ` Sascha Wilde
2008-02-08 15:27                                 ` Stefan Monnier
2008-02-09 14:50                                   ` Sascha Wilde
2008-02-07  8:56                               ` Sascha Wilde
2008-02-04  4:57                           ` Leo
2008-01-27 16:03                       ` Richard Stallman
2008-01-20 21:56           ` Len Trigg

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200802061740.m16HeX90025576@sallyv1.ics.uci.edu \
    --to=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    --cc=lenbok@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@gnu.org \
    --cc=wilde@sha-bang.de \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.