From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: csant Newsgroups: gmane.emacs.devel Subject: [multi-tty] emacsclient and buffers Date: Thu, 24 May 2007 20:15:25 +0200 Organization: csant.info Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1180030537 21486 80.91.229.12 (24 May 2007 18:15:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 May 2007 18:15:37 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 24 20:15:33 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HrHqW-0003F7-UB for ged-emacs-devel@m.gmane.org; Thu, 24 May 2007 20:15:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HrHqZ-0006Vt-I5 for ged-emacs-devel@m.gmane.org; Thu, 24 May 2007 14:15:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HrHqW-0006Vh-3Y for emacs-devel@gnu.org; Thu, 24 May 2007 14:15:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HrHqS-0006VH-ME for emacs-devel@gnu.org; Thu, 24 May 2007 14:15:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HrHqS-0006VE-HT for emacs-devel@gnu.org; Thu, 24 May 2007 14:15:28 -0400 Original-Received: from csant.info ([69.36.171.12]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HrHqS-0003up-3l for emacs-devel@gnu.org; Thu, 24 May 2007 14:15:28 -0400 Original-Received: from fiore.malebolge (csant.info [69.36.171.12]) (authenticated bits=0) by csant.info (8.12.11.20060308/8.12.11) with ESMTP id l4OIFPro007086 for ; Thu, 24 May 2007 12:15:27 -0600 User-Agent: Opera Mail/9.21 (Linux) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:71763 Archived-At: Karoly Lorentey said in a message: Frames are associated with the emacsclient session they were created in. C-x 5 2 makes the new frame inherit the association as well. When the user closes the last frame associated with a particular emacsclient session, emacsclient exits automatically, and vice versa. C-x C-c is rebound to exit the client, not Emacs itself. But how do buffers behave with respect to these frames? If I have the client open a file from command line $ emacsclient file1 and then find another file, C-x C-f file2 in the same frame, is there one, or are there two buffers "associated with the emacsclient session"? If I C-x C-c in the client, it will exit, but leave file2 in the buffer list of the emacs server instance. It seems as if only the file opened from command line is associated with the client frame: no matter whether file1 or file2 are in the foreground in the client frame, if I C-x C-c in the client, file2 will stay in the buffer list of the server. (Amusing side note: to my bewilderment, this happened when I C-x C-f a file with tramp as root from within the client, and later found that very file still open in the server's buffer list). I can also kill file1 from within the server, and this will terminate the client, allthough file2 is still open in the bufferlist. If this is expected behaviour, I guess it might need some good user documentation. Also, in terminal (-nw and -t respectively) it is not possible to switch to a buffer which is currently in the foreground in another frame (emacs server, or client). Kind regards, /c