From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/18958 Path: main.gmane.org!not-for-mail From: =?iso-8859-1?Q?H=E5vard?= Fosseng Newsgroups: gmane.emacs.gnus.general Subject: Re: Got a couple weird ones here (hacking article-display-hook) Date: Fri, 20 Nov 1998 01:17:50 +0100 (MET) Sender: owner-ding@hpc.uh.edu Message-ID: <13908.46382.139930.329454@tag.uio.no> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035157393 9000 80.91.224.250 (20 Oct 2002 23:43:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:43:13 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id TAA22857 for ; Thu, 19 Nov 1998 19:18:50 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.1/8.9.1) with ESMTP id SAB04488; Thu, 19 Nov 1998 18:18:40 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 19 Nov 1998 18:18:36 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id SAA11583 for ; Thu, 19 Nov 1998 18:18:28 -0600 (CST) Original-Received: from pat.uio.no (6089@pat.uio.no [129.240.130.16]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id TAA22835 for ; Thu, 19 Nov 1998 19:18:17 -0500 (EST) Original-Received: from tag.uio.no (actually tag.uio.no [129.240.201.147]) by pat.uio.no with SMTP (PP); Fri, 20 Nov 1998 01:17:51 +0100 Original-Received: by tag.uio.no ; Fri, 20 Nov 1998 01:17:50 +0100 (MET) Original-To: Karl Kleinpaste In-Reply-To: X-Mailer: VM 6.62 under Emacs 20.3.1 Precedence: list X-Majordomo: 1.94.jlt7 X-MIME-Autoconverted: from quoted-printable to 8bit by sclp3.sclp.com id TAA22857 Xref: main.gmane.org gmane.emacs.gnus.general:18958 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:18958 Karl Kleinpaste writes: > So, second, I thought I'd try a different approach: Add or remove > signature hiding to the global gnus-article-display-hook, on a > per-group basis: > > (setq gnus-select-group-hook > (function > (lambda () > (if (string-match "that.bad.mailing.list" gnus-newsgroup-name) > (add-hook 'gnus-article-display-hook 'gnus-article-hide-signature t) > (remove-hook 'gnus-article-display-hook 'gnus-article-hide-signature)) > )) Another approach I've used is: (defadvice gnus-article-hide-signature (around not-aq activate) "Don't hide signatures in alt.quotations and comp.text.sgml" (unless (string-match "alt.quotations\\|sgml" gnus-newsgroup-name) ad-do-it)) - Håvard Fosseng -- S'il fallait tolérer aux autres tout ce qu'on se permet à soi-même, la vie ne serait plus tenable. -- Georges Courteline