From: "Drew Adams" <drew.adams@oracle.com>
To: <help-gnu-emacs@gnu.org>
Subject: RE: special-display-regexps
Date: Thu, 26 Apr 2007 21:49:46 -0700 [thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICEEEFDMAA.drew.adams@oracle.com> (raw)
In-Reply-To: <slrnf32r0c.u18.tyler.smith@blackbart.mynetwork>
> I'm trying to set up special display frames. I want to use if for the
> following buffers:
>
> *Completions*
> *Help*
> *help[R](functionname)*
>
> I've tried the following regexps:
> (setq special-display-regexps
> '("^\\*Help\\*$"
> "^\\*Completions\\*$"
> "^\\*help\\[R\\]([a-z]*)\\*$"))
>
> This works fine for the first two, but the third doesn't catch. I've
> also tried with single \ and double \, as well as simpler things like
> "\*help.*" -- this works for regexp searches when I paste the buffer
> name into scratch, but they don't work for the special display. What
> am I doing wrong?
"[*]Help[*]" etc. is simpler.
You want the backslash to be in the string itself, so that the * is escaped.
To put a single backslash into a string in Lisp, you need to use \\\\. See
node "Regexp Special" in the Elisp manual.
In case it helps, here's a library that uses special-display for *Help* and
*Completions* (in a different way, however):
Code: http://www.emacswiki.org/cgi-bin/wiki/oneonone.el
Doc: http://www.emacswiki.org/cgi-bin/wiki/Help_and_Completions_Frames
next prev parent reply other threads:[~2007-04-27 4:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-27 2:20 special-display-regexps Tyler Smith
2007-04-27 4:49 ` Drew Adams [this message]
[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
[not found] <mailman.2605.1177686747.7795.help-gnu-emacs@gnu.org>
2007-04-27 15:29 ` special-display-regexps Tyler Smith
2007-04-27 16:00 ` special-display-regexps Drew Adams
[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.2610.1177696237.7795.help-gnu-emacs@gnu.org>
2007-04-27 19:43 ` special-display-regexps Tyler Smith
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DNEMKBNJBGPAOPIJOOICEEEFDMAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).