all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Stefan Klinger <all-lists@stefan-klinger.de>
Cc: 9305@debbugs.gnu.org
Subject: bug#9305: emacsclient -n -c path/to/file   # opens *scratch*
Date: Sat, 20 Aug 2011 18:35:50 -0400	[thread overview]
Message-ID: <87obzju2wp.fsf@stupidchicken.com> (raw)
In-Reply-To: <20110815152541.GC1222@stefan-klinger.de> (Stefan Klinger's message of "Mon, 15 Aug 2011 17:25:41 +0200")

Stefan Klinger <all-lists@stefan-klinger.de> writes:

> Now request first frame and start emacs daemon, works as expected
>
>   emacsclient -n -a '' -c ~/.bashrc
>
> Now, as long as the frame showing ‘~/.bashrc’ is visible (potentially
> on another desktop), the following three commands each open a new
> frame, each of them showing *scratch*:
>
>   emacsclient -n -a '' -c ~/.bashrc
>   emacsclient -n -c ~/.bashrc
>   emacsclient -c ~/.bashrc
>
> When there's no frame showing ‘~/.bashrc’, then each of the above
> creates a new frame showing the existing buffer.
>
> -- Expected bahavior --
>
> Check whether there is a buffer visiting test. If so, show that buffer
> in the new frame. Otherwise, visit the file in a new buffer and
> display that one.

Yeah, the -c option to emacsclient means "create a new graphical frame".
Currently, you need to omit -c if you want Emacs to reuse an existing
frame.

The trouble with this is that if no existing graphical frame exists,
that will create a tty frame.  Unfortunately, we don't offer an easy way
to change this behavior yet.  This ought to be fixed, though probably
for Emacs 24.2.





  parent reply	other threads:[~2011-08-20 22:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-15 15:25 bug#9305: emacsclient -n -c path/to/file # opens *scratch* Stefan Klinger
2011-08-20 11:12 ` Stefan Klinger
2011-08-20 22:35 ` Chong Yidong [this message]
2011-08-21 11:29   ` Stefan Klinger
2012-11-04  3:12 ` Chong Yidong
2012-11-04 14:58   ` Stefan Klinger
2012-12-08  2:40     ` Chong Yidong

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=87obzju2wp.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=9305@debbugs.gnu.org \
    --cc=all-lists@stefan-klinger.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.