From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/15823 Path: news.gmane.org!not-for-mail From: Kevin Brubeck Unhammer Newsgroups: gmane.emacs.gnus.user Subject: Re: group-line-format and Gmail - stop displaying [Gmail] Date: Mon, 24 Sep 2012 20:48:26 +0200 Message-ID: <87zk4fxnnp.fsf@fsfe.org> 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 1348512551 10850 80.91.229.3 (24 Sep 2012 18:49:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2012 18:49:11 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Sep 24 20:49:16 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 1TGDiU-0000j8-2f for gegu-info-gnus-english@m.gmane.org; Mon, 24 Sep 2012 20:49:14 +0200 Original-Received: from localhost ([::1]:57919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGDiP-0008U6-9w for gegu-info-gnus-english@m.gmane.org; Mon, 24 Sep 2012 14:49:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGDiM-0008U1-PS for info-gnus-english@gnu.org; Mon, 24 Sep 2012 14:49:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGDiL-0004w1-Ni for info-gnus-english@gnu.org; Mon, 24 Sep 2012 14:49:06 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:57113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGDiL-0004vi-GX for info-gnus-english@gnu.org; Mon, 24 Sep 2012 14:49:05 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TGDiO-0000ct-5J for info-gnus-english@gnu.org; Mon, 24 Sep 2012 20:49:08 +0200 Original-Received: from cde31bf51.dhcp.as2116.net ([81.191.49.222]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Sep 2012 20:49:08 +0200 Original-Received: from unhammer by cde31bf51.dhcp.as2116.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Sep 2012 20:49:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cde31bf51.dhcp.as2116.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:7bUBVUD9rQ55r7GtLv2u9mFU+v0= 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:15823 Archived-At: davidandrewrogers@gmail.com writes: > Hi all > I use Gnus for email only. > > To make small-screen usage easier, I'd like to get my Gnus group line > to omit the square-bracketed word [Gmail]/ from the display. > > I currently have > > (setq gnus-group-line-format "%M%S%p%P%5y: %(%G%)%l %6,6~(cut 2)d\n") > > but I can't find any clues about how to convert the group name (the %G > above) into something that will eliminate the relevant (I mean > irrelevant) :) part. Perhaps something like the following (totally untested): (defun gnus-user-format-function-G (arg) (replace-regexp-in-string "\\[Gmail\\]" "" gnus-tmp-group)) (setq gnus-group-line-format "%M%S%p%P%5y: %(%uG%)%l %6,6~(cut 2)d\n") Note the use of %uG (see C-h v gnus-group-line-format). -- Kevin Brubeck Unhammer GPG: 0x766AC60C