GNU bug report logs - #1913
Identifier after reserved word "raise" is not always highlighted in Ada-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Erik <esigra@HIDDEN>; dated Thu, 15 Jan 2009 08:05:05 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 1913 <at> debbugs.gnu.org:


Received: (at 1913) by debbugs.gnu.org; 12 Jul 2011 12:20:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 12 08:20:20 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Qgbwq-0001Xv-AB
	for submit <at> debbugs.gnu.org; Tue, 12 Jul 2011 08:20:20 -0400
Received: from mail-pz0-f44.google.com ([209.85.210.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lekktu@HIDDEN>) id 1Qgbwo-0001Xk-6D
	for 1913 <at> debbugs.gnu.org; Tue, 12 Jul 2011 08:20:18 -0400
Received: by pzk5 with SMTP id 5so4068000pzk.3
	for <1913 <at> debbugs.gnu.org>; Tue, 12 Jul 2011 05:20:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	bh=/MUuAgrHrOoHaY5PQUmL3vYoxcqBNmR+B4QEeP5B2ls=;
	b=GfrmTdm1tg4azZkwgiKrdUvLfGoWoYfASz6lZsbrDwtYBJGROYDpjcxnD5s4fER68g
	xOW2WGuZPiJJdMoCtuZnQSKw0hPNp2oh+caauNbU4TyAJIssk/41tbbHl4LCRBjmMeuv
	eVcPB+TwlLnHqH9Sy0sriLgxgO+9EoNNWc9ag=
Received: by 10.143.90.11 with SMTP id s11mr698247wfl.366.1310473212180; Tue,
	12 Jul 2011 05:20:12 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.144.4 with HTTP; Tue, 12 Jul 2011 05:19:32 -0700 (PDT)
In-Reply-To: <82aacj3iyu.fsf@HIDDEN>
References: <ueiluo2ib.fsf@HIDDEN>
	<CAAeL0SQ1BonviDh19hC93M_Nc0HP+okWjpa5y2idTFLxY-m=8Q@HIDDEN>
	<82aacm3v0q.fsf@HIDDEN>
	<CAAeL0STXubND08xmeQ+p+uRYOJvyuecCLGUUzu_ApCZTTqPNfQ@HIDDEN>
	<82aacj3iyu.fsf@HIDDEN>
From: Juanma Barranquero <lekktu@HIDDEN>
Date: Tue, 12 Jul 2011 14:19:32 +0200
Message-ID: <CAAeL0STRrOntvbD1=MUT4RLJxhejO30-s1nARAS8Th2SntfwkA@HIDDEN>
Subject: Re: bug#1913: Identifier after reserved word "raise" is not always
To: Stephen Leake <stephen_leake@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -3.3 (---)
X-Debbugs-Envelope-To: 1913
Cc: 1913 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.3 (---)

On Mon, Jul 11, 2011 at 15:07, Stephen Leake
<stephen_leake@HIDDEN> wrote:

> My approach to this is to add stuff as I encounter a need in my own
> work, and to support others doing the same with advice.
>
> We have not yet migrated to a 2012 compiler at work, so it won't happen
> soon.

OK, understood.

Thanks,

=C2=A0 =C2=A0 Juanma




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#1913; Package emacs. Full text available.

Message received at 1913 <at> debbugs.gnu.org:


Received: (at 1913) by debbugs.gnu.org; 12 Jul 2011 10:13:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 12 06:13:25 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QgZy0-0004a0-Dg
	for submit <at> debbugs.gnu.org; Tue, 12 Jul 2011 06:13:24 -0400
Received: from qmta02.emeryville.ca.mail.comcast.net ([76.96.30.24])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <stephen_leake@HIDDEN>) id 1QgZxx-0004Zk-FD
	for 1913 <at> debbugs.gnu.org; Tue, 12 Jul 2011 06:13:22 -0400
Received: from omta11.emeryville.ca.mail.comcast.net ([76.96.30.36])
	by qmta02.emeryville.ca.mail.comcast.net with comcast
	id 6yBu1h0030mlR8UA2yDCn7; Tue, 12 Jul 2011 10:13:12 +0000
Received: from SABUL ([69.140.67.196])
	by omta11.emeryville.ca.mail.comcast.net with comcast
	id 6yDD1h0024E4Fsd8XyDDkC; Tue, 12 Jul 2011 10:13:14 +0000
From: Stephen Leake <stephen_leake@HIDDEN>
To: Juanma Barranquero <lekktu@HIDDEN>
Subject: Re: bug#1913: Identifier after reserved word "raise" is not always
In-Reply-To: <CAAeL0STXubND08xmeQ+p+uRYOJvyuecCLGUUzu_ApCZTTqPNfQ@HIDDEN>
	(Juanma Barranquero's message of "Mon, 11 Jul 2011 01:12:47 +0200")
Date: Mon, 11 Jul 2011 09:07:41 -0400
References: <ueiluo2ib.fsf@HIDDEN>
	<CAAeL0SQ1BonviDh19hC93M_Nc0HP+okWjpa5y2idTFLxY-m=8Q@HIDDEN>
	<82aacm3v0q.fsf@HIDDEN>
	<CAAeL0STXubND08xmeQ+p+uRYOJvyuecCLGUUzu_ApCZTTqPNfQ@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt)
Message-ID: <82aacj3iyu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -2.1 (--)
X-Debbugs-Envelope-To: 1913
Cc: 1913 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

Juanma Barranquero <lekktu@HIDDEN> writes:

> On Sun, Jul 10, 2011 at 19:28, Stephen Leake
> <stephen_leake@HIDDEN> wrote:
>
>> It's not currently on my list; I haven't gotten any more email about it,
>> and it's a lot of tedious work.
>
> Well, it makes sense.
>
>> I find I have less time for ada-mode
>> these days; I mostly work on monotone and DVC (ada-mode does what I need).
>
> Do you plan to adapt it to Ada 2012? Not much new syntax, but aspect
> specifications and quantified expressions (with a new keyword, "some")
> will require some adjustment.

My approach to this is to add stuff as I encounter a need in my own
work, and to support others doing the same with advice.

We have not yet migrated to a 2012 compiler at work, so it won't happen
soon.

--
-- Stephe




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#1913; Package emacs. Full text available.

Message received at 1913 <at> debbugs.gnu.org:


Received: (at 1913) by debbugs.gnu.org; 10 Jul 2011 23:13:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 10 19:13:36 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Qg3Bw-0001p2-OJ
	for submit <at> debbugs.gnu.org; Sun, 10 Jul 2011 19:13:36 -0400
Received: from mail-pz0-f44.google.com ([209.85.210.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lekktu@HIDDEN>) id 1Qg3Bu-0001oq-7Q
	for 1913 <at> debbugs.gnu.org; Sun, 10 Jul 2011 19:13:34 -0400
Received: by pzk5 with SMTP id 5so2834531pzk.3
	for <1913 <at> debbugs.gnu.org>; Sun, 10 Jul 2011 16:13:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	bh=7wZwEtGqcRHQ6LtlzIUHKIvtYAAQqiiKAg0445XKZ00=;
	b=a8DtB/MMJxALxmVuFDL+N9j27dnNiptxeyhhIXDWbpxtqc1b3grG4NuvCkp/dbyUB8
	b/mAHkPn83nRwTftEbwm8qjABCul5jSlhcAa7fRcw9mxXd7vMwoUvjZuGeg0RnSQ0kPQ
	61nO2lVPisgcdOooGna7AVQGeLV5NP9WNagz8=
Received: by 10.142.249.42 with SMTP id w42mr1743377wfh.195.1310339608111;
	Sun, 10 Jul 2011 16:13:28 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.144.4 with HTTP; Sun, 10 Jul 2011 16:12:47 -0700 (PDT)
In-Reply-To: <82aacm3v0q.fsf@HIDDEN>
References: <ueiluo2ib.fsf@HIDDEN>
	<CAAeL0SQ1BonviDh19hC93M_Nc0HP+okWjpa5y2idTFLxY-m=8Q@HIDDEN>
	<82aacm3v0q.fsf@HIDDEN>
From: Juanma Barranquero <lekktu@HIDDEN>
Date: Mon, 11 Jul 2011 01:12:47 +0200
Message-ID: <CAAeL0STXubND08xmeQ+p+uRYOJvyuecCLGUUzu_ApCZTTqPNfQ@HIDDEN>
Subject: Re: bug#1913: Identifier after reserved word "raise" is not always
To: Stephen Leake <stephen_leake@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -3.3 (---)
X-Debbugs-Envelope-To: 1913
Cc: 1913 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.3 (---)

On Sun, Jul 10, 2011 at 19:28, Stephen Leake
<stephen_leake@HIDDEN> wrote:

> It's not currently on my list; I haven't gotten any more email about it,
> and it's a lot of tedious work.

Well, it makes sense.

> I find I have less time for ada-mode
> these days; I mostly work on monotone and DVC (ada-mode does what I need)=
.

Do you plan to adapt it to Ada 2012? Not much new syntax, but aspect
specifications and quantified expressions (with a new keyword, "some")
will require some adjustment.

=C2=A0 =C2=A0 Juanma




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#1913; Package emacs. Full text available.

Message received at 1913 <at> debbugs.gnu.org:


Received: (at 1913) by debbugs.gnu.org; 10 Jul 2011 17:29:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 10 13:29:08 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Qfxoa-00087K-JI
	for submit <at> debbugs.gnu.org; Sun, 10 Jul 2011 13:29:08 -0400
Received: from qmta11.westchester.pa.mail.comcast.net ([76.96.59.211])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <stephen_leake@HIDDEN>) id 1QfxoY-00086r-Tl
	for 1913 <at> debbugs.gnu.org; Sun, 10 Jul 2011 13:29:07 -0400
Received: from omta19.westchester.pa.mail.comcast.net ([76.96.62.98])
	by QMTA11.westchester.pa.mail.comcast.net with comcast
	id 6HTw1h00327AodY5BHV2ri; Sun, 10 Jul 2011 17:29:02 +0000
Received: from SABUL ([69.140.67.196])
	by omta19.westchester.pa.mail.comcast.net with comcast
	id 6HV11h00U4E4Fsd3fHV1zJ; Sun, 10 Jul 2011 17:29:02 +0000
From: Stephen Leake <stephen_leake@HIDDEN>
To: Juanma Barranquero <lekktu@HIDDEN>
Subject: Re: bug#1913: Identifier after reserved word "raise" is not always
References: <ueiluo2ib.fsf@HIDDEN>
	<CAAeL0SQ1BonviDh19hC93M_Nc0HP+okWjpa5y2idTFLxY-m=8Q@HIDDEN>
Date: Sun, 10 Jul 2011 13:28:21 -0400
In-Reply-To: <CAAeL0SQ1BonviDh19hC93M_Nc0HP+okWjpa5y2idTFLxY-m=8Q@HIDDEN>
	(Juanma Barranquero's message of "Sun, 10 Jul 2011 01:24:33 +0200")
Message-ID: <82aacm3v0q.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 1913
Cc: 1913 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

Juanma Barranquero <lekktu@HIDDEN> writes:

> Stephen, are you planning to fix this problem?

(the general problem of updating ada-mode to use regexp that match a
more correct range of characters)

It's not currently on my list; I haven't gotten any more email about it,
and it's a lot of tedious work. I find I have less time for ada-mode
these days; I mostly work on monotone and DVC (ada-mode does what I need).

-- 
-- Stephe




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#1913; Package emacs. Full text available.

Message received at 1913 <at> debbugs.gnu.org:


Received: (at 1913) by debbugs.gnu.org; 9 Jul 2011 23:25:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 09 19:25:21 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Qfgtl-00042L-5A
	for submit <at> debbugs.gnu.org; Sat, 09 Jul 2011 19:25:21 -0400
Received: from mail-pz0-f44.google.com ([209.85.210.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lekktu@HIDDEN>) id 1Qfgtj-000428-68
	for 1913 <at> debbugs.gnu.org; Sat, 09 Jul 2011 19:25:19 -0400
Received: by pzk5 with SMTP id 5so2336784pzk.3
	for <1913 <at> debbugs.gnu.org>; Sat, 09 Jul 2011 16:25:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	bh=TCFa9Vd0oxE+eG+O+TZuyJA5/gQ3R/+o/gDigBE5Q+4=;
	b=Fw7vGiYphWf/9V2v06OUBAhkfcroBxpf97Mq9NJPDxe+uHGvaIgRnshe2Q4FzS7M2k
	f4o+kGF1mrJhS1gwrXpjcZiCZB8gkWYcSby68xYNL1RyJwFq1R1kaM7XrsaESnwotITY
	GsHoe+4LU+0vyjj7u3FBvgeI3AVkOb7u8Rc1Y=
Received: by 10.143.91.16 with SMTP id t16mr1097303wfl.366.1310253913078; Sat,
	09 Jul 2011 16:25:13 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.144.4 with HTTP; Sat, 9 Jul 2011 16:24:33 -0700 (PDT)
In-Reply-To: <ueiluo2ib.fsf@HIDDEN>
References: <ueiluo2ib.fsf@HIDDEN>
From: Juanma Barranquero <lekktu@HIDDEN>
Date: Sun, 10 Jul 2011 01:24:33 +0200
Message-ID: <CAAeL0SQ1BonviDh19hC93M_Nc0HP+okWjpa5y2idTFLxY-m=8Q@HIDDEN>
Subject: Re: bug#1913: Identifier after reserved word "raise" is not always
To: Stephen Leake <stephen_leake@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -3.3 (---)
X-Debbugs-Envelope-To: 1913
Cc: 1913 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.3 (---)

Stephen, are you planning to fix this problem?

> It is clear that [a-zA-Z] does not match the characters permitted by
> the Ada standard.
>
> However, neither does [[:alpha:]] - consider this fragment:
>
> procedure do=C2=B5
>
> the '=C2=B5' (entered by C-x 8 u) is not matched by [[:alpha:]]*
> (Emacs 23.1, Windows XP, LANG=3DC.UTF-8).

That's because C-x 8 u inserts U+00B5 MICRO SIGN.

Try C-x 8 <RET> 3BC <RET>, which inserts U+03BC GREEK SMALL LETTER MU.

=C2=A0 =C2=A0 Juanma




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#1913; Package emacs. Full text available.

Message received at 1913 <at> debbugs.gnu.org:


Received: (at 1913) by debbugs.gnu.org; 13 Jan 2010 08:03:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 13 03:03:17 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NUyCD-0004I6-Mi
	for submit <at> debbugs.gnu.org; Wed, 13 Jan 2010 03:03:17 -0500
Received: from qmta05.westchester.pa.mail.comcast.net ([76.96.62.48])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <stephen_leake@HIDDEN>) id 1NUyCC-0004Hv-IR
	for 1913 <at> debbugs.gnu.org; Wed, 13 Jan 2010 03:03:16 -0500
Received: from omta18.westchester.pa.mail.comcast.net ([76.96.62.90])
	by qmta05.westchester.pa.mail.comcast.net with comcast
	id Uw351d0011wpRvQ55w35SM; Wed, 13 Jan 2010 08:03:05 +0000
Received: from SABUL ([68.50.111.2])
	by omta18.westchester.pa.mail.comcast.net with comcast
	id Uw3R1d0020394wc3ew3Rlr; Wed, 13 Jan 2010 08:03:26 +0000
To: 1913 <at> debbugs.gnu.org
Subject: Re: bug#1913: Identifier after reserved word "raise" is not always
From: Stephen Leake <stephen_leake@HIDDEN>
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt)
Date: Wed, 13 Jan 2010 03:03:24 -0500
Message-ID: <ueiluo2ib.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 1913
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -0.2 (/)

It is clear that [a-zA-Z] does not match the characters permitted by
the Ada standard.

However, neither does [[:alpha:]] - consider this fragment:

procedure do=C2=B5=20

the '=C2=B5' (entered by C-x 8 u) is not matched by [[:alpha:]]*
(Emacs 23.1, Windows XP, LANG=3DC.UTF-8).

This could be fixed by the user; they can define =C2=B5 to have word
syntax.

Ideally, we would have regular expression character ranges that match
those defined by ISO/IEC 10646:2003 (see LRM 2.1);=20

Letter, Uppercase
Letter, Lowercase
Letter, Titlecase
Letter, Modifier
Letter, Other
Mark, Non-Spacing
Mark, Spacing Combining
Number, Decimal
Number, Letter
Punctuation, Connector
Other, Format
Separator, Space
Separator, Line
Separator, Paragraph

These categories are used to define Ada lexical elements (LRM 2.2).

But I don't think that's going to happen.

It seems the best compromise is to replace a-z etc with [:alpha:] or
[:alnum:] as appropriate, and hope the user knows how to define
characters to have word syntax. That's a lot of work, since each
modified regexp needs to be tested.

As for matching leading underscores, I agree it would be nice to get
it right. Using shy groups (the elisp name for non-capturing groups)
would help, since it won't disturb the group numbering, as well as
being faster. If it doesn't complicate the testing, I'll try to do
that.

Do you have suggestions about which regular expressions are more
important to be fixed? If you can provide typical code, and point out
the most annoying font-lock failures, that would be a good start.

--=20
-- Stephe




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#1913; Package emacs,ada-mode. Full text available.

Message received at 1913@HIDDEN:


Received: (at 1913) by emacsbugs.donarmstrong.com; 16 Jan 2009 02:22:27 +0000
From lekktu@HIDDEN Thu Jan 15 18:22:27 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-2.9 required=4.0 tests=HAS_BUG_NUMBER,MURPHY_SEX_L2
	autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0G2MOoa014808
	for <1913@HIDDEN>; Thu, 15 Jan 2009 18:22:25 -0800
Received: by nf-out-0910.google.com with SMTP id 30so193560nfu.31
        for <1913@HIDDEN>; Thu, 15 Jan 2009 18:22:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:in-reply-to:references
         :date:message-id:subject:from:to:cc:content-type
         :content-transfer-encoding;
        bh=iXGcLlwsaz05bSUSXdGN1wtn3ekLgh8CVLFtZnzVJAE=;
        b=vTWplsYzPQpNrqiolRmspGPfWzoDPqkTJT/gIXqS9snHnuHgQ8UYiuf6T9LrNodSdH
         jdR9x51zwxhL+Hru1WsRgGF8BpqaTTyo2BCxROBq7OzE/J18NQdjw0+lpHSest00qeBW
         eLcmTNctsKhwtqhQNCZvKh6Oo00vAA342iZVs=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type:content-transfer-encoding;
        b=tEdTawbzFTdSLS8G9EV2HDaLWDnmQZCP06Oa7N4J2tQLBGSe8pUd9qK138sOKaaxF+
         eDSxXIUKN1wCAHTgfc6QmnnlLNlwsMoTkmduDrTKe8ss9e1yV9ggWuq4PjyobPDE4YI0
         VqrUYzFRjUz/nu6tcQHS+zzM3wN7WudAj0LS0=
MIME-Version: 1.0
Received: by 10.210.19.7 with SMTP id 7mr1205598ebs.18.1232072543628; Thu, 15 
	Jan 2009 18:22:23 -0800 (PST)
In-Reply-To: <jwvvdsguha3.fsf-monnier+emacsbugreports@HIDDEN>
References: <496EECEB.1020209@HIDDEN>
	 <f7ccd24b0901150112w2ae0751n677207db473585e3@HIDDEN>
	 <496F3CE6.3080600@HIDDEN>
	 <f7ccd24b0901150642ke81e8b5i69cc8584226bbeac@HIDDEN>
	 <496FC0B1.3020207@HIDDEN>
	 <jwvvdsguha3.fsf-monnier+emacsbugreports@HIDDEN>
Date: Fri, 16 Jan 2009 03:22:23 +0100
Message-ID: <f7ccd24b0901151822g3e4c8a41kdf24a4150c627122@HIDDEN>
Subject: Re: bug#1913: Identifier after reserved word "raise" is not always 
	highlighted in Ada-mode
From: Juanma Barranquero <lekktu@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Cc: Erik <esigra@HIDDEN>, 1913 <at> debbugs.gnu.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

On Fri, Jan 16, 2009 at 03:16, Stefan Monnier <monnier@HIDDEN> wrote:

> Agreed: the right regexp doesn't seem to be significantly more complex.

Oh, I'm not opposing to it, just leaving the issue in the hands of the
Emacs ada-mode maintainer, Stephen Leake.

    Juanma




Acknowledgement sent to Juanma Barranquero <lekktu@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>, owner@HIDDEN. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>, owner@HIDDEN:
bug#1913; Package emacs,ada-mode. Full text available.

Message received at 1913@HIDDEN:


Received: (at 1913) by emacsbugs.donarmstrong.com; 16 Jan 2009 02:17:12 +0000
From monnier@HIDDEN Thu Jan 15 18:17:12 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-0.5 required=4.0 tests=HAS_BUG_NUMBER,XIRONPORT
	autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0G2H861013396
	for <1913@HIDDEN>; Thu, 15 Jan 2009 18:17:10 -0800
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ApwEAMB8b0lMCpxj/2dsb2JhbACBbMt7hXGBdQ
X-IronPort-AV: E=Sophos;i="4.37,274,1231131600"; 
   d="scan'208";a="32382989"
Received: from 76-10-156-99.dsl.teksavvy.com (HELO pastel.home) ([76.10.156.99])
  by ironport2-out.teksavvy.com with ESMTP; 15 Jan 2009 21:16:58 -0500
Received: by pastel.home (Postfix, from userid 20848)
	id 0EC0D7F41; Thu, 15 Jan 2009 21:16:58 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Erik <esigra@HIDDEN>
Cc: 1913 <at> debbugs.gnu.org, Juanma Barranquero <lekktu@HIDDEN>
Subject: Re: bug#1913: Identifier after reserved word "raise" is not always highlighted in Ada-mode
Message-ID: <jwvvdsguha3.fsf-monnier+emacsbugreports@HIDDEN>
References: <496EECEB.1020209@HIDDEN>
	<f7ccd24b0901150112w2ae0751n677207db473585e3@HIDDEN>
	<496F3CE6.3080600@HIDDEN>
	<f7ccd24b0901150642ke81e8b5i69cc8584226bbeac@HIDDEN>
	<496FC0B1.3020207@HIDDEN>
Date: Thu, 15 Jan 2009 21:16:58 -0500
In-Reply-To: <496FC0B1.3020207@HIDDEN> (Erik's message of "Fri, 16 Jan 2009
	00:03:13 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

> Did you have a performance problem with that regexp? I do not really
> believe that there is a reason to worry about it without some
> measurements. I have a 1.6 GHz CPU and want to take advantage of it. I
> think it should be able to recognize Ada identifiers as a type them.

Agreed: the right regexp doesn't seem to be significantly more complex.


        Stefan




Acknowledgement sent to Stefan Monnier <monnier@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>, owner@HIDDEN. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>, owner@HIDDEN:
bug#1913; Package emacs,ada-mode. Full text available.

Message received at 1913@HIDDEN:


Received: (at 1913) by emacsbugs.donarmstrong.com; 15 Jan 2009 23:10:48 +0000
From lekktu@HIDDEN Thu Jan 15 15:10:48 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-2.0 required=4.0 tests=GMAIL,HAS_BUG_NUMBER,
	MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0FNAiFH023444
	for <1913@HIDDEN>; Thu, 15 Jan 2009 15:10:46 -0800
Received: by ey-out-2122.google.com with SMTP id 4so161310eyf.13
        for <1913@HIDDEN>; Thu, 15 Jan 2009 15:10:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:in-reply-to:references
         :date:message-id:subject:from:to:cc:content-type
         :content-transfer-encoding;
        bh=X6jidzMFs7RZbbpN7mfC2GfFvVNAFEr3jGgGKGjTAI4=;
        b=ZiQ1yHoTARR5DaVK+n/Q6QGYjdWSVMjQsEkmfguMeMeHvMG+wPEc4pKki8+h791KUH
         6JDvBkuVWF2CZgjEBKNWRCZUlnwOnPgcmwTpxemXVv1IDU8L5L3X1im6f3qxn4Tk9UVU
         yNcgVb5RSpDH2Gri0THVyr20CGY2kH7b2onGY=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type:content-transfer-encoding;
        b=XTz1zKE1PU21Xvl6jz2mNEjyo5wr/6IUSjwX1dLEjM8FR508J7QqbfD7NtFHlDDHGa
         qfXdqi6IKUSbxuecGPy7SiBSwE1FxkEoCsCoGzE1nwCno+j5EYRd9s6i3Wd0zKMvzIn2
         ZJ7biPP5Y/Vz8keWbmarZdMpa4LBO6b4i4h7c=
MIME-Version: 1.0
Received: by 10.210.131.6 with SMTP id e6mr293578ebd.77.1232061044058; Thu, 15 
	Jan 2009 15:10:44 -0800 (PST)
In-Reply-To: <496FC0B1.3020207@HIDDEN>
References: <496EECEB.1020209@HIDDEN>
	 <f7ccd24b0901150112w2ae0751n677207db473585e3@HIDDEN>
	 <496F3CE6.3080600@HIDDEN>
	 <f7ccd24b0901150642ke81e8b5i69cc8584226bbeac@HIDDEN>
	 <496FC0B1.3020207@HIDDEN>
Date: Fri, 16 Jan 2009 00:10:44 +0100
Message-ID: <f7ccd24b0901151510y542059e7p9d745f2d8c9403e@HIDDEN>
Subject: Re: bug#1913: Identifier after reserved word "raise" is not always 
	highlighted in Ada-mode
From: Juanma Barranquero <lekktu@HIDDEN>
To: Erik <esigra@HIDDEN>
Cc: 1913 <at> debbugs.gnu.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

On Fri, Jan 16, 2009 at 00:03, Erik <esigra@HIDDEN> wrote:

> Actually I do notice the highlighting and take advantage of it as an
> early error detector. If it makes me notice an error immediately, before
> I move on to another part of the code or try to compile things, it is
> useful. If a word is not highlighted as expected when I have typed it, I
> automatically stop to see what I did wrong.

But we're not talking of something that is highlighted "when you move
to another part of the code"; more like "when you finish the next
token in the line".

> Did you have a performance problem with that regexp? I do not really
> believe that there is a reason to worry about it without some
> measurements. I have a 1.6 GHz CPU and want to take advantage of it. I
> think it should be able to recognize Ada identifiers as a type them.

I don't have a performance problem, but font-locking isn't the fastest
of Emacs features. You have a 1,6 GHz CPU; mine is fast, too. But
Emacs is used in all kinds of computers. That said, if you write a
patch to make the font-locking more correct without sacrificing
performance, I'm sure it'll be very welcome.

> The (?:) is equivalent to () but faster since it is a so-called
> non-capturing group, which should always be used when capturing is not
> needed. Maybe that helps?

Not really. Font-lock patterns have capturing groups for a reason
(that's what the 1, 2 in the next line refer to).

    Juanma




Acknowledgement sent to Juanma Barranquero <lekktu@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>, owner@HIDDEN. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>, owner@HIDDEN:
bug#1913; Package emacs,ada-mode. Full text available.

Message received at 1913@HIDDEN:


Received: (at 1913) by emacsbugs.donarmstrong.com; 15 Jan 2009 23:00:03 +0000
From esigra@HIDDEN Thu Jan 15 15:00:02 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-2.0 required=4.0 tests=GMAIL,HAS_BUG_NUMBER,
	MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0FMxw8A018521
	for <1913@HIDDEN>; Thu, 15 Jan 2009 14:59:59 -0800
Received: by fg-out-1718.google.com with SMTP id l27so633685fgb.43
        for <1913@HIDDEN>; Thu, 15 Jan 2009 14:59:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from
         :user-agent:mime-version:to:cc:subject:references:in-reply-to
         :content-type:content-transfer-encoding;
        bh=AnG/m4rVfmShXQvuHx+lqfVZgriyS/9VAvwf1qGKs6g=;
        b=WK+0ukMarV1fSfxHw2cHhcqIsOtXdf4mXZ6bN9s9g0VDGdH3A6f8sW1VJT0kvla5Uy
         BbdsK6lJm8H3gnv+t68aIF7m+SRLAZRJysINcaNsIYa0Sl56B7v08qPNUVkfySvRWaea
         8nQIzy94HYs7ZSy6bliBzEA/41HtsLQSRCx8M=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:user-agent:mime-version:to:cc:subject
         :references:in-reply-to:content-type:content-transfer-encoding;
        b=S+3em3fBHmXfrelpEefs30jhQDaWnGMcRdttwDBVF8Aa188TjmYDnAo5lV25CMWrat
         JKSR5T6rA8WMXf9fuyvKeWZ9X4GnSMecCniyk14Pd3irIxg/+dIkYyGaQdX3cthoS45I
         wOriCwYoeXxCneyjVfo9EApHCk0v1XfbiSy3k=
Received: by 10.86.80.17 with SMTP id d17mr1620234fgb.55.1232060396553;
        Thu, 15 Jan 2009 14:59:56 -0800 (PST)
Received: from ?192.168.0.46? (92.44.227.87.static.f.siw.siwnet.net [87.227.44.92])
        by mx.google.com with ESMTPS id d6sm1164430fga.50.2009.01.15.14.59.54
        (version=SSLv3 cipher=RC4-MD5);
        Thu, 15 Jan 2009 14:59:55 -0800 (PST)
Message-ID: <496FC0B1.3020207@HIDDEN>
Date: Fri, 16 Jan 2009 00:03:13 +0100
From: Erik <esigra@HIDDEN>
User-Agent: Thunderbird 2.0.0.19 (X11/20090102)
MIME-Version: 1.0
To: Juanma Barranquero <lekktu@HIDDEN>
CC: 1913 <at> debbugs.gnu.org
Subject: Re: bug#1913: Identifier after reserved word "raise" is not always
 highlighted in Ada-mode
References: <496EECEB.1020209@HIDDEN>	 <f7ccd24b0901150112w2ae0751n677207db473585e3@HIDDEN>	 <496F3CE6.3080600@HIDDEN> <f7ccd24b0901150642ke81e8b5i69cc8584226bbeac@HIDDEN>
In-Reply-To: <f7ccd24b0901150642ke81e8b5i69cc8584226bbeac@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Juanma Barranquero skrev:
> On Thu, Jan 15, 2009 at 14:40, Erik <esigra@HIDDEN> wrote:
>
>   
>> The patch is an improvement, but it highlights some illegal identifiers.
>>     
>
> That shouldn't be a problem. You don't use font-locking to determine
> whether the identifier follows Ada rules, do you? :-)
>   

Actually I do notice the highlighting and take advantage of it as an
early error detector. If it makes me notice an error immediately, before
I move on to another part of the code or try to compile things, it is
useful. If a word is not highlighted as expected when I have typed it, I
automatically stop to see what I did wrong.


>> (no leading, consecutive or trailing '_')
>>     
>
> Yes, I know the spec. But I don't think the problem of false positives
> is worth making the regexp slower.
>   

Did you have a performance problem with that regexp? I do not really
believe that there is a reason to worry about it without some
measurements. I have a 1.6 GHz CPU and want to take advantage of it. I
think it should be able to recognize Ada identifiers as a type them.

The regexp guru that I once talked with suggested this:
[[:alpha:]](?:_?[^\W_])*

The (?:) is equivalent to () but faster since it is a so-called
non-capturing group, which should always be used when capturing is not
needed. Maybe that helps?


>> There seems to be a lot of places with a-z in ada-mode.el.
>>     
>
> Yes. I suppose Stephen will welcome patches, assuming they are correct.
>
> Are you aware of the Emacs ada-mode hompage
>
>   http://www.stephe-leake.org/emacs/ada-mode/emacs-ada-mode.html
>
> and list
>
>   http://stephe-leake.org/mailman/listinfo/emacs-ada-mode_stephe-leake.org
>
> ?
>   

No, I just subscribed now, thanks. If I make any changes I will send it
there.




Acknowledgement sent to Erik <esigra@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>, owner@HIDDEN. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>, owner@HIDDEN:
bug#1913; Package emacs,ada-mode. Full text available.

Message received at 1913@HIDDEN:


Received: (at 1913) by emacsbugs.donarmstrong.com; 15 Jan 2009 14:42:52 +0000
From lekktu@HIDDEN Thu Jan 15 06:42:52 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-2.0 required=4.0 tests=GMAIL,HAS_BUG_NUMBER,
	MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0FEglCd022057
	for <1913@HIDDEN>; Thu, 15 Jan 2009 06:42:49 -0800
Received: by nf-out-0910.google.com with SMTP id 30so148451nfu.31
        for <1913@HIDDEN>; Thu, 15 Jan 2009 06:42:47 -0800 (PST)
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=u28GsXfSrZJaHkxqvZsvtla8l6PdZZo31FZrcHIx0Oo=;
        b=nOo3I5mhBHWNoEb1bh1E0pn6y1kbdi9E7HN0cZG+dFn/gTLuTTZl0+r51dT+Vw9uEH
         Qzgr4hmaMYMehL+nlp3rNA6nxHlB98+FrwD1F0frvQBHn+9In/hulLu41jCHc9CBHucg
         WRam1l9P9wi1kHCF43T4POCLN25CqE8gWuxas=
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=XHtIWUuuwGYCmZmj9u9wQ/TM/aBHdY5CLZ/F4gUgEPRViHGvpTGrCBduBffotE6EQF
         hJZi0G4OUyzdO0IsielW0OKz/8ShLiiuEGxd8wdf/xYgQT3/aEaWidFu2WlCdp6B6wle
         cVcdlDnmgkZQpK1d0A7YJpUG6BJkJIFJjFbvE=
Received: by 10.210.129.19 with SMTP id b19mr1739224ebd.86.1232030566829;
        Thu, 15 Jan 2009 06:42:46 -0800 (PST)
Received: by 10.210.141.18 with HTTP; Thu, 15 Jan 2009 06:42:46 -0800 (PST)
Message-ID: <f7ccd24b0901150642ke81e8b5i69cc8584226bbeac@HIDDEN>
Date: Thu, 15 Jan 2009 15:42:46 +0100
From: "Juanma Barranquero" <lekktu@HIDDEN>
To: Erik <esigra@HIDDEN>
Subject: Re: bug#1913: Identifier after reserved word "raise" is not always highlighted in Ada-mode
Cc: 1913 <at> debbugs.gnu.org
In-Reply-To: <496F3CE6.3080600@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <496EECEB.1020209@HIDDEN>
	 <f7ccd24b0901150112w2ae0751n677207db473585e3@HIDDEN>
	 <496F3CE6.3080600@HIDDEN>

On Thu, Jan 15, 2009 at 14:40, Erik <esigra@HIDDEN> wrote:

> The patch is an improvement, but it highlights some illegal identifiers.

That shouldn't be a problem. You don't use font-locking to determine
whether the identifier follows Ada rules, do you? :-)

> (no leading, consecutive or trailing '_')

Yes, I know the spec. But I don't think the problem of false positives
is worth making the regexp slower.

> There seems to be a lot of places with a-z in ada-mode.el.

Yes. I suppose Stephen will welcome patches, assuming they are correct.

Are you aware of the Emacs ada-mode hompage

  http://www.stephe-leake.org/emacs/ada-mode/emacs-ada-mode.html

and list

  http://stephe-leake.org/mailman/listinfo/emacs-ada-mode_stephe-leake.org

?

    Juanma




Acknowledgement sent to "Juanma Barranquero" <lekktu@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>, owner@HIDDEN. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>, owner@HIDDEN:
bug#1913; Package emacs,ada-mode. Full text available.

Message received at 1913@HIDDEN:


Received: (at 1913) by emacsbugs.donarmstrong.com; 15 Jan 2009 13:37:42 +0000
From esigra@HIDDEN Thu Jan 15 05:37:42 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-2.0 required=4.0 tests=GMAIL,HAS_BUG_NUMBER,
	MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0FDbcLm001028
	for <1913@HIDDEN>; Thu, 15 Jan 2009 05:37:39 -0800
Received: by fg-out-1718.google.com with SMTP id l27so508080fgb.43
        for <1913@HIDDEN>; Thu, 15 Jan 2009 05:37:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from
         :user-agent:mime-version:to:cc:subject:references:in-reply-to
         :content-type:content-transfer-encoding;
        bh=smTUhDyR0uu1htLQ4B0AGWJAMFJVuNE+3UqI7b5uqlU=;
        b=u5QQeeBxQv7HsJXgjPnNatAo95NbEjBnasn6GzxVQ6QeoF17nJHD3jDOMDi/zA86WA
         c1gTW0gVy/jIfE7/UZ+k+kQnmfoHgQ/lNV1/TzF6gsfSHG5YaZ3GSoNL0erZZkdHcmt+
         nJ0M6Vk5tCOO9gtvSpRzkobFHwpd5dDCzSH04=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:user-agent:mime-version:to:cc:subject
         :references:in-reply-to:content-type:content-transfer-encoding;
        b=UIETHlPMz/m8hZWMlzAYNQjVCvA+vy8rw28mLeywLY6bONWNEJmxX2/aA9olZop16x
         u40tnKUpOy8YJLOZUiNd1eJbkQ+7Fs4jk7+UHRadu15d3xThkjv4dO2uy26ov8XGrEZI
         vh5vKRHHbdIVgCIDQl+ZVdTlYAujFa/0GNGVQ=
Received: by 10.86.91.12 with SMTP id o12mr362033fgb.16.1232026657633;
        Thu, 15 Jan 2009 05:37:37 -0800 (PST)
Received: from ?192.168.0.46? (92.44.227.87.static.f.siw.siwnet.net [87.227.44.92])
        by mx.google.com with ESMTPS id e11sm172209fga.42.2009.01.15.05.37.36
        (version=SSLv3 cipher=RC4-MD5);
        Thu, 15 Jan 2009 05:37:36 -0800 (PST)
Message-ID: <496F3CE6.3080600@HIDDEN>
Date: Thu, 15 Jan 2009 14:40:54 +0100
From: Erik <esigra@HIDDEN>
User-Agent: Thunderbird 2.0.0.19 (X11/20090102)
MIME-Version: 1.0
To: Juanma Barranquero <lekktu@HIDDEN>
CC: 1913 <at> debbugs.gnu.org
Subject: Re: bug#1913: Identifier after reserved word "raise" is not always
 highlighted in Ada-mode
References: <496EECEB.1020209@HIDDEN> <f7ccd24b0901150112w2ae0751n677207db473585e3@HIDDEN>
In-Reply-To: <f7ccd24b0901150112w2ae0751n677207db473585e3@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Juanma Barranquero skrev:
> On Thu, Jan 15, 2009 at 08:59, Erik <esigra@HIDDEN> wrote:
>   
>> So how should I tell the highlighter that the file is
>> Ada95 or Ada2005 (and not Ada83)? I think that emacs should assume that
>> the file is not Ada83 if a non-ASCII character is used in an identifier.
>>     
>
> It's not that the Ada mode is assuming any specific version. There's a
> variable `ada-language-version', but it just affects which keywords
> are recognized as such. The problem is simply that some of the regexps
> were written in the ASCII-only era and have not been updated.
>
> Try the following patch, which should fix this particular case. I'll
> bring the issue to the Ada mode maintainer for a more permanent fix.
>
>     Juanma
>
>
> Index: lisp/progmodes/ada-mode.el
> ===================================================================
> RCS file: /sources/emacs/emacs/lisp/progmodes/ada-mode.el,v
> retrieving revision 1.101
> diff -u -2 -r1.101 ada-mode.el
> --- lisp/progmodes/ada-mode.el	9 Jan 2009 04:15:56 -0000	1.101
> +++ lisp/progmodes/ada-mode.el	15 Jan 2009 09:05:02 -0000
> @@ -5224,5 +5224,5 @@
>       ;; correctly highlight a with_clause that spans multiple lines.
>       (list (concat "\\<\\(goto\\|raise\\|use\\|with\\)"
> -		   "[ \t]+\\([a-zA-Z0-9_., \t]+\\)\\W")
> +		   "[ \t]+\\([[:alnum:]_., \t]+\\)\\W")
>  	   '(1 font-lock-keyword-face) '(2 font-lock-reference-face nil t))
>   

The patch is an improvement, but it highlights some illegal identifiers.
The correct regexp for an Ada identifier is "[[:alpha:]](_?[^\W_])*".
See this example (in bash):
for i in hög _hög h_ög h__ög h_ö_g hög_ _ hau_og do
    echo $i | egrep "^[[:alpha:]](_?[^\W_])*$"
done


It only matches the allowed identifiers:
hög
h_ög
h_ö_g
hau_og

(no leading, consecutive or trailing '_')

There seems to be a lot of places with a-z in ada-mode.el.




Acknowledgement sent to Erik <esigra@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>, owner@HIDDEN. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>, owner@HIDDEN:
bug#1913; Package emacs,ada-mode. Full text available.
bug reassigned from package `emacs' to `emacs,ada-mode'. Request was from "Juanma Barranquero" <lekktu@HIDDEN> to control@HIDDEN. Full text available.

Message received at 1913@HIDDEN:


Received: (at 1913) by emacsbugs.donarmstrong.com; 15 Jan 2009 09:12:51 +0000
From lekktu@HIDDEN Thu Jan 15 01:12:51 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-2.0 required=4.0 tests=GMAIL,HAS_BUG_NUMBER,
	MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0F9ChNq020423
	for <1913@HIDDEN>; Thu, 15 Jan 2009 01:12:45 -0800
Received: by ewy14 with SMTP id 14so2084957ewy.1
        for <1913@HIDDEN>; Thu, 15 Jan 2009 01:12:38 -0800 (PST)
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=OIu6suR3mYmrZDp5LtUiGHY6beUfeXtN1/djwLnNzRc=;
        b=uqfuMsUTwUqcLKOYq4OnTfElapa8AhosQj6bUKFybkDtT87uR5lpUNQQzApLNPpySx
         u0ureY/r+pM1djqeSbXTpF68v2wHD82z32Rrdwbs46ed9pKy0TrICxlZUEblyzu2Ulgh
         qZ0ncq++ATEDGik48NjeGNg5++JSiZOvcJtDc=
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=YTeAS0hTO9oOEPgamMfR1Mi3XQ1i8Wn7x7ymNW4XfGPAaye2QL/NhNzWdkiZJouWCj
         Uy/mgmSnUumPtCUiiolLQWJ29UeOSAxtYgzd2EFWlsubHpgbyCCb4VcPiPEma9kcUj/J
         ZLAlHXIDs4VY3sB/BM76wucSXaDMQVurgmlUc=
Received: by 10.210.89.13 with SMTP id m13mr1344326ebb.44.1232010758249;
        Thu, 15 Jan 2009 01:12:38 -0800 (PST)
Received: by 10.210.141.18 with HTTP; Thu, 15 Jan 2009 01:12:38 -0800 (PST)
Message-ID: <f7ccd24b0901150112w2ae0751n677207db473585e3@HIDDEN>
Date: Thu, 15 Jan 2009 10:12:38 +0100
From: "Juanma Barranquero" <lekktu@HIDDEN>
To: Erik <esigra@HIDDEN>
Subject: Re: bug#1913: Identifier after reserved word "raise" is not always highlighted in Ada-mode
Cc: 1913 <at> debbugs.gnu.org
In-Reply-To: <496EECEB.1020209@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <496EECEB.1020209@HIDDEN>

On Thu, Jan 15, 2009 at 08:59, Erik <esigra@HIDDEN> wrote:

> So how should I tell the highlighter that the file is
> Ada95 or Ada2005 (and not Ada83)? I think that emacs should assume that
> the file is not Ada83 if a non-ASCII character is used in an identifier.

It's not that the Ada mode is assuming any specific version. There's a
variable `ada-language-version', but it just affects which keywords
are recognized as such. The problem is simply that some of the regexps
were written in the ASCII-only era and have not been updated.

Try the following patch, which should fix this particular case. I'll
bring the issue to the Ada mode maintainer for a more permanent fix.

    Juanma


Index: lisp/progmodes/ada-mode.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/progmodes/ada-mode.el,v
retrieving revision 1.101
diff -u -2 -r1.101 ada-mode.el
--- lisp/progmodes/ada-mode.el	9 Jan 2009 04:15:56 -0000	1.101
+++ lisp/progmodes/ada-mode.el	15 Jan 2009 09:05:02 -0000
@@ -5224,5 +5224,5 @@
      ;; correctly highlight a with_clause that spans multiple lines.
      (list (concat "\\<\\(goto\\|raise\\|use\\|with\\)"
-		   "[ \t]+\\([a-zA-Z0-9_., \t]+\\)\\W")
+		   "[ \t]+\\([[:alnum:]_., \t]+\\)\\W")
 	   '(1 font-lock-keyword-face) '(2 font-lock-reference-face nil t))




Acknowledgement sent to "Juanma Barranquero" <lekktu@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#1913; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 15 Jan 2009 07:56:32 +0000
From esigra@HIDDEN Wed Jan 14 23:56:32 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from lists.gnu.org (lists.gnu.org [199.232.76.165])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0F7uSmo000397
	for <submit@HIDDEN>; Wed, 14 Jan 2009 23:56:30 -0800
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1LNN5Y-0007tg-Jz
	for bug-gnu-emacs@HIDDEN; Thu, 15 Jan 2009 02:56:28 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1LNN5X-0007tU-44
	for bug-gnu-emacs@HIDDEN; Thu, 15 Jan 2009 02:56:27 -0500
Received: from [199.232.76.173] (port=38248 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1LNN5W-0007tR-Vb
	for bug-gnu-emacs@HIDDEN; Thu, 15 Jan 2009 02:56:27 -0500
Received: from mx20.gnu.org ([199.232.41.8]:1791)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60)
	(envelope-from <esigra@HIDDEN>)
	id 1LNN5W-0002Hh-Gp
	for bug-gnu-emacs@HIDDEN; Thu, 15 Jan 2009 02:56:26 -0500
Received: from fg-out-1718.google.com ([72.14.220.153])
	by mx20.gnu.org with esmtp (Exim 4.60)
	(envelope-from <esigra@HIDDEN>)
	id 1LNN5V-0007hN-Qr
	for bug-gnu-emacs@HIDDEN; Thu, 15 Jan 2009 02:56:26 -0500
Received: by fg-out-1718.google.com with SMTP id l26so484638fgb.30
        for <bug-gnu-emacs@HIDDEN>; Wed, 14 Jan 2009 23:56:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from
         :user-agent:mime-version:to:subject:content-type
         :content-transfer-encoding;
        bh=zX943kIC3GfbuE3/P5ovBqAGCBRSa223JYuK5AHwMP0=;
        b=KcXmmKizt0Rz5EJYsQnHt5OXkhxpKSLOBp/AlXiynvHi4/vB3XWKFaVpPIUAOiEUTB
         /CVJDsZDhasQ9VEzLzOJp+cAnlqUyKZmE0ftyozbt6CfObjgVy8SIknJRb6BOf2xP6Kx
         wLqH8VwI1VTg+hsuTKFFv4rb00/lEWyikVJxg=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:user-agent:mime-version:to:subject
         :content-type:content-transfer-encoding;
        b=VFdGHycSfE7dKheYFotTPsdJK0yThjSro1p8gD6cd0+oXCIz9WskuZb3iZK2O16Zgy
         FbpXivPDvqAvXj12+KTaAo/iQKq9GdIImkDcy42SksQO2SCLBZ0nXk0/gxKxrHD6nvKM
         KdMRjjwesUvDjCbuT0GtPaaGsndb1O4s+c/CM=
Received: by 10.86.53.8 with SMTP id b8mr1196672fga.58.1232006183352;
        Wed, 14 Jan 2009 23:56:23 -0800 (PST)
Received: from ?192.168.0.46? (92.44.227.87.static.f.siw.siwnet.net [87.227.44.92])
        by mx.google.com with ESMTPS id d4sm14242369fga.31.2009.01.14.23.56.21
        (version=SSLv3 cipher=RC4-MD5);
        Wed, 14 Jan 2009 23:56:22 -0800 (PST)
Message-ID: <496EECEB.1020209@HIDDEN>
Date: Thu, 15 Jan 2009 08:59:39 +0100
From: Erik <esigra@HIDDEN>
User-Agent: Thunderbird 2.0.0.19 (X11/20090102)
MIME-Version: 1.0
To: bug-gnu-emacs@HIDDEN
Subject: Identifier after reserved word "raise" is not always highlighted
 in Ada-mode
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4)

In Ada-mode, type the reserved word "raise" (and some whitespace after).
Then type the name of an identifier. It may or may not get highlighted
in light blue colour. It seems to depend on which characters that are
part of the identifier. when typing "H", the highlighting works. But if
the letter '' is added, the word is no longer highlighted. This may be
a character set issue. It seems like the highlighter thinks that the
file is in Ada83. I never used Ada83 but I think it was ASCII-only. But
my files are in Ada95, which is Latin1, or Ada2005, which supports even
more characters. So how should I tell the highlighter that the file is
Ada95 or Ada2005 (and not Ada83)? I think that emacs should assume that
the file is not Ada83 if a non-ASCII character is used in an identifier.





Acknowledgement sent to Erik <esigra@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#1913; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.