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 10:34:38 +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 1408869332 1737 80.91.229.3 (24 Aug 2014 08:35:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Aug 2014 08:35:32 +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 10:35:25 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 1XLTGn-0006Md-6L for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Aug 2014 10:35:25 +0200 Original-Received: from localhost ([::1]:43428 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLTGm-00068G-Pl for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Aug 2014 04:35:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLTGV-00065E-NI for help-gnu-emacs@gnu.org; Sun, 24 Aug 2014 04:35:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLTGQ-0007ae-F8 for help-gnu-emacs@gnu.org; Sun, 24 Aug 2014 04:35:07 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40861) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLTGQ-0007Wp-8C for help-gnu-emacs@gnu.org; Sun, 24 Aug 2014 04:35:02 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XLTGO-0006CB-HT for help-gnu-emacs@gnu.org; Sun, 24 Aug 2014 10:35:00 +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 10:35:00 +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 10:35:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 59 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:7TsI81IGdKAlBdkYM/YA/RLNxwk= 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:99383 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2014-08-23 23:53, Emanuel Berg writes: > Alan Schmitt writes: > >> Is there a way to adapt this such that I use the >> layout ... when viewing the "nnvirtual:RSS" group? >> Should this be a global setting or a group parameter? > > If you can make in into a group parameter specifically > associated to that group, that would be the most > elegant solution. But I don't know how to do that. > > Gut feeling, I would do either of: > > 1. If you want "RET transparency". In the group buffer, > you select a group by hitting RET. I would rebind > that to a defun that runs this: > > (string-equal "nnvirtual:RSS" (gnus-group-group-name) ) > > If `t', do special treatment. If `nil', do the > ordinary thing. You might want to use > current-prefix-arg to replicate ordinary usage of > the C-u (to quantify articles). Thanks for the suggestion, it's a nice way to do it. 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? Thanks again, 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+aOkAAoJEAQNCjtO0uXHlQwH+wXMpnTxOJhJmvQWoZfHeB0P q6NuDHPkYATvXWzR+OUvZc14pDtVsYw5kOxlRlomGauH733IKsmX+bEUNOkrcakm 1/1T6iU7NipGlhQfFSMKZ0wNU3aGIHsJjgCd8ByPREutH0FaAP4WaWAYFDgMOaK4 IHDBytL+7uVnqI52GDP3l1QcMae6lriEfKwxdZtZFkyqIZfmWB/0Kj6cCF/r7Sz7 9KKVqtdKs15ar4KqgoNd2mBk6uo65DbPCVB8fTahykp1DtZNF3+STDevMa3YfTSG xrXj7Xe5u3UU2+/nn6ihHLnlmK9MI9OSF0vGmMAQM59ihMdcDcMkbtntcLiJx88= =4exV -----END PGP SIGNATURE----- --=-=-=--