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: Fri, 27 Apr 2007 09:00:31 -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 1177689724 20704 80.91.229.12 (27 Apr 2007 16:02:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2007 16:02:04 +0000 (UTC) To: "Tyler Smith" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 27 18:02:03 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 1HhStW-0001We-6b for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2007 18:02:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhSzN-0007Se-8y for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2007 12:08:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HhSys-00076u-Fw for help-gnu-emacs@gnu.org; Fri, 27 Apr 2007 12:07:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HhSyq-00075T-K0 for help-gnu-emacs@gnu.org; Fri, 27 Apr 2007 12:07:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhSyq-00075J-CW for help-gnu-emacs@gnu.org; Fri, 27 Apr 2007 12:07:32 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HhSsy-0001aS-53 for help-gnu-emacs@gnu.org; Fri, 27 Apr 2007 12:01:28 -0400 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l3RG1NwZ009738; Fri, 27 Apr 2007 11:01:23 -0500 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l3RFtA0Z015809; Fri, 27 Apr 2007 10:01:21 -0600 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-82-83.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 2651490711177689634; Fri, 27 Apr 2007 09:00:34 -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:43284 Archived-At: > >> 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? Zero or more characters except newline. > That should cover any possible configuration of > *help[R]()* ? Yes. > 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. Are you sure you're testing with `pop-to-buffer' or `display-buffer' (or something that calls one of those)? It works for me, using your examples. You can also test using `special-display-p', but you will need to ensure that `same-window-buffer-names' and `same-window-regexps' are not interfering with whatever you use for `special-display-buffer-regexps'.