From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session Date: Sun, 17 Jul 2011 11:56:09 -0400 Message-ID: <4E230619.6090205@mousecar.com> References: <20110716204736.5d3e63ef@chaostal.de> <87ei1qqawk.wl%v.plechinger@gmail.com> <20110717013918.7fd31f15@chaostal.de> <4E226E0A.6010601@mousecar.com> <4E22AF7A.1080102@gmx.at> Reply-To: gebser@mousecar.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310918315 32418 80.91.229.12 (17 Jul 2011 15:58:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2011 15:58:35 +0000 (UTC) Cc: 9105@debbugs.gnu.org To: martin rudalics , GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 17 17:58:28 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QiTjg-0003vD-0Z for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jul 2011 17:58:28 +0200 Original-Received: from localhost ([::1]:60648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiTje-0004Eg-GE for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jul 2011 11:58:26 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiThk-0004DW-Tg for help-gnu-emacs@gnu.org; Sun, 17 Jul 2011 11:56:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiThj-0006Yv-JY for help-gnu-emacs@gnu.org; Sun, 17 Jul 2011 11:56:28 -0400 Original-Received: from mout.perfora.net ([74.208.4.195]:53180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiThj-0006Yr-3M for help-gnu-emacs@gnu.org; Sun, 17 Jul 2011 11:56:27 -0400 Original-Received: from dellap.mousecar.net (dsl093-011-016.cle1.dsl.speakeasy.net [66.93.11.16]) by mrelay.perfora.net (node=mrus0) with ESMTP (Nemesis) id 0MQPjQ-1QugWd3aay-00UdpB; Sun, 17 Jul 2011 11:56:24 -0400 User-Agent: Thunderbird 2.0.0.24 (X11/20110622) In-Reply-To: <4E22AF7A.1080102@gmx.at> X-Enigmail-Version: 0.96.0 OpenPGP: id=5AD091E7 X-Provags-ID: V02:K0:htvMiWcABV+TYNdHOP7V8GjWxsL7fie2qr6zzjlj31S ifz4MHl3v7AuaF0JeJIZIjSk2AYu/6/txJw1texy+oSWE2EQOl MbKWG+JNBYCAmbesbd+NXx+u511J9jLzUulkwWEvvFJzHEYSYL +Ywzvp0X5uiFyAT0OVV3MsMWD6TZWwoWL4F23wzA/eM3HLgWV0 zmf4ZckMXTySvnBjW5UR817TCW825EY9Nx/ADSGYYY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.208.4.195 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81631 Archived-At: On 07/17/2011 05:46 AM martin rudalics wrote: >> Often I'll have five or more frames open, some split vertically, perhaps >> a couple split horizontally, all of them with different files (or >> "buffers") in them-- though in some instances it's possible to have the >> same buffer in more than one window or frame. When I close emacs down >> and then invoke it again, I'd like to have the same windows come up, >> split the same way, with the same buffers/files in each frame and >> window, and even with the frames in the same location onscreen as they >> were in the prior session. In short, the current session should be set >> up exactly like the prior session at the time it was closed. > > All this should be doable now using the functions `window-state-get' and > `window-state-put'. Could you try implementing this in desktop.el? > > martin Thanks, Martin! Where do I find these two functions? Once I download them, would it make any difference if I put them in my emacs-path rather than inserting them in or appending them to desktop.el? Thanks++, ken