From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/15811 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.gnus.user Subject: Re: Preserving window layout? Date: Thu, 20 Sep 2012 22:20:52 +0300 Organization: Oleksandr Gavenko , http://gavenkoa.users.sf.net Message-ID: <87sjactsa3.fsf@gavenkoa.example.com> References: 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 1348168889 3074 80.91.229.3 (20 Sep 2012 19:21:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Sep 2012 19:21:29 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Sep 20 21:21:31 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 1TEmJU-0006GA-Rz for gegu-info-gnus-english@m.gmane.org; Thu, 20 Sep 2012 21:21:28 +0200 Original-Received: from localhost ([::1]:43808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEmJQ-0003lG-Eq for gegu-info-gnus-english@m.gmane.org; Thu, 20 Sep 2012 15:21:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEmJL-0003ky-9g for info-gnus-english@gnu.org; Thu, 20 Sep 2012 15:21:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEmJH-0003V7-Gn for info-gnus-english@gnu.org; Thu, 20 Sep 2012 15:21:19 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:39168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEmJH-0003SW-9M for info-gnus-english@gnu.org; Thu, 20 Sep 2012 15:21:15 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TEmJI-00066J-V4 for info-gnus-english@gnu.org; Thu, 20 Sep 2012 21:21:16 +0200 Original-Received: from 37.229.12.55 ([37.229.12.55]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Sep 2012 21:21:16 +0200 Original-Received: from gavenkoa by 37.229.12.55 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Sep 2012 21:21:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 37.229.12.55 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:f4ehhgvs5+8W4IWZ6Mg28rUH4Lw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:15811 Archived-At: 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... 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... -- Best regards!