all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#9305: emacsclient -n -c path/to/file   # opens *scratch*
@ 2011-08-15 15:25 Stefan Klinger
  2011-08-20 11:12 ` Stefan Klinger
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stefan Klinger @ 2011-08-15 15:25 UTC (permalink / raw)
  To: 9305

Hello,

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.

Expecting a configuration problem, I have recently posted this on help-gnu-emacs
[1], but received no reply.


-- Reproduce --

It's not my fault:

  killall -9 emacs
  rm -rf ~/.emacs.d/
  
Now request first frame and start emacs daemon, works as expected (well, almost:
I'd prever emacs not to assign focus to the new frame, but that can be
configured away [2]).

  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.


-- Information --

‘emacs-version’ reports “GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d
scroll bars) of 2011-04-10 on brahms, modified by Debian”

Actually I still assume this could be configured, but on help-gnu-emacs, nobody seems to know [1].

Thank you!
Stefan

____________________
[1] https://lists.gnu.org/archive/html/help-gnu-emacs/2011-08/msg00056.html
[2] https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/589035/comments/2


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





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-12-08  2:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.