From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63265 Path: news.gmane.org!not-for-mail From: Adrian Aichner Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] gnus: Make gnus smiley regexps match at end of region Date: Mon, 29 May 2006 00:56:58 +0200 Organization: The XEmacs Project Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1148857807 8222 80.91.229.2 (28 May 2006 23:10:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 May 2006 23:10:07 +0000 (UTC) Original-X-From: ding-owner+m11792@lists.math.uh.edu Mon May 29 01:10:04 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FkUON-0002he-FC for ding-account@gmane.org; Mon, 29 May 2006 01:09:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FkUOA-00056f-00; Sun, 28 May 2006 18:09:38 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FkUBg-00056Z-00 for ding@lists.math.uh.edu; Sun, 28 May 2006 17:56:44 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FkUBc-0003F3-2L for ding@lists.math.uh.edu; Sun, 28 May 2006 17:56:43 -0500 Original-Received: from mailout08.sul.t-online.com ([194.25.134.20]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FkUBW-00059N-00 for ; Mon, 29 May 2006 00:56:34 +0200 Original-Received: from fwd26.aul.t-online.de by mailout08.sul.t-online.com with smtp id 1FkUBN-0001fp-00; Mon, 29 May 2006 00:56:25 +0200 Original-Received: from TANG.t-online.de (r4MXFyZZgeM5DoYQa6Fmp3Fh7NApPJU4AwUVmxGLlt1mTXcBoVCZEh@[84.153.107.80]) by fwd26.sul.t-online.de with esmtp id 1FkUBM-1YbOFc0; Mon, 29 May 2006 00:56:24 +0200 Original-To: ding@gnus.org X-Attribution: APA X-Generated-By: Patcher version 3.8 User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.5-b27 (windows-nt) X-ID: r4MXFyZZgeM5DoYQa6Fmp3Fh7NApPJU4AwUVmxGLlt1mTXcBoVCZEh@t-dialin.net X-TOI-MSGID: bae2a2c3-8a46-4efe-b090-a767d1b5e6fd X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63265 Archived-At: I'd like to suggest following patch, which is required to make EOL smilies work in erc. gnus ChangeLog patch: Diff command: cvs -q diff -U 0 Files affected: lisp/ChangeLog Index: lisp/ChangeLog =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/ChangeLog,v retrieving revision 7.1263 diff -u -U0 -r7.1263 ChangeLog --- lisp/ChangeLog 26 May 2006 17:50:12 -0000 7.1263 +++ lisp/ChangeLog 28 May 2006 22:56:02 -0000 @@ -0,0 +1,9 @@ +2006-05-29 Adrian Aichner + + * smiley.el (smiley-regexp-alist): Make gnus smiley regexps match at + end of region. + Best regards! Adrian gnus source patch: Diff command: cvs -f -z3 -q diff -u -w -N Files affected: lisp/smiley.el Index: lisp/smiley.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/smiley.el,v retrieving revision 7.15 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 -- Adrian Aichner mailto:adrian@xemacs.org http://www.xemacs.org/