help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: replacing a function with another one


From: lee
Subject: Re: replacing a function with another one
Date: Sat, 15 Mar 2014 21:05:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> How did you search for it?
>>    (search-forward-regexp "^\\s<")
>> works well for me.
>
> Maybe he's confused by the fact that \s< won't match multi-char
> comment starters.

That`s what I tried to use it with.  The documentation says it matches a
comment start and nowhere mentions that it doesn`t work for starters
like '//'.

So I used `comment-start', which may be nil by the time it`s used ...


-- 
Knowledge is volatile and fluid.  Software is power.



reply via email to

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