[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacsclient's option decoding code
From: |
Thorsten Bonow |
Subject: |
Re: emacsclient's option decoding code |
Date: |
Thu, 13 Nov 2008 22:08:37 +0100 (CET) |
>>>>> "mail" == mail <address@hidden> writes:
mail> Juri Linkov <address@hidden> 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@hidden> 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
- Re: emacsclient's option decoding code, (continued)
- Re: emacsclient's option decoding code, Stefan Monnier, 2008/11/12
- Re: emacsclient's option decoding code, Eli Zaretskii, 2008/11/12
- Re: emacsclient's option decoding code, mail, 2008/11/12
- Re: emacsclient's option decoding code, Eli Zaretskii, 2008/11/13
- Re: emacsclient's option decoding code, mail, 2008/11/13
- Re: emacsclient's option decoding code, Eli Zaretskii, 2008/11/13
- Re: emacsclient's option decoding code, mail, 2008/11/13
- Re: emacsclient's option decoding code, Juri Linkov, 2008/11/13
- Re: emacsclient's option decoding code, mail, 2008/11/13
- Re: emacsclient's option decoding code, Thorsten Bonow, 2008/11/13
- Re: emacsclient's option decoding code,
Thorsten Bonow <=
- Re: emacsclient's option decoding code, Evil Boris, 2008/11/14
- Re: emacsclient's option decoding code, Eli Zaretskii, 2008/11/07
- Re: emacsclient's option decoding code, Juanma Barranquero, 2008/11/03
- Re: emacsclient's option decoding code, Eli Zaretskii, 2008/11/03
- Re: emacsclient's option decoding code, Eli Zaretskii, 2008/11/03