From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rajsekar Newsgroups: gmane.emacs.devel Subject: Re: smiley regexp problem Date: Mon, 21 Mar 2005 02:53:19 +0530 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111354176 12161 80.91.229.2 (20 Mar 2005 21:29:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2005 21:29:36 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 20 22:29:36 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DD7yx-0007J4-MT for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2005 22:29:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD8Fv-00009Y-JN for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2005 16:46:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DD8Eo-0008Ds-6R for emacs-devel@gnu.org; Sun, 20 Mar 2005 16:45:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DD8Ec-00088a-GS for emacs-devel@gnu.org; Sun, 20 Mar 2005 16:45:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD8Eb-00086X-OI for emacs-devel@gnu.org; Sun, 20 Mar 2005 16:45:21 -0500 Original-Received: from [202.141.25.89] (helo=pridns.cs.iitm.ernet.in) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DD7tO-0007YK-0Z for emacs-devel@gnu.org; Sun, 20 Mar 2005 16:23:27 -0500 Original-Received: from meenakshi.cs.iitm.ernet.in (meenakshi.cs.iitm.ernet.in [10.6.10.2]) by pridns.cs.iitm.ernet.in (8.12.10/8.12.10) with ESMTP id j2KLT5uT002906 for ; Mon, 21 Mar 2005 02:59:05 +0530 Original-Received: from rajsekar.pc ([10.132.7.21]) by meenakshi.cs.iitm.ernet.in (8.11.2/8.11.2) with ESMTP id j2KL9xo23689 for ; Mon, 21 Mar 2005 02:40:00 +0530 Original-To: emacs-devel@gnu.org In-Reply-To: (rajsekar@cse.iitm.ernet.in's message of "Thu, 17 Mar 2005 17:25:38 +0530") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/22.0.50 (gnu/linux) 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:34849 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34849 Rajsekar writes: > 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, i do not > want to replace \W with something like [^)] because i lose the advantage of > \W (which works based on the current syntax). I want something like \\W > minus the character `('. Can someone tell me how to achieve this? I see from theory that the needed language is still a regexp, yet i am not able to express it in the language of regexp. Is it a shortcoming in the language? -- Rajsekar Manokaran IIT Madras