From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Schmitt Newsgroups: gmane.emacs.help Subject: Re: How can I change gnus window configuration for some groups? Date: Sun, 24 Aug 2014 11:47:49 +0200 Message-ID: References: <8761hilvp5.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1408873742 17041 80.91.229.3 (24 Aug 2014 09:49:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Aug 2014 09:49:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 24 11:48:55 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1XLUPu-0001Zp-BX for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Aug 2014 11:48:54 +0200 Original-Received: from localhost ([::1]:43564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLUPt-0000Sv-Vy for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Aug 2014 05:48:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLUPc-0000SY-VC for help-gnu-emacs@gnu.org; Sun, 24 Aug 2014 05:48:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLUPW-0001x3-OL for help-gnu-emacs@gnu.org; Sun, 24 Aug 2014 05:48:36 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:57635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLUPW-0001wo-Hq for help-gnu-emacs@gnu.org; Sun, 24 Aug 2014 05:48:30 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XLUPR-0001Pf-Ep for help-gnu-emacs@gnu.org; Sun, 24 Aug 2014 11:48:25 +0200 Original-Received: from cbg35-2-78-242-14-140.fbx.proxad.net ([78.242.14.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Aug 2014 11:48:25 +0200 Original-Received: from alan.schmitt by cbg35-2-78-242-14-140.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Aug 2014 11:48:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cbg35-2-78-242-14-140.fbx.proxad.net User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (darwin) Cancel-Lock: sha1:IaUeEEBCm815CoMZ7DOQc5CwJBw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:99384 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2014-08-24 10:34, Alan Schmitt writes: > As a less invasive option, I could test for the group name in the window > configuration definition. However it seems that `gnus-group-group-name' > does not work in the summary window (is returns `nil'). Is there > a similar function that returns the name of the current group in > a summary buffer? As I could not find such a function, this is what I ended up doing. Testing the buffer name is ugly, but it gets the job done. #+begin_src emacs-lisp (defun as/small-summary-p () (equal (buffer-name) "*Summary nnvirtual:RSS*")) (gnus-add-configuration '(article (cond ((as/small-summary-p) '(vertical 1.0 (summary 4 point) (article 1.0))) (t '(vertical 1.0 (summary 0.25 point) (article 1.0)))))) #+end_src Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJT+bTYAAoJEAQNCjtO0uXHBT8H/183JOCZ6cdqi68uVseOv5f5 RExFGsrB28/73zL97M3W0dpqOxNrF8Ti+BuZImgUJJ8ZMTAg8vosUU5SlxJi5rfh usmeMqKdGVxT39x0TWHWXdire0UqexVEWAiR1NvXOhkb9joQyKS+iRaja4EI8xOa kRN4aIewaiBSp6ObAOABKwwMsrkl3brY4HfKroEARdwYvZZ9+XyLrhnQkUPd0jIA sENKLNxkedakGoWEHVMZdLvIommzh6hHk3IQS1+jnJFcVrQKD6mLA1CgmKzQkC6X hU1iE9lgwNudPRIwKyllCVK7mbCb9jqHtwDWxLkZsDPaEvZcid3q9CndBjsJ3Zg= =3ucq -----END PGP SIGNATURE----- --=-=-=--