emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: smiley regexp problem


From: Rajsekar
Subject: Re: smiley regexp problem
Date: Mon, 21 Mar 2005 13:36:37 +0530
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/22.0.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> Rajsekar <address@hidden> writes:
>
>> Rajsekar <address@hidden> 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?
>
> 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.

-- 
    Rajsekar Manokaran
    IIT Madras




reply via email to

[Prev in Thread] Current Thread [Next in Thread]