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: Regexp for matching a symbol (identifier) in emacs-lisp Date: Fri, 10 Oct 2008 20:25:16 +0200 Message-ID: References: <48EF727E.6050808@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1223663444 696 80.91.229.12 (10 Oct 2008 18:30:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2008 18:30:44 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, =?ISO-8859-1?Q?Nordl=F6w?= To: "Nikolaj Schumacher" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 10 20:31:43 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 1KoMlv-0001X1-N4 for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2008 20:31:32 +0200 Original-Received: from localhost ([127.0.0.1]:57711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoMkr-0005IO-KU for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2008 14:30:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KoMfv-0003Bb-Nv for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 14:25:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KoMfu-0003BF-7l for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 14:25:19 -0400 Original-Received: from [199.232.76.173] (port=48022 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoMft-0003BC-Vf for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 14:25:18 -0400 Original-Received: from gv-out-0910.google.com ([216.239.58.191]:20565) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KoMfu-0001kh-54 for help-gnu-emacs@gnu.org; Fri, 10 Oct 2008 14:25:18 -0400 Original-Received: by gv-out-0910.google.com with SMTP id i36so263856gve.17 for ; Fri, 10 Oct 2008 11:25:16 -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=c7SHZY+FQOWqrPIA6k59qNQsUuX35P0756Hm3BGp55Y=; b=qpjSPDuN5a2C7SDB2Sm0zrTiGOTawCMx4CRzrkNSgUrWAZmxEPkC8COULCq1EUgq0U VZRMmz4kLkwMoPnnUaVq7U6iZeHPOHAMCLOQnMqJnUjNWx121AtuOrmU3Fp+5PM5wjwn u+gT81RKwgk4x2ypYYP80eM5nZ/qyakILOsKI= 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=kgNk+t9PA0t67AYh2sO+t4HqDbY8EvXloEw38RxMPSfrI1BMy4+oW4JwE82a/x0Hcr t8kEQ+DTNFVx1mPllebRjReHM+Ngi+JvL2mt7r9FVLkonYUG9FXMFIwJpKGShDobVzLa k9hwSxkZkmBhSiOA1WuMQurz0vyZoKxnO0D/Y= Original-Received: by 10.86.80.5 with SMTP id d5mr1955390fgb.19.1223663116456; Fri, 10 Oct 2008 11:25:16 -0700 (PDT) Original-Received: by 10.86.65.3 with HTTP; Fri, 10 Oct 2008 11:25:16 -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:58676 Archived-At: On Fri, Oct 10, 2008 at 8:22 PM, Nikolaj Schumacher wrote: > "Lennart Borgman (gmail)" wrote: > >> Nordl=F6w 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. Yes, my bad.