From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/6647 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: What will they think of next: [fwd] Date: 12 Jun 1996 04:37:06 +0200 Message-ID: References: <9606112033.AA02247@shadow> <199606112049.NAA12362@monolith.spry.com> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035147072 4316 80.91.224.250 (20 Oct 2002 20:51:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:51:12 +0000 (UTC) Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id JAA15281 for ; Wed, 12 Jun 1996 09:55:29 -0700 Original-Received: from hler.ifi.uio.no (4867@hler.ifi.uio.no [129.240.94.23]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Wed, 12 Jun 1996 18:12:35 +0200 Original-Received: (from larsi@localhost) by hler.ifi.uio.no ; Wed, 12 Jun 1996 18:12:31 +0200 Original-To: ding@ifi.uio.no In-Reply-To: Colin Rafferty's message of 11 Jun 1996 17:58:10 -0400 Original-Lines: 21 X-Mailer: Gnus v5.2.15/Emacs 19.29 Xref: main.gmane.org gmane.emacs.gnus.general:6647 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:6647 Colin Rafferty writes: > How about a function gnus-article-hide-emoticon (W W e) that I can add > to gnus-article-prepare-hook so that I never have to see them ever again > in my life? > > Seriously, all that we need is a good regexp, and we can be rid of them > forever: > > (while (re-search-forward "\\s-*[[<(#]?[:;|%][-=*^]?[()|P!?/\\][]>)]?" > nil t) > (replace-match "" nil nil)) It's a bit more complicated (as most things are :-). Which has now been demonstrated. :-) So there'll have to be some additional logic, but it's definitely doable. -- "Yes. The journey through the human heart would have to wait until some other time."