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 17:42:27 +0530 Message-ID: References: <13b1f5a13aeafb.13aeafb13b1f5a@net.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111409723 6729 80.91.229.2 (21 Mar 2005 12:55:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2005 12:55:23 +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:55:22 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DDMR4-0008WU-4z for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2005 13:55:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDMiA-0000E7-27 for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2005 08:12:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DDMMx-0006O9-Oo for emacs-devel@gnu.org; Mon, 21 Mar 2005 07:50:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DDMMv-0006M7-8r for emacs-devel@gnu.org; Mon, 21 Mar 2005 07:50:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDMIJ-0004iZ-Bl for emacs-devel@gnu.org; Mon, 21 Mar 2005 07:46:07 -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 1DDLlt-0004fS-1P; Mon, 21 Mar 2005 07:12:39 -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 j2LCIFuT009630; Mon, 21 Mar 2005 17:48:15 +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 j2LBx5o05980; Mon, 21 Mar 2005 17:29:08 +0530 Original-To: LENNART BORGMAN In-Reply-To: <13b1f5a13aeafb.13aeafb13b1f5a@net.lu.se> (LENNART BORGMAN's message of "Mon, 21 Mar 2005 11:47:59 +0100") 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:34879 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34879 LENNART BORGMAN writes: > > 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): [^)] The point is about \\W. \\W matches any character that is not a word-constituent. I want `:-)' to become a smile if it is followed by any of `\\W' but not ')'. If I put it as "\\(:-?)\\)[^)]", then even strings like "smile_within:-)strings" also get smileys. So I am looking for a way to specify "characters in \\W but no ')' in the language of regexps". -- Rajsekar Manokaran IIT Madras