From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tyler Smith Newsgroups: gmane.emacs.help Subject: Re: special-display-regexps Date: Fri, 27 Apr 2007 12:40:56 GMT Organization: Business Internet Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1177680888 15705 80.91.229.12 (27 Apr 2007 13:34:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2007 13:34:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 27 15:34:46 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HhQat-0001bf-Qu for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2007 15:34:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhQgk-0006bR-3m for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2007 09:40:42 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!newsfeed.news.ucla.edu!nrc-news.nrc.ca!newsflash.concordia.ca!News.Dal.Ca!ursa-nb00s0.nbnet.nb.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Lines: 41 Original-NNTP-Posting-Host: 142.177.125.219 Original-X-Complaints-To: abuse@aliant.net Original-X-Trace: ursa-nb00s0.nbnet.nb.ca 1177677656 142.177.125.219 (Fri, 27 Apr 2007 09:40:56 ADT) Original-NNTP-Posting-Date: Fri, 27 Apr 2007 09:40:56 ADT Original-Xref: shelby.stanford.edu gnu.emacs.help:147672 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:43275 Archived-At: On 2007-04-27, Drew Adams wrote: >> 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. > This is really confusing now. "^\\*Completions\\*$" matches *Completions*, although I'm not sure why since it is actually the regexp ^*Completions*$, since the double \ should get filtered out by the string reader?? and "^[*]help.*" still doesn't match *help[R](help-topic)* , but the same thing entered in a regexp search will match. Any other advice? Thanks, Tyler