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

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

Re: special-display-regexps


From: Tyler Smith
Subject: Re: special-display-regexps
Date: Fri, 27 Apr 2007 15:29:22 GMT
User-agent: slrn/0.9.8.1pl1 (Debian)

On 2007-04-27, Drew Adams <drew.adams@oracle.com> wrote:
>
>> and "^[*]help.*" still doesn't match *help[R](help-topic)* , but the
>> same thing entered in a regexp search will match.
>
> The problem with your original code was only this: You have [a-z]*, when you
> need [-a-z]*. In your example, you have "(help-topic)", which includes the
> character `-', which is not a lowercase letter.
>

Ok, but what about the code here: "^[*]help.*" - that should match
anything that starts with *help, followed by one or more of any
character, no? That should cover any possible configuration of
*help[R](<anything>)* ? It works in regexp searches within a buffer,
just not for a buffer name. I checked the value returned by
(buffer-name), so I'm pretty sure I'm trying to match the right
phrase. 

In actual practice there isn't a hyphen inside the round brackets very
often (ever?), and not in any of my test cases, which include things
like:

*help[R](matrix)*
*help[R](nrow)*
*help[R](list)*

Thanks for your help!

Tyler


reply via email to

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