all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan <all-lists@stefan-klinger.de>
To: help-gnu-emacs@gnu.org
Subject: emacsclient -n -c path/to/file  # opens *scratch*
Date: Mon, 8 Aug 2011 17:14:08 +0200	[thread overview]
Message-ID: <20110808151407.GC1222@stefan-klinger.de> (raw)

Hi,

I'm having a problem with newly created frames when running ‘emacsclient -c
path/to/file’: If there is already a frame showing the file, a new frame is
created (as intended) but it displays a *scratch* buffer, instead of the already
existing buffer for that file.

You can simply reproduce this (removed ‘~/.emacs.d’, no emacs running). First
do this, which behaves as intended:

  emacsclient -n -a '' -c ~/.bashrc  # starts new emacs daemon, and
                                     # displays one frame visiting ~/.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        #  > opens new frame showing *scratch*
  emacsclient -c ~/.bashrc           # /

When there's no frame showing ‘~/.bashrc’, then each of the above behaves as
expected (by me): Create a buffer visiting that file if there is none, then
display that buffer in a new frame.


Can this be configured?


Thank you!
Stefan


-- 
Stefan Klinger                                      o/klettern
                                                    /\/  bis zum
send plaintext only - max size 32kB - no spam         \   Abfallen
http://stefan-klinger.de



                 reply	other threads:[~2011-08-08 15:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20110808151407.GC1222@stefan-klinger.de \
    --to=all-lists@stefan-klinger.de \
    --cc=help-gnu-emacs@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.