From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shiyuan Newsgroups: gmane.emacs.help Subject: Re:Re: regular expression in find-tag-regexp Date: Fri, 30 Sep 2011 17:55:52 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec5216015f0ca8204ae308663 X-Trace: dough.gmane.org 1317423367 17853 80.91.229.12 (30 Sep 2011 22:56:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 30 Sep 2011 22:56:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 01 00:56:04 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R9lzv-0007Pa-5z for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Oct 2011 00:56:03 +0200 Original-Received: from localhost ([::1]:57364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9lzu-0004TE-AQ for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Sep 2011 18:56:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9lzp-0004T7-Ag for help-gnu-emacs@gnu.org; Fri, 30 Sep 2011 18:55:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9lzo-0000Fg-7V for help-gnu-emacs@gnu.org; Fri, 30 Sep 2011 18:55:57 -0400 Original-Received: from mail-pz0-f47.google.com ([209.85.210.47]:46130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9lzm-0000F1-6B; Fri, 30 Sep 2011 18:55:54 -0400 Original-Received: by pzk4 with SMTP id 4so5656960pzk.6 for ; Fri, 30 Sep 2011 15:55:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Potw1DdFVxo5v2NqJHeE/kfwzs61jiF/m821V/qRxw4=; b=jw1rqVosggx3PbSO28sXEB0GEfH2Fod2KBtmC+D6HdTYhz9iZe5hdf5ReT5Szj+LPF Cp7TQqe4cALCtqYS0lhF4HZ+jNcRuGsq113Iua/sVqKA41cKMIuZOSf6r9FBSG3xliuC 9Z+DJ6052l+qB9xdCF9djJE6CD3tPX+KNS15U= Original-Received: by 10.68.19.100 with SMTP id d4mr61651031pbe.34.1317423352433; Fri, 30 Sep 2011 15:55:52 -0700 (PDT) Original-Received: by 10.142.68.6 with HTTP; Fri, 30 Sep 2011 15:55:52 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.47 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82391 Archived-At: --bcaec5216015f0ca8204ae308663 Content-Type: text/plain; charset=ISO-8859-1 ------------------------------ Message: 3 Date: Fri, 30 Sep 2011 09:53:17 +0300 From: Eli Zaretskii To: help-gnu-emacs@gnu.org Subject: Re: regular expression in find-tag-regexp Message-ID: <83aa9med2a.fsf@gnu.org> >> Date: Thu, 29 Sep 2011 17:54:00 -0500 >> From: Shiyuan >> >> I notice that the same regular expression will give different matching >> result in find-tag-regexp (C-M-.) and in isearch-forward-regexp (C-M-S). \ >Where did you use C-M-S? Was it in the buffer that visits the TAGS >table, or was it in the buffer where you have the source file? >find-tag-regexp does the former. It uses re-search-forward, btw, not >isearch-forward-regexp. I use find-tag-regexp in the buffer visiting the source file(.cpp/.h file) and would like to get to the definition of some functions in some other files. >> If I use the Mat.*GetArray.* to search, find-tag-regexp will only match >> MatGetArray_SeqAIJ but isearch-forward-regexp will match all except the >> lower case matgetarray(). If I use the MatGetArray, find-tag-regexp will >> match all of them including the matgetarray()? Anyone can explain why it is >> so? If I want find-tag-regexp to find all of them( with or without the >> matgetarray()), what regexp should I use? Thank you. >It would help if you show what's in your TAGS file for these >functions. I open the TAGS with emacs and the "^?" belows indicate some unprintable characters. PetscErrorCode MatGetArray_SeqAIJ PetscErrorCode MatGetArray(^?6203,228137 PetscErrorCode MatGetArray_SeqBAIJ(^?2598,103252 void PETSC_STDCALL matgetarrayf90_(^?28,985 void PETSC_STDCALL matgetarray_(^?189,8574 PetscErrorCode MatGetArray_MPIDense(^?186,6182 PetscErrorCode MatGetArray_SeqDense(^?1428,50013 If I use re-search-forward to search the regexp Mat.*GetArray.* on the buffer visitng the TAGS file, it can also locate all the lines above. So find-tag-regexp with the exact same regexp only gives me one match? and btw what does the number mean in the TAGS file? Thanks --bcaec5216015f0ca8204ae308663 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
------------------------------

Message: 3
Date: Fri, 30 Sep 2011 09:53:17 +0300
From: Eli Zaretskii <e= liz@gnu.org>
To: help-gnu-em= acs@gnu.org
Subject: Re: regular expression in find-tag-regexp
Message-ID: <83aa9med2a.fsf@gnu.org>

>> Date: Thu, 29 Sep 2011 17:54:00 -0500
>> From: Shiyuan <gshy2014@gmail.com>
>>
>> =A0 =A0 =A0I notice that the same regular expression will give dif= ferent matching
>> result in find-tag-regexp (C-M-.) and in isearch-forward-regexp (C= -M-S). \

>Where did you use C-M-S? =A0Was it in the buffer that visits the TAGS >table, or was it in the buffer where you have the source file?
>find-tag-regexp does the former. =A0It uses re-search-forward, btw, not=
>isearch-forward-regexp.

I use find-tag-regexp in the buffer visi= ting the source file(.cpp/.h file) and would like to get to the definition = of some functions in some other files.

>> If I use the Mat.*GetArray.* to search, find-tag-regexp will only = match
>> MatGetArray_SeqAIJ but isearch-forward-regexp will match all excep= t the
>> lower case matgetarray(). If I use the MatGetArray, find-tag-regex= p will
>> match all of them including the matgetarray()? Anyone can explain = why it is
>> so? If I want find-tag-regexp to find all of them( with or without= the
>> matgetarray()), what regexp should I use? Thank you.

>It would help if you show what's in your TAGS file for these
>functions.
I open the TAGS with emacs and the "^?" belows = indicate=A0 some unprintable characters.
PetscErrorCode MatGetArray_Seq= AIJ
PetscErrorCode=A0 MatGetArray(^?6203,228137
PetscErrorCode MatGet= Array_SeqBAIJ(^?2598,103252
void PETSC_STDCALL matgetarrayf90_(^?28,985
void PETSC_STDCALL matgetarray_(^?189,8574
PetscErrorCode MatGetArray_MP= IDense(^?186,6182
PetscErrorCode MatGetArray_SeqDense(^?1428,50013

If I use re-search-= forward to search the regexp Mat.*GetArray.* on the buffer visitng the TAGS= file, it can also locate all the lines above. So find-tag-regexp with the = exact same regexp only gives me one match?=A0 and btw what does the number = mean in the TAGS file?

Thanks
--bcaec5216015f0ca8204ae308663--