From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66802 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] gnus: Make gnus smiley regexps match at end of region Date: Sat, 12 Apr 2008 23:40:41 +0200 Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208036490 10224 80.91.229.12 (12 Apr 2008 21:41:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Apr 2008 21:41:30 +0000 (UTC) Cc: ding@gnus.org To: Adrian Aichner Original-X-From: ding-owner+M15284@lists.math.uh.edu Sat Apr 12 23:42:03 2008 connect(): Connection refused Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JknU0-0008Ky-GV for ding-account@gmane.org; Sat, 12 Apr 2008 23:42:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JknTD-0007xs-NP; Sat, 12 Apr 2008 16:41:11 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JknTC-0007xk-Mj for ding@lists.math.uh.edu; Sat, 12 Apr 2008 16:41:10 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JknT6-00038Q-H5 for ding@lists.math.uh.edu; Sat, 12 Apr 2008 16:41:10 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JknTG-0003dd-00 for ; Sat, 12 Apr 2008 23:41:14 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id m3CLf3dg026051; Sat, 12 Apr 2008 23:41:03 +0200 (MEST) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id E771413029; Sat, 12 Apr 2008 23:41:02 +0200 (CEST) X-Face: P05mdcZT&lL[-s2=mw~RsllZ0zZAb?vdE}.s, ding@gnus.org In-Reply-To: (Adrian Aichner's message of "Mon, 29 May 2006 00:56:58 +0200") User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2.50 (gnu/linux) X-DCC-Misty-Metrics: poseidon 1170; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66802 Archived-At: On Mon, May 29 2006, Adrian Aichner wrote: > I'd like to suggest following patch, which is required to make EOL > smilies work in erc. [...] > +2006-05-29 Adrian Aichner > + > + * smiley.el (smiley-regexp-alist): Make gnus smiley regexps match at > + end of region. Could you post a test message to demonstrate the difference or isn't it visible in Gnus? The patch doesn't apply. Did you only replace "\\W" with "\\B" everywhere? > diff -u -w -r7.15 smiley.el > --- lisp/smiley.el 15 Apr 2006 16:01:35 -0000 7.15 > +++ lisp/smiley.el 28 May 2006 22:54:15 -0000 > @@ -104,19 +104,19 @@ > > ;; The XEmacs version has a baroque, if not rococo, set of these. > (defcustom smiley-regexp-alist > - '(("\\(;-?)\\)\\W" 1 "blink") > - ("\\(:-]\\)\\W" 1 "forced") > - ("\\(8-)\\)\\W" 1 "braindamaged") > - ("\\(:-|\\)\\W" 1 "indifferent") > - ("\\(:-[/\\]\\)\\W" 1 "wry") > - ("\\(:-(\\)\\W" 1 "sad") > - ("\\(:-{\\)\\W" 1 "frown") > - ("\\(>:-)\\)\\W" 1 "evil") > - ("\\(;-(\\)\\W" 1 "cry") > - ("\\(X-)\\)\\W" 1 "dead") > - ("\\(:-D\\)\\W" 1 "grin") > + '(("\\(;-?)\\)\\B" 1 "blink") > + ("\\(:-]\\)\\B" 1 "forced") > + ("\\(8-)\\)\\B" 1 "braindamaged") > + ("\\(:-|\\)\\B" 1 "indifferent") > + ("\\(:-[/\\]\\)\\B" 1 "wry") > + ("\\(:-(\\)\\B" 1 "sad") > + ("\\(:-{\\)\\B" 1 "frown") > + ("\\(>:-)\\)\\B" 1 "evil") > + ("\\(;-(\\)\\B" 1 "cry") > + ("\\(X-)\\)\\B" 1 "dead") > + ("\\(:-D\\)\\B" 1 "grin") > ;; "smile" must be come after "evil" > - ("\\(\\^?:-?)\\)\\W" 1 "smile")) > + ("\\(\\^?:-?)\\)\\B" 1 "smile")) > "*A list of regexps to map smilies to images. > The elements are (REGEXP MATCH IMAGE), where MATCH is the submatch in > regexp to replace with IMAGE. IMAGE is the name of an image file in Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/