all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thorsten Bonow <thorsten.bonow@post.rwth-aachen.de>
To: emacs-devel@gnu.org
Subject: Re: emacsclient's option decoding code
Date: Thu, 13 Nov 2008 22:08:37 +0100 (CET)	[thread overview]
Message-ID: <20081113.220837.888516269.thorsten.bonow@post.rwth-aachen.de> (raw)
In-Reply-To: <87abc3bbrw.fsf@justinbogner.com>

>>>>> "mail" == mail  <mail@justinbogner.com> writes:

    mail> Juri Linkov <juri@jurta.org> writes:
    >>> . if -c was specified, try creating a GUI frame, and failing that, try a
    >>> tty frame;
    >>>
    >>> . if --tty was specified, try make-frame-on-tty, if it fails, try using
    >>> the current tty or a GUI frame.
    >>
    >> This looks mostly clear for me.  The only thing I don't understand is why
    >> we need -c?  Emacs has no option for creating a GUI frame and has -nw for
    >> running on a tty, so why should emacsclient be different?  The following
    >> rules are more consistent with the traditional Emacs invocation:
    >>
    >> . if -nw was specified, try make-frame-on-tty, if it fails, try using the
    >> current tty or a GUI frame;
    >>
    >> . if no option specified, try creating a GUI frame, and failing that, try
    >> a tty frame.
    >>
    >> for consistency with
    >>
    >> emacsclient = emacs (create a new GUI frame) emacsclient -nw = emacs -nw
    >> (run emacs on a tty) emacsclient FILE = emacs FILE (open a file in a new
    >> GUI frame) emacsclient -nw FILE = emacs -nw FILE (open a file in a tty)

    mail> But emacsclient has to additionally support "use the existing frame",
    mail> which is what it does (and has always done) when no arguments are
    mail> specified.

Hi,

I kid myself thinking that I asked for a "-c" option first, back in 2003 :-)

I would like to remind you of the discussion back than and my reasons for asking
for it. Removing the "--create-frame" option and make emacs behave as proposed
above would cripple my setup---again.

I'm quoting from "gnu/emacs client --create-frame somehow?"
(http://lists.gnu.org/archive/html/help-gnu-emacs/2003-12/msg00007.html):

>>>>> "Stefan" == Stefan Monnier <address@bogus.example.com> writes:

    >> What I'm looking for is some way of simulating a --create-frame
    >> option and then calling emacsclient/gnuclient --create-frame
    >> FILE

    Stefan> Since server.el and emacsclient.c do not offer any way to
    Stefan> add new options like --create-frame, your best bet is
    Stefan> probably something like

    Stefan>   emacsclient --eval '(find-file-other-frame "FILE")'

    Yes, this opens up a new frame, but then I am loosing the
    [+line-number] option of gnu/emacsclient. My problem started when
    writing with LaTeX in Emacs, previewing with xdvi: With the
    inverse search feature, switching between a line in the document
    and the preview of this part of your document is possible. So I
    wouldn't want to loose the line-number information or open up a new
    frame every time I switch. But in other cases---say when clicking
    on a "mailto:"-tag in my web-browser, I want a new frame for
    composing an email.

    Stefan> But maybe you have a point that it should be possible to
    Stefan> add new options, kind of like what is done with
    Stefan> `command-switch-alist'.

[...]

To put it in a nutshell, even under X, I sometimes want to let emacsclient create a
frame, but sometimes not.

Toto


-- 
Contact information and PGP key at
http://www.withouthat.org/~toto/contact.html

[...] the dangerous role of the troublemakers in history has
often fallen to the Jewish people. Anne Frankly, it should be
noted, in passing, that a great deal of good for the advancement
of mankind has been accomplished between circumcision, where they
cut off the tip of your dick, to crucifixion, where they throw
the whole Jew away.

Friedman, Kinky (1995), "God Bless John Wayne", Simon and
Shuster, New York




  reply	other threads:[~2008-11-13 21:08 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-01 14:04 emacsclient's option decoding code Eli Zaretskii
2008-11-02  2:13 ` Stefan Monnier
2008-11-02 21:45 ` Chong Yidong
2008-11-02 22:00   ` Juanma Barranquero
2008-11-02 23:18     ` Chong Yidong
2008-11-03  0:50       ` Juanma Barranquero
2008-11-03  4:14         ` Eli Zaretskii
2008-11-03 12:12           ` Juanma Barranquero
2008-11-03 20:06             ` Eli Zaretskii
2008-11-03 20:19               ` Chong Yidong
2008-11-04  4:20                 ` Eli Zaretskii
2008-11-04 16:40                   ` Chong Yidong
2008-11-06 11:56                     ` Juanma Barranquero
2008-11-03 21:26               ` Juanma Barranquero
2008-11-04  4:19                 ` Eli Zaretskii
2008-11-06 12:08                   ` Juanma Barranquero
2008-11-07  9:53                     ` Eli Zaretskii
2008-11-07 11:42                       ` Juanma Barranquero
2008-11-07 11:47                         ` Juanma Barranquero
2008-11-07 14:36                           ` Eli Zaretskii
2008-11-07 14:42                             ` Juanma Barranquero
2008-11-10 18:22                               ` Juanma Barranquero
2008-11-10 18:36                                 ` Chong Yidong
2008-11-10 23:33                                   ` Juanma Barranquero
2008-11-11  4:09                                 ` Eli Zaretskii
2008-11-11  4:14                                   ` Chong Yidong
2008-11-11 21:16                                     ` Eli Zaretskii
2008-11-11  9:39                                   ` Juanma Barranquero
2008-11-11 15:37                                     ` Juanma Barranquero
2008-11-11 21:24                                     ` Eli Zaretskii
2008-11-11 23:36                                       ` Juanma Barranquero
2008-11-12  4:22                                         ` Eli Zaretskii
2008-11-12  9:41                                           ` Juanma Barranquero
2008-11-12 19:14                                             ` Eli Zaretskii
2008-11-12 21:05                                               ` Juanma Barranquero
2008-11-13  4:12                                                 ` Eli Zaretskii
2008-11-13  8:34                                                   ` Juanma Barranquero
2008-11-12 19:37                                         ` Eli Zaretskii
2008-11-12  2:31                                       ` Stefan Monnier
2008-11-12  9:33                                         ` Juanma Barranquero
2008-11-12 15:56                                           ` Stefan Monnier
2008-11-12 16:37                                             ` Juanma Barranquero
2008-11-12 17:13                                               ` Stefan Monnier
2008-11-13  1:16                                               ` Lennart Borgman
2008-11-13  4:18                                                 ` Eli Zaretskii
2008-11-13  9:00                                               ` Juanma Barranquero
2008-11-13 15:45                                                 ` Dan Nicolaescu
2008-11-13 16:05                                                   ` Juanma Barranquero
2008-11-13 16:05                                                     ` Juanma Barranquero
2008-11-13 16:08                                                     ` Dan Nicolaescu
2008-11-12 19:36                                         ` Eli Zaretskii
2008-11-12 20:56                                           ` Stefan Monnier
2008-11-13  4:10                                             ` Eli Zaretskii
2008-11-13  4:29                                               ` mail
2008-11-13 20:54                                                 ` Eli Zaretskii
2008-11-13 21:27                                                   ` mail
2008-11-13 22:30                                                     ` Eli Zaretskii
2008-11-13 23:54                                                       ` mail
2008-11-13 20:03                                           ` Juri Linkov
2008-11-13 20:40                                             ` mail
2008-11-13 21:08                                               ` Thorsten Bonow [this message]
2008-11-13 22:01                                               ` Thorsten Bonow
2008-11-15  2:58                               ` Evil Boris
2008-11-07 14:35                         ` Eli Zaretskii
2008-11-03 14:45           ` Juanma Barranquero
2008-11-03 19:59             ` Eli Zaretskii
2008-11-03 20:03             ` Eli Zaretskii

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=20081113.220837.888516269.thorsten.bonow@post.rwth-aachen.de \
    --to=thorsten.bonow@post.rwth-aachen.de \
    --cc=emacs-devel@gnu.org \
    /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.