From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Zhiliang Newsgroups: gmane.emacs.help Subject: change the default buffer in newly created frame to latest buffer visited Date: Mon, 11 May 2009 14:41:28 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242141375 10773 80.91.229.12 (12 May 2009 15:16:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2009 15:16:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 12 17:16:05 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M3thy-0000Xz-Ee for geh-help-gnu-emacs@m.gmane.org; Tue, 12 May 2009 17:15:54 +0200 Original-Received: from localhost ([127.0.0.1]:44653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3thx-0004MQ-Q9 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 May 2009 11:15:53 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!l28g2000vba.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 128.220.140.101 Original-X-Trace: posting.google.com 1242078088 10713 127.0.0.1 (11 May 2009 21:41:28 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 11 May 2009 21:41:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l28g2000vba.googlegroups.com; posting-host=128.220.140.101; posting-account=HT66CgoAAAA7__N-kGCKuIUwvmkwyTKu User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11pre) Gecko/2009050617 Firefox/3.0.11pre (Swiftfox),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169090 X-Mailman-Approved-At: Tue, 12 May 2009 11:15:06 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64381 Archived-At: Dear Emacs Users, I'm using GNU Emacs 23.0.93 in Ubuntu 9.04. The daemon feature is AWESOME. What I'm trying to do is to accomplish (1) when I need it, one keystroke to bring up emaces, and (2) when I'm done with editing, one keystroke to hide the emacs window. Here is what I did: in emacs, I bind F6 to delete-frame, and in ubuntu I bind F7 to "emacsclent -c - n". These two keybindings do almost what I want, except that "emacsclent -c -n" create a new frame with *scrach* as the default buffer. I'm wondering whether it is possible to recover the state before last delete-frame was executed in the new frame (by state, I mean window layout and buffers) . Thanks! Enjoy emacs!!!