[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-x C-c does nothing on frames created with "nowait" flag
From: |
Chong Yidong |
Subject: |
Re: C-x C-c does nothing on frames created with "nowait" flag |
Date: |
Sun, 11 Jan 2009 08:25:51 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Ulrich Mueller <address@hidden> writes:
> ... or save buffers and delete the frame (also sent the following
> patch already):
Or, we could treat a `nowait' frame as though it were an ordinary
(non-client) frame on the server:
*** trunk/lisp/files.el.~1.1031.~ 2009-01-11 08:23:10.000000000 -0500
--- trunk/lisp/files.el 2009-01-11 08:24:54.000000000 -0500
***************
*** 5733,5741 ****
(interactive "P")
(let ((proc (frame-parameter (selected-frame) 'client))
(frame (selected-frame)))
! (if (null proc)
! (save-buffers-kill-emacs)
! (server-save-buffers-kill-terminal proc arg))))
;; We use /: as a prefix to "quote" a file name
--- 5733,5741 ----
(interactive "P")
(let ((proc (frame-parameter (selected-frame) 'client))
(frame (selected-frame)))
! (if (processp proc)
! (server-save-buffers-kill-terminal proc arg)
! (save-buffers-kill-emacs arg))))
;; We use /: as a prefix to "quote" a file name