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: Regexp for matching a symbol (identifier) in emacs-lisp Date: Fri, 10 Oct 2008 20:22:56 +0200 Message-ID: References: <48EF727E.6050808@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1223663284 32521 80.91.229.12 (10 Oct 2008 18:28:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2008 18:28:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, =?utf-8?Q?Nordl=C3=B6w?= To: "Lennart Borgman \(gmail\)" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 10 20:29:02 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 1KoMim-0008E8-Fm for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2008 20:28:16 +0200 Original-Received: from localhost ([127.0.0.1]:55825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoMhi-0003ku-DL for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2008 14:27:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KoMdi-0002Kc-Gp for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 14:23:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KoMdh-0002Jw-34 for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 14:23:01 -0400 Original-Received: from [199.232.76.173] (port=55212 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoMdg-0002Jp-D0 for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 14:23:00 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:33706) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KoMdg-0001Vz-GF for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 14:23:00 -0400 Original-Received: from thursday (BAH214a.bah.pppool.de [77.135.33.74]) by dd18200.kasserver.com (Postfix) with ESMTP id 3DEA618074837; Fri, 10 Oct 2008 20:23:03 +0200 (CEST) In-Reply-To: <48EF727E.6050808@gmail.com> (Lennart Borgman's message of "Fri\, 10 Oct 2008 17\:19\:26 +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:58675 Archived-At: "Lennart Borgman (gmail)" wrote: > Nordl=C3=B6w wrote: >> Does Emacs provide a shorter way of matching an emacs-lisp symbol >> (identifier) than the following: >> "\\(" "\\(?:" "\\w\\|\\s_" "\\)+" "\\)" > > > You do not need two level of parenthesis. Use either the shy group or > the submatch group type parenthesis. He needs two if he wants to match the entire symbol in a matching group, though. regards, Nikolaj Schumacher