From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.help Subject: Re: regex-opt does not accept 'symbol as second arg? Date: Sat, 11 Oct 2008 14:20:04 +0200 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: ger.gmane.org 1223727637 16615 80.91.229.12 (11 Oct 2008 12:20:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Oct 2008 12:20:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Xah To: "Nikolaj Schumacher" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 11 14:21:33 2008 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 1KodTR-0007zi-2a for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Oct 2008 14:21:33 +0200 Original-Received: from localhost ([127.0.0.1]:57973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KodSM-0007KG-Tf for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Oct 2008 08:20:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KodS3-0007Ic-2j for help-gnu-emacs@gnu.org; Sat, 11 Oct 2008 08:20:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KodS1-0007G7-N1 for help-gnu-emacs@gnu.org; Sat, 11 Oct 2008 08:20:06 -0400 Original-Received: from [199.232.76.173] (port=40916 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KodS1-0007G0-IC for help-gnu-emacs@gnu.org; Sat, 11 Oct 2008 08:20:05 -0400 Original-Received: from fg-out-1718.google.com ([72.14.220.153]:35149) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KodS1-0000ms-ND for help-gnu-emacs@gnu.org; Sat, 11 Oct 2008 08:20:05 -0400 Original-Received: by fg-out-1718.google.com with SMTP id l26so686694fgb.30 for ; Sat, 11 Oct 2008 05:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Jvanzw8xpE3ZHNDpdiv4N0kx597ASNOLHiAfvzFBFuw=; b=NG+Z9dWQROknuc9U03yqgZ2ypsuU2oKpJxpVVbaqA9CiHA7w9TFexv1ovXQHpLDWE7 hYB5ojzqY32YMp4QpiQrAy3clc+xodropqSfZRA2TeXqRx6UTSMmtynZB+HYhYfI4Z9B Fyd0uLy3wrbH7HMqdoVRF4oymMcG6s37Ljwng= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=g18ls06kM4Y8MZFpYdRmx6Q3GeHSHtjwcSkEKTf3bni8ijLm62pyy3k9Em/mfltf7F Rld7R3EWrC7HPk2QtfL19bVilCq7o1/7U/8yW65ZJH+EMRew1/TR6MU1BlzWjJQXUvNx YHiAOYHdhxkUa2YqeLvdCbFiLULtEIdsRdg9E= Original-Received: by 10.86.26.11 with SMTP id 11mr2797470fgz.12.1223727604470; Sat, 11 Oct 2008 05:20:04 -0700 (PDT) Original-Received: by 10.86.65.3 with HTTP; Sat, 11 Oct 2008 05:20:04 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:58695 Archived-At: On Sat, Oct 11, 2008 at 2:10 PM, Nikolaj Schumacher wrote: > "Lennart Borgman" wrote: > >> On Sat, Oct 11, 2008 at 12:02 PM, Xah wrote: >>> the regexp-opt accept a second argument of "'word", but it doesn't >>> accept "'symbol"? >>> >>> Shouldn't it? > > Sure, why not. > >> Would not the semantics be exactly the same? > > No, "\\<\\(\\w\\|\\s_+\\)+" (word delimiters) doesn't match the entire > lisp symbol `-test'. Ok, I see. There is \\_< for symbols, I never noticed that (I thought that must be handled in the syntax table). Then I think Xah is right. >> But one thing I think would be useful is to be able to use numbers for >> the PAREN argument to get an explicitly numbered regexp group back. > > Is it possible to modify the numbering at all? If so, how? See (info "(elisp) Regexp Backslash") `\(?NUM: ... \)' is the "explicitly numbered group" construct. > regards, > Nikolaj Schumacher >