all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacsclient -n -c path/to/file  # opens *scratch*
@ 2011-08-08 15:14 Stefan
  0 siblings, 0 replies; only message in thread
From: Stefan @ 2011-08-08 15:14 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-08 15:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-08 15:14 emacsclient -n -c path/to/file # opens *scratch* Stefan

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.