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 15:29:22 GMT Organization: Business Internet Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1177688105 13990 80.91.229.12 (27 Apr 2007 15:35:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2007 15:35:05 +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 17:35:04 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 1HhSTQ-0005tm-2v for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2007 17:35:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhSZH-0003IE-2l for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2007 11:41:07 -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: 29 Original-NNTP-Posting-Host: 142.177.125.219 Original-X-Complaints-To: abuse@aliant.net Original-X-Trace: ursa-nb00s0.nbnet.nb.ca 1177687762 142.177.125.219 (Fri, 27 Apr 2007 12:29:22 ADT) Original-NNTP-Posting-Date: Fri, 27 Apr 2007 12:29:22 ADT Original-Xref: shelby.stanford.edu gnu.emacs.help:147680 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:43283 Archived-At: On 2007-04-27, Drew Adams 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]()* ? 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