Gnus development mailing list
 help / color / mirror / Atom feed
From: Adrian Aichner <adrian@xemacs.org>
Subject: [PATCH] gnus: Make gnus smiley regexps match at end of region
Date: Mon, 29 May 2006 00:56:58 +0200	[thread overview]
Message-ID: <irnpep1h.fsf@smtprelay.t-online.de> (raw)


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  <adrian@xemacs.org>
+
+	* 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/




             reply	other threads:[~2006-05-28 22:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-28 22:56 Adrian Aichner [this message]
2006-05-29 21:50 ` Reiner Steib
2008-02-12 21:28   ` Adrian Aichner
2008-02-13 18:45     ` Reiner Steib
2008-04-12 21:40 ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=irnpep1h.fsf@smtprelay.t-online.de \
    --to=adrian@xemacs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).