From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/15815 Path: news.gmane.org!not-for-mail From: Alan Schmitt Newsgroups: gmane.emacs.gnus.user Subject: Re: Preserving window layout? Date: Fri, 21 Sep 2012 08:25:27 +0200 Message-ID: References: <87sjactsa3.fsf@gavenkoa.example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1348208743 32113 80.91.229.3 (21 Sep 2012 06:25:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2012 06:25:43 +0000 (UTC) Cc: info-gnus-english@gnu.org To: Oleksandr Gavenko Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Sep 21 08:25:44 2012 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TEwgJ-00038I-W4 for gegu-info-gnus-english@m.gmane.org; Fri, 21 Sep 2012 08:25:44 +0200 Original-Received: from localhost ([::1]:55856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEwgF-0000KL-8H for gegu-info-gnus-english@m.gmane.org; Fri, 21 Sep 2012 02:25:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEwg9-0000KF-SG for info-gnus-english@gnu.org; Fri, 21 Sep 2012 02:25:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEwg5-0007nZ-Od for info-gnus-english@gnu.org; Fri, 21 Sep 2012 02:25:33 -0400 Original-Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:65132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEwg5-0007nS-Io for info-gnus-english@gnu.org; Fri, 21 Sep 2012 02:25:29 -0400 X-IronPort-AV: E=Sophos;i="4.80,460,1344204000"; d="scan'208";a="174054749" Original-Received: from top-wifi.irisa.fr ([131.254.66.192]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 21 Sep 2012 08:25:27 +0200 In-Reply-To: <87sjactsa3.fsf@gavenkoa.example.com> (Oleksandr Gavenko's message of "Thu, 20 Sep 2012 22:20:52 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.134.164.82 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:15815 Archived-At: Oleksandr Gavenko writes: > On 2012-09-20, Alan Schmitt wrote: > >> I'm trying to work in a single Emacs frame, split in several windows, >> but this does not work well with gnus. Reading the documentation, I see >> that there is an option to prevent gnus from taking over the frame >> (http://gnus.org/manual/gnus_288.html), but its use is discouraged. >> >> Hence my question: has anyone found a way to use gnus without losing an >> existing windows layout? I saw some discussion on emacswiki >> (http://www.emacswiki.org/emacs/OneWindow) and I'm wondering if there >> are other tricks that I may have missed. >> > I suggest dumb solution: > > M-x new-frame RET M-x gnus RET > > If you have nice windows manager with cool select windows application you easy > switch between main Emacs frame and Gnus one... Unfortunately my window manager is not so nice (I'm on OS X). > Really I use at most only 2 Emacs windows. For fast navigation I use saved > points in registers and iswitchb-mode. > > I think you can try to hack some Elisp code with use of: > > (setq my-window-conf (current-window-configuration)) > (gnus) > (set-window-configuration my-window-conf) ;; restore window layout and > ;; selected buffers > > http://www.gnu.org/software/emacs/manual/html_node/elisp/Window-Configurations.html > > I think that it is you want but I don't how integrate this code with gnus and > your preferences... > > Try searching on emacswiki by set-window-configuration keyword... Interesting tip, thanks a lot! Alan