unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thorsten Bonow <thorsten.bonow@post.rwth-aachen.de>
Subject: Re: gnu/emacs client --create-frame somehow?
Date: Mon, 01 Dec 2003 12:03:27 +0100	[thread overview]
Message-ID: <87ptf8by0w.fsf@herrrossi.mmweg.rwth-aachen.de> (raw)
In-Reply-To: jwvad6hbgmf.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca

>>>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> 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'.

    After some testing I think gnuclient's option to set "gnuserv-frame"
    to "gnuserv-visible-frame-function", which is opening a new frame
    only if there isn't one already opened on your (virtual) screen
    and is using the visible frame otherwise, is my preferred
    solution. Alas, this is not working even with emacsclient from CVS.

    On the other hand, I think emacsclient's approach of taking either
    file and line number arguments *or* evaluating lisp expressions is
    cleaner than gnuclients -f and -e options for executing a function
    or evaluating lisp together with file arguments---you never now
    what is done first.

    So I wouldn't add options to emacsclient, but having convenience
    lisp functions for the problems above would be nice.

    Stefan>         Stefan

    Toto

-- 
Contact information and PGP key at
http://www-users.rwth-aachen.de/thorsten.bonow

  parent reply	other threads:[~2003-12-01 11:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-27 16:28 gnu/emacs client --create-frame somehow? Thorsten Bonow
2003-11-27 22:23 ` Stefan Monnier
2003-11-28  0:47   ` Ian Zimmerman
2003-11-28  9:01     ` Thorsten Bonow
2003-12-01 11:03   ` Thorsten Bonow [this message]
2003-12-01 19:39     ` Stefan Monnier
2003-12-02 22:10       ` Thorsten Bonow
2003-12-02 23:44         ` Stefan Monnier
2003-12-03 12:02           ` Thorsten Bonow
2003-12-03 16:10             ` Stefan Monnier
2003-12-01 20:19     ` Kevin Rodgers

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=87ptf8by0w.fsf@herrrossi.mmweg.rwth-aachen.de \
    --to=thorsten.bonow@post.rwth-aachen.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.
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).