From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: special-display-regexps Date: Thu, 26 Apr 2007 21:49:46 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1177649443 31551 80.91.229.12 (27 Apr 2007 04:50:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2007 04:50:43 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 27 06:50:37 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 1HhIPk-0002Xn-Gb for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2007 06:50:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhIVY-0008Bt-E4 for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2007 00:56:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HhIVI-0008Bo-Q2 for help-gnu-emacs@gnu.org; Fri, 27 Apr 2007 00:56:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HhIVH-0008Bc-Eh for help-gnu-emacs@gnu.org; Fri, 27 Apr 2007 00:56:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhIVH-0008BZ-6k for help-gnu-emacs@gnu.org; Fri, 27 Apr 2007 00:56:19 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HhIPS-00005s-DY for help-gnu-emacs@gnu.org; Fri, 27 Apr 2007 00:50:18 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l3R4oFR3004407 for ; Thu, 26 Apr 2007 22:50:15 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l3R2RFP5029019 for ; Thu, 26 Apr 2007 22:50:15 -0600 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-82-83.vpn.oracle.com by acsmt351.oracle.com with ESMTP id 2650918401177649387; Thu, 26 Apr 2007 21:49:47 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-detected-kernel: Linux 2.4-2.6 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:43254 Archived-At: > 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