1 ;;; gnus-win.el --- window configuration functions for Gnus
3 ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 ;; 2005 Free Software Foundation, Inc.
6 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
9 ;; This file is part of GNU Emacs.
11 ;; GNU Emacs is free software; you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 2, or (at your option)
16 ;; GNU Emacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 ;; Boston, MA 02110-1301, USA.
30 (eval-when-compile (require 'cl))
35 (defgroup gnus-windows nil
36 "Window configuration."
39 (defcustom gnus-use-full-window t
40 "*If non-nil, use the entire Emacs screen."
44 (defvar gnus-window-configuration nil
45 "Obsolete variable. See `gnus-buffer-configuration'.")
47 (defcustom gnus-window-min-width 2
48 "*Minimum width of Gnus buffers."
52 (defcustom gnus-window-min-height 1
53 "*Minimum height of Gnus buffers."
57 (defcustom gnus-always-force-window-configuration nil
58 "*If non-nil, always force the Gnus window configurations."
62 (defcustom gnus-use-frames-on-any-display nil
63 "*If non-nil, frames on all displays will be considered useable by Gnus.
64 When nil, only frames on the same display as the selected frame will be
65 used to display Gnus windows."
70 (defvar gnus-buffer-configuration
74 (if gnus-carpal '(group-carpal 4))))
78 (if gnus-carpal '(summary-carpal 4))))
89 (if gnus-carpal '(summary-carpal 4))
94 (if gnus-carpal '(server-carpal 2))))
98 (if gnus-carpal '(browse-carpal 2))))
101 (message 1.0 point)))
104 (article 1.0 point)))
114 (article 1.0 point)))
118 (edit-form 1.0 point)))
122 (edit-score 1.0 point)))
129 (message 1.0 point)))
132 (message 1.0 point)))
135 (message 1.0 point)))
139 (message 1.0 point)))
143 (if gnus-carpal '(summary-carpal 4))
144 ("*Shell Command Output*" 1.0)))
147 (if gnus-bug-create-help-buffer '("*Gnus Help Bug*" 0.5))
148 ("*Gnus Bug*" 1.0 point)))
152 ("*Score Trace*" 1.0)))
156 ("*Score Words*" 1.0)))
160 ("*Split Trace*" 1.0)))
167 (message 1.0 point)))
174 (mml-preview 1.0 point))))
175 "Window configuration for all possible Gnus buffers.
176 See the Gnus manual for an explanation of the syntax used.")
178 (defvar gnus-window-to-buffer
179 '((group . gnus-group-buffer)
180 (summary . gnus-summary-buffer)
181 (article . gnus-article-buffer)
182 (server . gnus-server-buffer)