From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LENNART BORGMAN Newsgroups: gmane.emacs.devel Subject: Re: smiley regexp problem Date: Mon, 21 Mar 2005 11:47:59 +0100 Message-ID: <13b1f5a13aeafb.13aeafb13b1f5a@net.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1111407035 30349 80.91.229.2 (21 Mar 2005 12:10:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2005 12:10:35 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 21 13:10:34 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DDLjm-0001Lg-JQ for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2005 13:10:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDLzX-0006q0-PH for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2005 07:26:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DDLAM-0007c8-3d for emacs-devel@gnu.org; Mon, 21 Mar 2005 06:33:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DDKmz-0005ri-4V for emacs-devel@gnu.org; Mon, 21 Mar 2005 06:09:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDKhB-00057q-R5 for emacs-devel@gnu.org; Mon, 21 Mar 2005 06:03:43 -0500 Original-Received: from [130.235.208.46] (helo=piraten.student.lu.se) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DDKS0-0008Kj-IX; Mon, 21 Mar 2005 05:48:00 -0500 Original-Received: from net.lu.se (localhost [127.0.0.1]) by piraten.student.lu.se (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0IDP00LZ17BZ8G@piraten.student.lu.se>; Mon, 21 Mar 2005 11:47:59 +0100 (MET) Original-Received: from [212.209.42.132] by piraten.student.lu.se (mshttpd); Mon, 21 Mar 2005 11:47:59 +0100 Original-To: Rajsekar X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.14 (built Mar 18 2003) Content-language: sv Content-disposition: inline X-Accept-Language: sv Priority: normal X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34877 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34877 > >>> I want to setup the smileys similar to gaim. > >>> So I put > >>> > >>> "\\(:)\\)\\W" for smile. > >>> and > >>> "\\(:))\\)\\W" for laugh. > >>> > >>> The problem is that :)) also contains a :). At the same time, ... > > Why don't you match "laugh" first, and only look for a smile if no > > laugh is can be found? > > The code to add the smiley (gnus/smiley.el) does not allow me to > do that. > If I have `:))', both, smile and laugh pictures get inserted. Maybe you could add a complemented character set to the first one after the smile (with whatever slashes there are needed to get this to work): [^)]