GNU bug report logs -
#1912
Reserved word "goto" not highlighted in Ada-mode
Previous Next
Reported by: Erik <esigra <at> gmail.com>
Date: Thu, 15 Jan 2009 07:55:03 UTC
Severity: normal
Done: Stephen Leake <stephen_leake <at> stephe-leake.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1912 in the body.
You can then email your comments to 1912 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#1912
; Package
emacs
.
(Thu, 15 Jan 2009 07:55:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Erik <esigra <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 15 Jan 2009 07:55:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
The reserved word "goto" not highlighted in Ada-mode.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#1912
; Package
emacs
.
(Thu, 15 Jan 2009 09:05:07 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Juanma Barranquero" <lekktu <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 15 Jan 2009 09:05:07 GMT)
Full text and
rfc822 format available.
Message #10 received at 1912 <at> emacsbugs.donarmstrong.com (full text, mbox):
On Thu, Jan 15, 2009 at 08:51, Erik <esigra <at> gmail.com> wrote:
> The reserved word "goto" not highlighted in Ada-mode.
Which version of Emacs and ada-mode are you using? I see "goto"
highlighted with font-lock-keyword-face, as expected.
Can you send a fragment of Ada code showing the problem?
Juanma
bug reassigned from package `emacs' to `emacs,ada-mode'.
Request was from
"Juanma Barranquero" <lekktu <at> gmail.com>
to
control <at> emacsbugs.donarmstrong.com
.
(Thu, 15 Jan 2009 09:50:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1912
; Package
emacs,ada-mode
.
(Thu, 15 Jan 2009 13:10:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Erik <esigra <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Thu, 15 Jan 2009 13:10:05 GMT)
Full text and
rfc822 format available.
Message #17 received at 1912 <at> emacsbugs.donarmstrong.com (full text, mbox):
Juanma Barranquero skrev:
> On Thu, Jan 15, 2009 at 08:51, Erik <esigra <at> gmail.com> wrote:
>
>> The reserved word "goto" not highlighted in Ada-mode.
>>
>
> Which version of Emacs and ada-mode are you using? I see "goto"
> highlighted with font-lock-keyword-face, as expected.
>
>
GNU Emacs 22.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2008-11-15 on localhost
(Gentoo package app-editors/emacs-22.3)
> Can you send a fragment of Ada code showing the problem?
>
Execute "emacs prov.adb" (in a directory without such a file). Then
write these lines:
procedure Prov
is
begin
goto done
The reserved words "procedure" "is" and "begin" get highlighted as soon
as they are written. But "goto" is only highlighted if
1. the file is saved at this point,
2. a ';' is written, or
3. a newline is written
Compare this with the similar example
procedure Prov
is
begin
raise done
Here the reserved word "raise" is highlighted immediately (unlike
"goto"). (But the identifier "done" is not highlighted immediately,
which looks like another bug.)
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#1912
; Package
emacs,ada-mode
.
(Thu, 15 Jan 2009 14:40:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Juanma Barranquero" <lekktu <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Thu, 15 Jan 2009 14:40:04 GMT)
Full text and
rfc822 format available.
Message #22 received at 1912 <at> emacsbugs.donarmstrong.com (full text, mbox):
On Thu, Jan 15, 2009 at 14:10, Erik <esigra <at> gmail.com> wrote:
> GNU Emacs 22.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
> of 2008-11-15 on localhost
I'm testing on 23.0.60 (current trunk from the CVS repository), but
AFAICS, there's no significant difference between the two ada-mode.el
packages that should affect font-locking.
> The reserved words "procedure" "is" and "begin" get highlighted as soon
> as they are written. But "goto" is only highlighted if
> 1. the file is saved at this point,
> 2. a ';' is written, or
> 3. a newline is written
That's not exactly the behavior I see, but I certainly see that goto
is not highlighted after the final "o" is written. The same happens
for "use", for example. That is expected, see the variable
ada-font-lock-keywords.
> Here the reserved word "raise" is highlighted immediately (unlike
> "goto"). (But the identifier "done" is not highlighted immediately,
> which looks like another bug.)
I'm not sure they are bugs. No one said font-locking should be
instantaneous; often some context is needed.
Let's wait for Stephen's opinion.
Juanma
Reply sent
to
Stephen Leake <stephen_leake <at> stephe-leake.org>
:
You have taken responsibility.
(Wed, 13 Jan 2010 07:30:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
Erik <esigra <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 13 Jan 2010 07:30:04 GMT)
Full text and
rfc822 format available.
Message #27 received at 1912-done <at> debbugs.gnu.org (full text, mbox):
I agree with Juanma's analysis; this is not a bug, it's a feature of
font-lock.
--
-- Stephe
bug archived.
Request was from
Debbugs Internal Request <bug-gnu-emacs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 10 Feb 2010 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 189 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.