From unknown Thu Aug 14 17:27:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#1912 <1912@debbugs.gnu.org> To: bug#1912 <1912@debbugs.gnu.org> Subject: Status: Reserved word "goto" not highlighted in Ada-mode Reply-To: bug#1912 <1912@debbugs.gnu.org> Date: Fri, 15 Aug 2025 00:27:01 +0000 retitle 1912 Reserved word "goto" not highlighted in Ada-mode reassign 1912 emacs submitter 1912 Erik severity 1912 normal thanks From esigra@gmail.com Wed Jan 14 23:48:15 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 15 Jan 2009 07:48:15 +0000 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 n0F7mCap030451 for ; Wed, 14 Jan 2009 23:48:13 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNMxX-0004AW-U1 for bug-gnu-emacs@gnu.org; Thu, 15 Jan 2009 02:48:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNMxW-00048z-Sb for bug-gnu-emacs@gnu.org; Thu, 15 Jan 2009 02:48:10 -0500 Received: from [199.232.76.173] (port=56421 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNMxW-00048w-NE for bug-gnu-emacs@gnu.org; Thu, 15 Jan 2009 02:48:10 -0500 Received: from fg-out-1718.google.com ([72.14.220.156]:4397) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LNMxW-0001ms-4w for bug-gnu-emacs@gnu.org; Thu, 15 Jan 2009 02:48:10 -0500 Received: by fg-out-1718.google.com with SMTP id l26so483234fgb.30 for ; Wed, 14 Jan 2009 23:48:07 -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=QaEQHV8ycF06nHj8UOHlqjUHBfFeq3fMTSKw31jwqR8=; b=FCBX1/DCBqx0spcjQFSw40v7GbSG+Q2OjZm3M621fSYPKMl3+3WLsKPUmVVTDqI4xs 5VdytTgXFLv0wiALzADtdKU7DnLTOfrUygPLHpu97YvRC5roTxWzpJf4ROEyK8kGEwfp CPUONzu+B8mn+SE/yhV7cro9fG/u0K6OuUD3s= 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=RWxzin7pmGTDR492l5gRE/dzKYUWElDB3kIpgft/DNzc1Lt7fRbzebioB/B1awgl78 Y4BH90Kt4l5GZL1sY0Aa7FzAwF9ecB1N0ecRXmJgjqqQxzojrEWJlQlzvllr11ExhlHK 3tVBiBS7hYzx0tKZYOfR7Hu0y42Lyqak/DHkA= Received: by 10.86.92.9 with SMTP id p9mr313534fgb.15.1232005687399; Wed, 14 Jan 2009 23:48:07 -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 4sm26095733fge.45.2009.01.14.23.48.05 (version=SSLv3 cipher=RC4-MD5); Wed, 14 Jan 2009 23:48:06 -0800 (PST) Message-ID: <496EEAFC.9020600@gmail.com> Date: Thu, 15 Jan 2009 08:51:24 +0100 From: Erik User-Agent: Thunderbird 2.0.0.19 (X11/20090102) MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: Reserved word "goto" not highlighted in Ada-mode Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) The reserved word "goto" not highlighted in Ada-mode. From lekktu@gmail.com Thu Jan 15 00:58:44 2009 Received: (at 1912) by emacsbugs.donarmstrong.com; 15 Jan 2009 08:58:44 +0000 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 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.26]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0F8wejR016012 for <1912@emacsbugs.donarmstrong.com>; Thu, 15 Jan 2009 00:58:42 -0800 Received: by ey-out-2122.google.com with SMTP id 4so112359eyf.13 for <1912@emacsbugs.donarmstrong.com>; Thu, 15 Jan 2009 00:58:40 -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=TXGj3re+rtrMR35TrHrNOaQ8Wcq0KlVwIgxcvZH6csc=; b=ws9ov7PJkAYwgJ94Xv2kTvf4KzFeWOwqmi5M+p5TOJGqjaC1L7hlSB/qVLXtpVEYl1 aHRK3e1zXAOgqWmGGN3pTGg7m1gOc9joVJl/O5+UjkixkuSIzevHLABECzjW1dMwBgi/ IafJxAiv+JRNoBOtnH/ZYPkVF+WI+cj6zMCgo= 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=BJmGnKUfowoLCB5XVCDsphGmF8IQClz+44trSqv2b0Z69z7CKYXAEV3826NM/CjBLb MA0HCOv8Rewj3S+JUQ7U8copEqdkSiD6I08nXIgzW8A3uvybxy8w9yiSpbcjGluP21DK kTCxtWBSZlD3/A3uHmRnVt9Ukp6HYJqhETyM4= Received: by 10.210.87.19 with SMTP id k19mr1339948ebb.20.1232009920060; Thu, 15 Jan 2009 00:58:40 -0800 (PST) Received: by 10.210.141.18 with HTTP; Thu, 15 Jan 2009 00:58:40 -0800 (PST) Message-ID: Date: Thu, 15 Jan 2009 09:58:40 +0100 From: "Juanma Barranquero" To: Erik Subject: Re: bug#1912: Reserved word "goto" not highlighted in Ada-mode Cc: 1912@debbugs.gnu.org In-Reply-To: <496EEAFC.9020600@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <496EEAFC.9020600@gmail.com> On Thu, Jan 15, 2009 at 08:51, Erik 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 From lekktu@gmail.com Thu Jan 15 01:42:07 2009 Received: (at control) by emacsbugs.donarmstrong.com; 15 Jan 2009 09:42:07 +0000 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.3 required=4.0 tests=MISSING_SUBJECT,NOSUBJECT, VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.188]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0F9g4fW027898 for ; Thu, 15 Jan 2009 01:42:05 -0800 Received: by fk-out-0910.google.com with SMTP id f40so659360fka.1 for ; Thu, 15 Jan 2009 01:42:03 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=SPwdADncbSWDg8ekorYTUlZ2T/e3cu8WmFggA1Wn9k0=; b=qrat/Cbj5kclRfSyoRv1ElBd0ht2H0cs/xPM3IYu/EcUyxDMJcNXdEKCrfqqn809U1 6CMMFyA0v6vItVORAAj/AswPcSN3euk4afYJI+3SJGY5dX/gonPujZPIgVvxytay0ajJ CA76IFCqTrO0PPGhw0GF6zm7wi92cCt57sl+g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=RX0ArMTnD0WBPlEnMSDIYkW01d4P1FSZf/zDYQ96RQAD6BB5d3a9meD6XuF0LdsNkH TBxVKavio7APfmJKwS9jSfSTTOOZnQzTkpRahp65vIXM5zHFUYt97Ykle0iR/nkhWKFt MqPm6+ffoERvTMIOkUoeM4Oi4NWEzlxdEeFkc= Received: by 10.103.192.2 with SMTP id u2mr551288mup.2.1232012523418; Thu, 15 Jan 2009 01:42:03 -0800 (PST) Received: by 10.210.141.18 with HTTP; Thu, 15 Jan 2009 01:42:03 -0800 (PST) Message-ID: Date: Thu, 15 Jan 2009 10:42:03 +0100 From: "Juanma Barranquero" To: control@debbugs.gnu.org Subject: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline reassign 1919 spam reassign 1912 emacs,ada-mode reassign 1913 emacs,ada-mode quit From esigra@gmail.com Thu Jan 15 05:07:16 2009 Received: (at 1912) by emacsbugs.donarmstrong.com; 15 Jan 2009 13:07:16 +0000 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 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.152]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0FD7CND024257 for <1912@emacsbugs.donarmstrong.com>; Thu, 15 Jan 2009 05:07:13 -0800 Received: by fg-out-1718.google.com with SMTP id l27so501851fgb.43 for <1912@emacsbugs.donarmstrong.com>; Thu, 15 Jan 2009 05:07:11 -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=1KfEZA/TKXtn97foPSbLjMusy/CelZezHcjeGbFBo8s=; b=Zl+L+92BQatIch50IE7XC2LjU2SG3KbYe0Xme8l/NeGSYCJ1gjUkJ/abO/4dXpQ0Qj g43okBcfeXHEzWLXEJGtfmMCJGiI05CmCp9n9jySZVxFzxjEB2Nl7fuy6jfU3mTA7rZy xhjzdJal+5SN+PHwdT9vy8piyJ9okIJFlMEuA= 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=xzuKgRgPbMdubqQQI9UbTcOYkIJctb2ejDi99N+IwoUGtMgPX4oKPKmZjDCHkFPALs Oa+KD/oEZ8kwRucwTNerQlYDPMTJZrnFuqePSMPL4mVWE6/KOK3f2t9nkjigJWpsAx/C MDG+ZtzpJbtK/f7s8iv0SphFoqbvJKSa6UH9s= Received: by 10.86.95.8 with SMTP id s8mr1184458fgb.79.1232024831675; Thu, 15 Jan 2009 05:07:11 -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 d6sm221011fga.50.2009.01.15.05.07.10 (version=SSLv3 cipher=RC4-MD5); Thu, 15 Jan 2009 05:07:11 -0800 (PST) Message-ID: <496F35C4.8050705@gmail.com> Date: Thu, 15 Jan 2009 14:10:28 +0100 From: Erik User-Agent: Thunderbird 2.0.0.19 (X11/20090102) MIME-Version: 1.0 To: Juanma Barranquero CC: 1912@debbugs.gnu.org Subject: Re: bug#1912: Reserved word "goto" not highlighted in Ada-mode References: <496EEAFC.9020600@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Juanma Barranquero skrev: > On Thu, Jan 15, 2009 at 08:51, Erik 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.) From lekktu@gmail.com Thu Jan 15 06:30:36 2009 Received: (at 1912) by emacsbugs.donarmstrong.com; 15 Jan 2009 14:30:36 +0000 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 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 n0FEUWJr018712 for <1912@emacsbugs.donarmstrong.com>; Thu, 15 Jan 2009 06:30:34 -0800 Received: by ewy14 with SMTP id 14so2344548ewy.1 for <1912@emacsbugs.donarmstrong.com>; Thu, 15 Jan 2009 06:30:27 -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=Ubr0Kfg4nYC57nYl3Nc+hiCio3odaKInO0+es2YnCWw=; b=AP+3VNteDB6vN3lGHoY3AifWdDin2iHe97gJbmEKT3owitnFALEyC4MKBpqYNLO9CS 8+cEg1DG3rWRqVTsxi2iYNJ615y2SaySdw1R3VzCSay13KadO+qDKTPBuVF97CSrtuAm NoR+u2EvE5Yd5hXtQmAg2KAZMt4+V9glsd8N0= 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=Y+NSQgFyG9/NEAvxFjWcwQxId1MqxRypsrKeHhWaBHepzcegDf7d5s9ZL8eahZQcQX 4LSK1Bd8dWvZbcGllszvjiXK0Zsc0dRr2bDts0J1mOvvfMnfp5xQKtPMlM3gLzlEoESG TNOLLYz5rc+W4NiflouhPL0WB6oRG+DGBO2qM= Received: by 10.210.144.3 with SMTP id r3mr336821ebd.30.1232029827206; Thu, 15 Jan 2009 06:30:27 -0800 (PST) Received: by 10.210.141.18 with HTTP; Thu, 15 Jan 2009 06:30:27 -0800 (PST) Message-ID: Date: Thu, 15 Jan 2009 15:30:27 +0100 From: "Juanma Barranquero" To: Erik Subject: Re: bug#1912: Reserved word "goto" not highlighted in Ada-mode Cc: 1912@debbugs.gnu.org In-Reply-To: <496F35C4.8050705@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <496EEAFC.9020600@gmail.com> <496F35C4.8050705@gmail.com> On Thu, Jan 15, 2009 at 14:10, Erik 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 13 02:29:45 2010 Received: (at 1912-done) by debbugs.gnu.org; 13 Jan 2010 07:29:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUxfl-0003lw-DJ for submit@debbugs.gnu.org; Wed, 13 Jan 2010 02:29:45 -0500 Received: from qmta09.westchester.pa.mail.comcast.net ([76.96.62.96]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUxEu-0003OW-5T for 1912-done@debbugs.gnu.org; Wed, 13 Jan 2010 02:02:00 -0500 Received: from omta20.westchester.pa.mail.comcast.net ([76.96.62.71]) by qmta09.westchester.pa.mail.comcast.net with comcast id Uv0Q1d0031YDfWL59v1xxa; Wed, 13 Jan 2010 07:01:57 +0000 Received: from SABUL ([68.50.111.2]) by omta20.westchester.pa.mail.comcast.net with comcast id Uv271d0070394wc3gv28eA; Wed, 13 Jan 2010 07:02:08 +0000 To: 1912-done@debbugs.gnu.org Subject: Re: bug#1912: Reserved word "goto" not highlighted in Ada-mode From: Stephen Leake Date: Wed, 13 Jan 2010 02:02:08 -0500 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: 1.8 (+) X-Debbugs-Envelope-To: 1912-done X-Mailman-Approved-At: Wed, 13 Jan 2010 02:29:44 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.6 (/) I agree with Juanma's analysis; this is not a bug, it's a feature of font-lock. -- -- Stephe From unknown Thu Aug 14 17:27:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 10 Feb 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator