* bug#1912: Reserved word "goto" not highlighted in Ada-mode @ 2009-01-15 7:51 ` Erik 2009-01-15 8:58 ` Juanma Barranquero 2010-01-13 7:30 ` bug#1912: marked as done (Reserved word "goto" not highlighted in Ada-mode) Emacs bug Tracking System 0 siblings, 2 replies; 5+ messages in thread From: Erik @ 2009-01-15 7:51 UTC (permalink / raw) To: bug-gnu-emacs The reserved word "goto" not highlighted in Ada-mode. ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1912: Reserved word "goto" not highlighted in Ada-mode 2009-01-15 7:51 ` bug#1912: Reserved word "goto" not highlighted in Ada-mode Erik @ 2009-01-15 8:58 ` Juanma Barranquero 2009-01-15 13:10 ` Erik 2010-01-13 7:30 ` bug#1912: marked as done (Reserved word "goto" not highlighted in Ada-mode) Emacs bug Tracking System 1 sibling, 1 reply; 5+ messages in thread From: Juanma Barranquero @ 2009-01-15 8:58 UTC (permalink / raw) To: Erik; +Cc: 1912 On Thu, Jan 15, 2009 at 08:51, Erik <esigra@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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1912: Reserved word "goto" not highlighted in Ada-mode 2009-01-15 8:58 ` Juanma Barranquero @ 2009-01-15 13:10 ` Erik 2009-01-15 14:30 ` Juanma Barranquero 0 siblings, 1 reply; 5+ messages in thread From: Erik @ 2009-01-15 13:10 UTC (permalink / raw) To: Juanma Barranquero; +Cc: 1912 Juanma Barranquero skrev: > On Thu, Jan 15, 2009 at 08:51, Erik <esigra@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.) ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1912: Reserved word "goto" not highlighted in Ada-mode 2009-01-15 13:10 ` Erik @ 2009-01-15 14:30 ` Juanma Barranquero 0 siblings, 0 replies; 5+ messages in thread From: Juanma Barranquero @ 2009-01-15 14:30 UTC (permalink / raw) To: Erik; +Cc: 1912 On Thu, Jan 15, 2009 at 14:10, Erik <esigra@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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1912: marked as done (Reserved word "goto" not highlighted in Ada-mode) 2009-01-15 7:51 ` bug#1912: Reserved word "goto" not highlighted in Ada-mode Erik 2009-01-15 8:58 ` Juanma Barranquero @ 2010-01-13 7:30 ` Emacs bug Tracking System 1 sibling, 0 replies; 5+ messages in thread From: Emacs bug Tracking System @ 2010-01-13 7:30 UTC (permalink / raw) To: Stephen Leake; +Cc: emacs-bug-tracker [-- Attachment #1: Type: text/plain, Size: 857 bytes --] Your message dated Wed, 13 Jan 2010 02:02:08 -0500 with message-id <uk4vmo5cf.fsf@stephe-leake.org> and subject line Re: bug#1912: Reserved word "goto" not highlighted in Ada-mode has caused the Emacs bug report #1912, regarding Reserved word "goto" not highlighted in Ada-mode to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact bug-gnu-emacs@gnu.org immediately.) -- 1912: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1912 Emacs Bug Tracking System Contact bug-gnu-emacs@gnu.org with problems [-- Attachment #2: Type: message/rfc822, Size: 3217 bytes --] From: Erik <esigra@gmail.com> To: bug-gnu-emacs@gnu.org Subject: Reserved word "goto" not highlighted in Ada-mode Date: Thu, 15 Jan 2009 08:51:24 +0100 Message-ID: <496EEAFC.9020600@gmail.com> The reserved word "goto" not highlighted in Ada-mode. [-- Attachment #3: Type: message/rfc822, Size: 2202 bytes --] From: Stephen Leake <stephen_leake@stephe-leake.org> To: 1912-done@debbugs.gnu.org Subject: Re: bug#1912: Reserved word "goto" not highlighted in Ada-mode Date: Wed, 13 Jan 2010 02:02:08 -0500 Message-ID: <uk4vmo5cf.fsf@stephe-leake.org> I agree with Juanma's analysis; this is not a bug, it's a feature of font-lock. -- -- Stephe ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-01-13 7:30 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <uk4vmo5cf.fsf@stephe-leake.org> 2009-01-15 7:51 ` bug#1912: Reserved word "goto" not highlighted in Ada-mode Erik 2009-01-15 8:58 ` Juanma Barranquero 2009-01-15 13:10 ` Erik 2009-01-15 14:30 ` Juanma Barranquero 2010-01-13 7:30 ` bug#1912: marked as done (Reserved word "goto" not highlighted in Ada-mode) Emacs bug Tracking System
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.