From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: regex-opt does not accept 'symbol as second arg? Date: Sat, 11 Oct 2008 14:10:18 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223727052 14785 80.91.229.12 (11 Oct 2008 12:10:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Oct 2008 12:10:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Xah To: "Lennart Borgman" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 11 14:11:49 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 1KodK0-00050A-R2 for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Oct 2008 14:11:49 +0200 Original-Received: from localhost ([127.0.0.1]:43686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KodIw-0001iF-EX for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Oct 2008 08:10:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KodIe-0001hu-AJ for help-gnu-emacs@gnu.org; Sat, 11 Oct 2008 08:10:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KodIc-0001hS-Q8 for help-gnu-emacs@gnu.org; Sat, 11 Oct 2008 08:10:24 -0400 Original-Received: from [199.232.76.173] (port=41641 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KodIc-0001hI-Ne for help-gnu-emacs@gnu.org; Sat, 11 Oct 2008 08:10:22 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:47182) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KodIc-00082v-Hf for help-gnu-emacs@gnu.org; Sat, 11 Oct 2008 08:10:22 -0400 Original-Received: from thursday (BAH51bf.bah.pppool.de [77.135.81.191]) by dd18200.kasserver.com (Postfix) with ESMTP id D822018451231; Sat, 11 Oct 2008 14:10:22 +0200 (CEST) In-Reply-To: (Lennart Borgman's message of "Sat\, 11 Oct 2008 13\:41\:01 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) 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:58694 Archived-At: "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'. > 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? regards, Nikolaj Schumacher