From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: How can I change gnus window configuration for some groups? Date: Sun, 24 Aug 2014 23:25:29 +0800 Message-ID: <87lhqdx63a.fsf@ericabrahamsen.net> References: <8761hilvp5.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408893705 26447 80.91.229.3 (24 Aug 2014 15:21:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Aug 2014 15:21:45 +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 17:21:39 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 1XLZbt-0004iN-Pd for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Aug 2014 17:21:37 +0200 Original-Received: from localhost ([::1]:44480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLZbt-0003jx-Am for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Aug 2014 11:21:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLZbd-0003jo-Ra for help-gnu-emacs@gnu.org; Sun, 24 Aug 2014 11:21:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLZbX-0004LM-Fh for help-gnu-emacs@gnu.org; Sun, 24 Aug 2014 11:21:21 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLZbX-0004LG-99 for help-gnu-emacs@gnu.org; Sun, 24 Aug 2014 11:21:15 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XLZbT-0004WA-MM for help-gnu-emacs@gnu.org; Sun, 24 Aug 2014 17:21:11 +0200 Original-Received: from 222.128.163.195 ([222.128.163.195]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Aug 2014 17:21:11 +0200 Original-Received: from eric by 222.128.163.195 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Aug 2014 17:21:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 222.128.163.195 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:QrfwT9zaLlN280Fno0FIU+TRwzU= 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:99385 Archived-At: Alan Schmitt writes: > 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? I think the gnus-newsgroup-name variable holds the value you want. Does that work?