From MAILER-DAEMON Tue Apr 03 20:46:34 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFEMs-0007hA-5Z
	for mharc-bug-global@gnu.org; Tue, 03 Apr 2012 20:46:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37112)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <denim@ma1.annie.ne.jp>) id 1SF4Id-0000Tl-Qw
	for bug-global@gnu.org; Tue, 03 Apr 2012 10:01:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <denim@ma1.annie.ne.jp>) id 1SF4IT-0001e0-1O
	for bug-global@gnu.org; Tue, 03 Apr 2012 10:01:31 -0400
Received: from mx61.ms.so-net.ne.jp ([202.238.83.161]:59804)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <denim@ma1.annie.ne.jp>) id 1SF4IS-0001ao-Hc
	for bug-global@gnu.org; Tue, 03 Apr 2012 10:01:20 -0400
Received: from [192.168.1.113] (113x42x22x91.ap113.ftth.ucom.ne.jp
	[113.42.22.91]) (authenticated)
	by mx61.ms.so-net.ne.jp  with ESMTP id q33E11oF011453
	for <bug-global@gnu.org>; Tue, 3 Apr 2012 23:01:01 +0900 (JST)
Date: Tue, 03 Apr 2012 23:01:22 +0900
From: Yushi Oka <denim@ma1.annie.ne.jp>
To: bug-global@gnu.org
Subject: Re: [RFC] search functions which ignore case.
In-Reply-To: <201107040606.p6466X8X002852@tamacom.com>
References: <201107040606.p6466X8X002852@tamacom.com>
Message-Id: <20120403222018.5DE1.292C7E69@ma1.annie.ne.jp>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-2022-JP"
Content-Transfer-Encoding: 7bit
X-Mailer: Becky! ver. 2.50 [ja]
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (1203?)
X-Received-From: 202.238.83.161
X-Mailman-Approved-At: Tue, 03 Apr 2012 20:46:32 -0400
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-global>
List-Post: <mailto:bug-global@gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Apr 2012 14:01:40 -0000

Hi,

On Mon, 04 Jul 2011 15:06:33 +0900
"Shigio YAMAGUCHI" <shigio@gnu.org> wrote:

 $B!:!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1(B
| Hi all,
| I would like to make search functions which ignore case available in gtags.el.
| 
| How about having each gtags-find-XXX command (gtags-find-tag, gtags-find-file,...)
| to refer variable 'case-fold-search'?
| Though it is a INCOMPATIBLE CHANGE, this is suitable for the long.
| Because this follows the convention of Emacs.
| 
| What do you think?

I think,
It is better to refer both variable 'case-fold-search' and defcustom.
Because I would like to ignore case in 'isearch', but not in global.

for example,

$ diff -ur gtags.el.3.4 gtags.el
--- gtags.el.3.4	2012-03-16 09:59:32.000000000 +0900
+++ gtags.el	2012-04-03 22:09:47.359375000 +0900
@@ -105,6 +105,11 @@
   :group 'gtags
   :type 'boolean)
 
+(defcustom gtags-folllows-case-fold-search nil
+  "*If non-nil, gtags follows 'case-fold-search' variable."
+  :group 'gtags
+  :type 'boolean)
+
 (defcustom gtags-disable-pushy-mouse-mapping nil
   "*If non-nil, mouse key mapping is disabled."
   :group 'gtags
@@ -384,7 +389,7 @@
                       (t                  "-c")))
         (complete-list (make-vector 63 0))
         (prev-buffer (current-buffer)))
-    (if case-fold-search
+    (if (and gtags-folllows-case-fold-search case-fold-search)
         (setq option (concat option "i")))
     ; build completion list
     (set-buffer (generate-new-buffer "*Completions*"))
@@ -659,7 +664,7 @@
     (setq flag-char (string-to-char flag))
     ; Use always ctags-x format.
     (setq option "-x")
-    (if case-fold-search
+    (if (and gtags-folllows-case-fold-search case-fold-search)
         (setq option (concat option "i")))
     (if (char-equal flag-char ?C)
         (setq context (concat "--from-here=" (number-to-string (gtags-current-lineno)) ":" (gtags-buffer-file-name)))

-- 
Yushi Oka <denim@ma1.annie.ne.jp>



From MAILER-DAEMON Tue Apr 03 21:28:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFF1H-0007Zr-EO
	for mharc-bug-global@gnu.org; Tue, 03 Apr 2012 21:28:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52542)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@tamacom.com>) id 1SFF1E-0007Za-TD
	for bug-global@gnu.org; Tue, 03 Apr 2012 21:28:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <shigio@tamacom.com>) id 1SFF1C-00016t-SI
	for bug-global@gnu.org; Tue, 03 Apr 2012 21:28:16 -0400
Received: from msa103lp.auone-net.jp ([222.3.140.166]:46399)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@tamacom.com>) id 1SFF1C-00016K-Io
	for bug-global@gnu.org; Tue, 03 Apr 2012 21:28:14 -0400
Received: from choota.tamacom.com (KHP059138043202.ppp-bb.dion.ne.jp
	[59.138.43.202])
	by msa103lp.auone-net.jp (au one net msa) with ESMTP id A9015300038;
	Wed,  4 Apr 2012 10:28:09 +0900 (JST)
Received: from choota.tamacom.com (localhost [127.0.0.1]) by
	choota.tamacom.com (8.13.6/) with ESMTP id q341S8PO002588;
	Wed, 4 Apr 2012 10:28:08 +0900 (JST)
Message-Id: <201204040128.q341S8PO002588@tamacom.com>
To: Yushi Oka <denim@ma1.annie.ne.jp>
Subject: Re: [RFC] search functions which ignore case.
From: "Shigio YAMAGUCHI" <shigio@gnu.org>
References: <20120403222018.5DE1.292C7E69@ma1.annie.ne.jp>
In-reply-to: Message from Yushi Oka <denim@ma1.annie.ne.jp> of "Tue,
	03 Apr 2012 23:01:22 JST."
	<20120403222018.5DE1.292C7E69@ma1.annie.ne.jp>
Date: Wed, 04 Apr 2012 10:28:08 +0900
Sender: shigio@tamacom.com
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 222.3.140.166
Cc: bug-global@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-global>
List-Post: <mailto:bug-global@gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Apr 2012 01:28:18 -0000

Hi,
> Hi,
> 
> On Mon, 04 Jul 2011 15:06:33 +0900
> "Shigio YAMAGUCHI" <shigio@gnu.org> wrote:
> 
>  $B!:!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1(B
> | Hi all,
> | I would like to make search functions which ignore case available in gtags.el.
> | 
> | How about having each gtags-find-XXX command (gtags-find-tag, gtags-find-file,...)
> | to refer variable 'case-fold-search'?
> | Though it is a INCOMPATIBLE CHANGE, this is suitable for the long.
> | Because this follows the convention of Emacs.
> | 
> | What do you think?
> 
> I think,
> It is better to refer both variable 'case-fold-search' and defcustom.
> Because I would like to ignore case in 'isearch', but not in global.
> 

I agree. It is more flexible.
How about the following?

(defcustom gtags-ignore-case 'follow-case-fold-search
  "*Controls whether or not ignore case in each search."
  :type '(choice (const :tag "Follows 'case-fold-search variable" follow-case-fold-search)
                 (const :tag "Ignore case" t)
                 (const :tag "Distinguish case" nil))
  :group 'gtags)


[Usage of gtags-ignore-case]

(setq gtags-ignore-case t)                              ; ignore case

(setq gtags-ignore-case nil)                            ; distinguish case

(setq gtags-ignore-case 'follow-case-fold-search)       ; follow 'case-fold-search variable

The default is 'follow-case-fold-search.

What do you think?

Shigio
--
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


From MAILER-DAEMON Wed Apr 04 11:24:00 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFS40-0001kg-8j
	for mharc-bug-global@gnu.org; Wed, 04 Apr 2012 11:24:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36200)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <denim@ma1.annie.ne.jp>) id 1SFQUy-0005Mr-Tg
	for bug-global@gnu.org; Wed, 04 Apr 2012 09:43:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <denim@ma1.annie.ne.jp>) id 1SFQUs-0001fX-ER
	for bug-global@gnu.org; Wed, 04 Apr 2012 09:43:44 -0400
Received: from mx62.ms.so-net.ne.jp ([202.238.83.162]:47594)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <denim@ma1.annie.ne.jp>) id 1SFQUr-0001f3-Uk
	for bug-global@gnu.org; Wed, 04 Apr 2012 09:43:38 -0400
Received: from [192.168.1.127] (113x42x22x91.ap113.ftth.ucom.ne.jp
	[113.42.22.91]) (authenticated)
	by mx62.ms.so-net.ne.jp  with ESMTP id q34DhXnk015576
	for <bug-global@gnu.org>; Wed, 4 Apr 2012 22:43:34 +0900 (JST)
Date: Wed, 04 Apr 2012 22:43:35 +0900
From: Yushi Oka <denim@ma1.annie.ne.jp>
To: bug-global@gnu.org
Subject: Re: [RFC] search functions which ignore case.
In-Reply-To: <201204040128.q341S8PO002588@tamacom.com>
References: <20120403222018.5DE1.292C7E69@ma1.annie.ne.jp>
	<201204040128.q341S8PO002588@tamacom.com>
Message-Id: <20120404224333.7B2A.292C7E69@ma1.annie.ne.jp>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Mailer: Becky! ver. 2.56.05 [ja]
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (1203?)
X-Received-From: 202.238.83.162
X-Mailman-Approved-At: Wed, 04 Apr 2012 11:23:58 -0400
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-global>
List-Post: <mailto:bug-global@gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Apr 2012 13:43:50 -0000

Hi,

> > On Mon, 04 Jul 2011 15:06:33 +0900
> > "Shigio YAMAGUCHI" <shigio@gnu.org> wrote:
> > 
> > I think,
> > It is better to refer both variable 'case-fold-search' and defcustom.
> > Because I would like to ignore case in 'isearch', but not in global.
> > 
> 
> I agree. It is more flexible.
> How about the following?
> 
> (defcustom gtags-ignore-case 'follow-case-fold-search
>   "*Controls whether or not ignore case in each search."
>   :type '(choice (const :tag "Follows 'case-fold-search variable" follow-case-fold-search)
>                  (const :tag "Ignore case" t)
>                  (const :tag "Distinguish case" nil))
>   :group 'gtags)
> 
> 
> [Usage of gtags-ignore-case]
> 
> (setq gtags-ignore-case t)                              ; ignore case
> 
> (setq gtags-ignore-case nil)                            ; distinguish case
> 
> (setq gtags-ignore-case 'follow-case-fold-search)       ; follow 'case-fold-search variable

Thank you.
It's a good idea.
Some people would like to distinguish case in 'isearch', but not in
'GLOBAL', that's no problem.

> The default is 'follow-case-fold-search.
> 
> What do you think?

I think it is better that gtags-ignore-case's default value is 'nil'.
Because it is compatible for previous release (before 6.0) of GLOBAL.
Isn't it comfortable for many old users?

-- 
Yushi Oka <denim@ma1.annie.ne.jp>



From MAILER-DAEMON Wed Apr 04 20:14:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFaLO-00020k-BA
	for mharc-bug-global@gnu.org; Wed, 04 Apr 2012 20:14:30 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35763)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@tamacom.com>) id 1SFaLM-00020R-4h
	for bug-global@gnu.org; Wed, 04 Apr 2012 20:14:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <shigio@tamacom.com>) id 1SFaLF-00071K-M8
	for bug-global@gnu.org; Wed, 04 Apr 2012 20:14:27 -0400
Received: from msa102lp.auone-net.jp ([222.3.140.165]:48551)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <shigio@tamacom.com>) id 1SFaLF-00070b-Cf
	for bug-global@gnu.org; Wed, 04 Apr 2012 20:14:21 -0400
Received: from choota.tamacom.com (KHP059138043202.ppp-bb.dion.ne.jp
	[59.138.43.202])
	by msa102lp.auone-net.jp (au one net msa) with ESMTP id D66EB668039;
	Thu,  5 Apr 2012 09:14:17 +0900 (JST)
Received: from choota.tamacom.com (localhost [127.0.0.1]) by
	choota.tamacom.com (8.13.6/) with ESMTP id q350EG7k002465;
	Thu, 5 Apr 2012 09:14:16 +0900 (JST)
Message-Id: <201204050014.q350EG7k002465@tamacom.com>
To: Yushi Oka <denim@ma1.annie.ne.jp>
Subject: Re: [RFC] search functions which ignore case.
From: "Shigio YAMAGUCHI" <shigio@gnu.org>
References: <20120404224333.7B2A.292C7E69@ma1.annie.ne.jp>
In-reply-to: Message from Yushi Oka <denim@ma1.annie.ne.jp> of "Wed,
	04 Apr 2012 22:43:35 JST."
	<20120404224333.7B2A.292C7E69@ma1.annie.ne.jp>
Date: Thu, 05 Apr 2012 09:14:16 +0900
Sender: shigio@tamacom.com
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 222.3.140.165
Cc: bug-global@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-global>
List-Post: <mailto:bug-global@gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Apr 2012 00:14:29 -0000

> I think it is better that gtags-ignore-case's default value is 'nil'.
> Because it is compatible for previous release (before 6.0) of GLOBAL.
> Isn't it comfortable for many old users?

Though I understand it, I would like to make its specification compatible
with 6.0. In fact, I had changed it according to the following procedure.

> To: bug-global@gnu.org
> From: "Shigio YAMAGUCHI" <shigio@gnu.org>
> Subject: [RFC] search functions which ignore case.
> Date: Mon, 04 Jul 2011 15:06:33 +0900
> 
> Hi all,
> I would like to make search functions which ignore case available in gtags.el.
> 
> How about having each gtags-find-XXX command (gtags-find-tag, gtags-find-file,...)
> to refer variable 'case-fold-search'?
> Though it is a INCOMPATIBLE CHANGE, this is suitable for the long.
> Because this follows the convention of Emacs.
> 
> What do you think?

    |
    v

> Version 6.0 - September 7 2011
...
> [INCOMPATIBLE CHANGES]
> o gtags.el: Now each gtags-find-xxx command follows 'case-fold-search' variable.

Since there was no contrary to the RFC, it must be considered that
there was consent about it.
--
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


From MAILER-DAEMON Wed Apr 11 12:42:03 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SI0cN-0000I8-Iw
	for mharc-bug-global@gnu.org; Wed, 11 Apr 2012 12:42:03 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54927)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <denim@ma1.annie.ne.jp>) id 1SHyF3-0006Em-AQ
	for bug-global@gnu.org; Wed, 11 Apr 2012 10:09:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <denim@ma1.annie.ne.jp>) id 1SHyEx-0007uc-Mh
	for bug-global@gnu.org; Wed, 11 Apr 2012 10:09:48 -0400
Received: from mx62.ms.so-net.ne.jp ([202.238.83.162]:55173)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <denim@ma1.annie.ne.jp>) id 1SHyEx-0007sG-6z
	for bug-global@gnu.org; Wed, 11 Apr 2012 10:09:43 -0400
Received: from [192.168.1.113] (113x42x22x91.ap113.ftth.ucom.ne.jp
	[113.42.22.91]) (authenticated)
	by mx62.ms.so-net.ne.jp  with ESMTP id q3BE9ZDo012450
	for <bug-global@gnu.org>; Wed, 11 Apr 2012 23:09:35 +0900 (JST)
Date: Wed, 11 Apr 2012 23:09:32 +0900
From: Yushi Oka <denim@ma1.annie.ne.jp>
To: bug-global@gnu.org
Subject: Re: [RFC] search functions which ignore case.
In-Reply-To: <201204050014.q350EG7k002465@tamacom.com>
References: <20120404224333.7B2A.292C7E69@ma1.annie.ne.jp>
	<201204050014.q350EG7k002465@tamacom.com>
Message-Id: <20120411230812.1D53.292C7E69@ma1.annie.ne.jp>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-2022-JP"
Content-Transfer-Encoding: 7bit
X-Mailer: Becky! ver. 2.50 [ja]
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (1203?)
X-Received-From: 202.238.83.162
X-Mailman-Approved-At: Wed, 11 Apr 2012 12:42:02 -0400
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-global>
List-Post: <mailto:bug-global@gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Apr 2012 14:09:55 -0000

Hi.

I'm sorry for this late reply.

On Thu, 05 Apr 2012 09:14:16 +0900
"Shigio YAMAGUCHI" <shigio@gnu.org> wrote:

 $B!:!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1(B
| > I think it is better that gtags-ignore-case's default value is 'nil'.
| > Because it is compatible for previous release (before 6.0) of GLOBAL.
| > Isn't it comfortable for many old users?
| 
| Though I understand it, I would like to make its specification compatible
| with 6.0. In fact, I had changed it according to the following procedure.
|
| Since there was no contrary to the RFC, it must be considered that
| there was consent about it.

I know that you had changed it according to the correct procedure.
But I had overlooked the RFC, so I expressed my opinion.
I'll leave it to you.

Thank you.

-- 
Yushi Oka <denim@ma1.annie.ne.jp>



From MAILER-DAEMON Fri Apr 27 10:47:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNmS4-0004oy-23
	for mharc-bug-global@gnu.org; Fri, 27 Apr 2012 10:47:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56901)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <h-iwamoto@kit.hi-ho.ne.jp>) id 1SNmRw-0004oF-Uz
	for bug-global@gnu.org; Fri, 27 Apr 2012 10:47:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <h-iwamoto@kit.hi-ho.ne.jp>) id 1SNmRm-0000uA-Mi
	for bug-global@gnu.org; Fri, 27 Apr 2012 10:47:08 -0400
Received: from mow600.mserv.hi-ho.ne.jp ([202.32.78.136]:45201
	helo=mow.mserv.hi-ho.ne.jp) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <h-iwamoto@kit.hi-ho.ne.jp>) id 1SNmRm-0000sv-89
	for bug-global@gnu.org; Fri, 27 Apr 2012 10:46:58 -0400
Received: by mow.mserv.hi-ho.ne.jp (mow600) id q3REkpuP019312;
	Fri, 27 Apr 2012 23:46:51 +0900
Received: from [192.168.24.64] (osk22-p180.flets.hi-ho.ne.jp [220.156.71.180])
	by mbox.mserv.hi-ho.ne.jp (hiho-mbox600) id q3REknVh001131;
	Fri, 27 Apr 2012 23:46:50 +0900
Date: Fri, 27 Apr 2012 23:46:58 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: Joseph Garvin <joseph.h.garvin@gmail.com>
Subject: Re: Packed structs
In-Reply-To: <CAH=MJ4YRXSGt+PySKRc+OmPBDFu03_x7fkQ2f16Pyxm1NioECg@mail.gmail.com>
References: <CAH=MJ4YRXSGt+PySKRc+OmPBDFu03_x7fkQ2f16Pyxm1NioECg@mail.gmail.com>
Message-Id: <20120427234657.4FEF.1976CC75@kit.hi-ho.ne.jp>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Mailer: Becky! ver. 2.60.01 [ja]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 202.32.78.136
Cc: bug-global <bug-global@gnu.org>
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-global>
List-Post: <mailto:bug-global@gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Apr 2012 14:47:14 -0000

Hi.

> Global appears to not tag structs that have the GCC packed attribute (or

Thank you for reporting bug.
When attribute specifier appeared immediately after the `struct', `union'
or `enum' keyword, GLOBAL could not pick up tag name.
===== example =============================
$ cat a.c
struct aaa {
        char a; int b;
} __attribute__((packed)) v1;

struct __attribute__((packed)) bbb {
        char a; int b;
} v2;

typedef struct ccc {
        char a; int b;
} __attribute__((packed)) T1;

typedef struct __attribute__((packed)) ddd {
        char a; int b;
} T2;
$ global -f a.c
aaa                 1 a.c              struct aaa {
ccc                 9 a.c              typedef struct ccc {
T1                 11 a.c              } __attribute__((packed)) T1;
T2                 15 a.c              } T2;
============================================

This bug was fixed in the CVS repository. 
http://cvs.savannah.gnu.org/viewcvs/global/libparser/C.c?cvsroot=global&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/global/libparser/Cpp.c?cvsroot=global&r1=1.6&r2=1.7

Would you check whether there is still any problem on CVS version? 


On Thu, 26 Apr 2012 13:30:44 -0500
Joseph Garvin <joseph.h.garvin@gmail.com> wrote:

> Global appears to not tag structs that have the GCC packed attribute (or
> maybe any attribute?). Is there an option I need to pass for this or is it
> bug?
> 
> Thanks,
> 
> Joe G.

-- 
Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>



