From: Tyler Smith <tyler.smith@mail.mcgill.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: special-display-regexps
Date: Fri, 27 Apr 2007 15:29:22 GMT [thread overview]
Message-ID: <slrnf34976.fqd.tyler.smith@blackbart.mynetwork> (raw)
In-Reply-To: mailman.2605.1177686747.7795.help-gnu-emacs@gnu.org
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
next parent reply other threads:[~2007-04-27 15:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2605.1177686747.7795.help-gnu-emacs@gnu.org>
2007-04-27 15:29 ` Tyler Smith [this message]
2007-04-27 16:00 ` special-display-regexps Drew Adams
[not found] <mailman.2610.1177696237.7795.help-gnu-emacs@gnu.org>
2007-04-27 19:43 ` special-display-regexps Tyler Smith
[not found] <mailman.2609.1177690056.7795.help-gnu-emacs@gnu.org>
2007-04-27 16:53 ` special-display-regexps Tyler Smith
2007-04-27 17:43 ` special-display-regexps Drew Adams
[not found] <mailman.2574.1177649782.7795.help-gnu-emacs@gnu.org>
2007-04-27 12:40 ` special-display-regexps Tyler Smith
2007-04-27 15:06 ` special-display-regexps Drew Adams
2007-04-27 2:20 special-display-regexps Tyler Smith
2007-04-27 4:49 ` special-display-regexps Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrnf34976.fqd.tyler.smith@blackbart.mynetwork \
--to=tyler.smith@mail.mcgill.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.