From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Saving a window configuration ? Date: Thu, 07 Mar 2019 19:48:39 +0100 Message-ID: References: <20190306173922.7c25b601@mistral> <83wolbbbzk.fsf@gnu.org> <20190307130954.119349a7@mistral> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="79056"; mail-complaints-to="usenet@blaine.gmane.org" Cc: help-gnu-emacs@gnu.org To: jonetsu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 07 20:19:36 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1yYI-000KSj-I6 for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Mar 2019 20:19:34 +0100 Original-Received: from localhost ([127.0.0.1]:57927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1yYH-0004RQ-DP for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Mar 2019 14:19:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1y4d-0002Fr-7F for help-gnu-emacs@gnu.org; Thu, 07 Mar 2019 13:48:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1y4a-0003nK-Tk for help-gnu-emacs@gnu.org; Thu, 07 Mar 2019 13:48:54 -0500 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:38758) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1y4X-0003gu-Bv for help-gnu-emacs@gnu.org; Thu, 07 Mar 2019 13:48:50 -0500 Original-Received: by mail-wr1-x435.google.com with SMTP id g12so18687193wrm.5 for ; Thu, 07 Mar 2019 10:48:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=xzgnUW8Mt+ylGzxgOugU+1CCCjoC3RZsuBAXyed14K8=; b=I5PdaqbmIRVie5bin4QHAIVrui9LTg5Jxe+igvWGURf2SAglJFD8Dnc7URcmBalz4r ezbfQzDaNBZejDblx6h4beNR5isNWrBvy4unJjXmKja+DKvO2Jaf9UMzdj48gRUoF64s qGEt6TiZtwF+PF8HWVS6X9T02EiSUCGNrsvPhohqRz35eZ87Tgt5lr7GHV27rpBBVTP0 c7WD76GmZFqYHRtkBTP11oRufLWHtLVQuQ4KDrw3DUAT8C7GA2WXCTsnHfY2rVYQbwwB 14jZVG+qVUHWSxndRb0Fe8xAEkSjp8y5J476npwyUXoQhNhTWIpuiotv8yQvW3EjdMba noBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=xzgnUW8Mt+ylGzxgOugU+1CCCjoC3RZsuBAXyed14K8=; b=jRuLpitEbxPAa0C8fNo7MZJypfo4gOlGnVf7BgZ0nmRQpzEl0Ev2HNX/br5JCQ8yv1 7EYbVY4EiAD2r50NNjU+SKRlPOExo7F4/T7qNnQyUg4ArqkXRmOA+ywFqkHoJnTV6GmF MLXLCRPcvaQZNZ/EchAnivzr9hNmC6zhNxkOYKxFQlKlmjzhohGNuuqs7eb4X+jbo1BN nd8vUjLqS4lYVe9FFRg3UeQKhPjytl0Ms3RQSRMbQRY1kaygrMUN0ZCOpFJlKOtnAzSx dbJrfRO00WGJStUoJWtsOMRre+6nbpsJVBSNoww7vglJvTmzWclXjHqNKgBYBWhg89+R urhg== X-Gm-Message-State: APjAAAUvgYppNGQUv0KVH7iE4eJU865FRlqDAsij9g8RYZ5VqqJ+Vol9 ex3miLQhuUpG36D75ZRHGQ87TD9I X-Google-Smtp-Source: APXvYqzO7vRye3UqQQyR4JYVk+zLr0JfAvNO0nJJYIsxYHT7tSSgXDKr/6hlRatE3+alJPCK+lHFNQ== X-Received: by 2002:adf:f846:: with SMTP id d6mr8366642wrq.53.1551984520876; Thu, 07 Mar 2019 10:48:40 -0800 (PST) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:40b6:f50c:31dd:2910]) by smtp.gmail.com with ESMTPSA id r70sm2983838wme.46.2019.03.07.10.48.39 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 07 Mar 2019 10:48:40 -0800 (PST) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <20190307130954.119349a7@mistral> (jonetsu@teksavvy.com's message of "Thu, 7 Mar 2019 13:09:54 -0500") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::435 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:119574 Archived-At: >>>>> On Thu, 7 Mar 2019 13:09:54 -0500, jonetsu said: jonetsu> If 15 files are opened and the frames are saved, then the jonetsu> files will need to be re-opened one by one and only after jonetsu> doing that can the saved positions and sized of the jonetsu> frames be restored to produce what's expected: restoring jonetsu> emacs like it was when last left, with all the files and jonetsu> all the frames. As far as I consider my query, this is jonetsu> pretty much half-cooked. What's the use of wanting to be jonetsu> able to restore emacs like it was with all the frame jonetsu> sizes and positions AND the files, in a single operation, jonetsu> if all the files have to be manually opened before ? If jonetsu> all the files have to be manually opened then might as jonetsu> well forget about the size and position of the frames and jonetsu> re-organize them. jonetsu> What I would like is to get back to emacs with the 15 jonetsu> files being displayed just like they were last time. The jonetsu> corollary to this mechanism would be that since it can do jonetsu> that, it can thus reload any other saved "buffers & jonetsu> frames" (B&F for short). So if I switch from one project jonetsu> to another I can save the current B&F and then switch to jonetsu> the other project's B&F in one operation, ready to jonetsu> continue from the exact same place it was left jonetsu> before. And later on switch back to the previous jonetsu> project's saved B&F This sounds like you want to use 'desktop-save'/'desktop-read' in combination with 'desktop-restore-frames t' (along with specifying a project directory every time you call those functions) desktop.el might be overkill though, it saves a lot of state. Robert