From unknown Wed Aug 20 00:02:47 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#57327 <57327@debbugs.gnu.org> To: bug#57327 <57327@debbugs.gnu.org> Subject: Status: Bug in vhdl-mode design hierarchy extraction Reply-To: bug#57327 <57327@debbugs.gnu.org> Date: Wed, 20 Aug 2025 07:02:47 +0000 retitle 57327 Bug in vhdl-mode design hierarchy extraction reassign 57327 emacs submitter 57327 Gonzalo Larumbe severity 57327 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 21 17:44:06 2022 Received: (at submit) by debbugs.gnu.org; 21 Aug 2022 21:44:06 +0000 Received: from localhost ([127.0.0.1]:36977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPsjl-0001Q3-Fx for submit@debbugs.gnu.org; Sun, 21 Aug 2022 17:44:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:36570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPfQP-0001Wg-QX for submit@debbugs.gnu.org; Sun, 21 Aug 2022 03:31:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPfQP-0000wr-Lc for bug-gnu-emacs@gnu.org; Sun, 21 Aug 2022 03:31:13 -0400 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]:33498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPfQN-0007AG-W7 for bug-gnu-emacs@gnu.org; Sun, 21 Aug 2022 03:31:13 -0400 Received: by mail-pg1-x531.google.com with SMTP id l64so6909768pge.0 for ; Sun, 21 Aug 2022 00:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=eEUpcTo8sdKYotFEqGVJdnp/Pv/qMdE/uy+rl3jHerY=; b=TJ+PgtCtMYh3c4YtiIb0Fiv/D14unN3MMaFwlHibT1LVK9nSr5CKx2ElArekyoEz5V 7JzAdd2xr8kId98o2tIU3dMw8po89mdeIgHTIliHHTf4M7ttc0jWxsPLm6ztWLvur0Jf wamzjFWxJO0ndV+HA5YX3y82b1o7ggbMRx11coTs6SF9bNYXsb8sev17+cvHgIbjnE/e RZffC6pSXcaMVOtUmJcDgR8F0tz9vbmEfzolFN+5EOQiD7cpv0kLyIAiGenxLQicyDVR gZXdFMePkES+JwbLwjDwx/ht8iGtW0p+huG1cdWZJ1ULAfInn6dG3eam3cl3mBpzjcE5 IAVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=eEUpcTo8sdKYotFEqGVJdnp/Pv/qMdE/uy+rl3jHerY=; b=zA8W3C/Olp62SlUr6rKa17jpxzW14UsbmXEJYI7Ye3djFEqD4P7MsXP+k293Poo6Jg ec5jAQgwFdH1QJJg0G0RXhNbTYKV86etCdYEfn3Gexu+37Lfy/KNilAyiFfDIRzVGmbN rxONDCQ5/+jONd1f4HQorHtrvMmtvwuktbL3WrXjRCwu95sQpRTaAmpmFcKEAGNgnv62 xWwpAvamuBVXTo0y7nzAyqdbYA5vB7lFdooUVjZLVjLgiXKLUUHqUfcwPVMOImezniqm +TL8okRqcYsX91yk27Jijmidx7fc9Zql7DnYudI8ui5MJvmLP6KI5skIXRrpUtNRiBJY M5HQ== X-Gm-Message-State: ACgBeo2hH++4PS69t2ZlENAtCuwEedYmTpRoo6qxmsY1JUwQwAmM6g7k f9zHiiZgt3NbAezkpjx0lpZkdDZ52bKYnsE48EamQOGJay4= X-Google-Smtp-Source: AA6agR4rtrlAvFhWp1Y97TBLWa6PM1wy1iJEWGuj0017jVuNQ9oXMAYr4eD1x02k4Ezo5v1NJv7oCuz1I02D6rX3200= X-Received: by 2002:a65:5504:0:b0:42a:352d:c79c with SMTP id f4-20020a655504000000b0042a352dc79cmr10242721pgr.58.1661067069017; Sun, 21 Aug 2022 00:31:09 -0700 (PDT) MIME-Version: 1.0 From: Gonzalo Larumbe Date: Sun, 21 Aug 2022 09:30:00 +0200 Message-ID: Subject: Bug in vhdl-mode design hierarchy extraction To: bug-gnu-emacs@gnu.org Content-Type: multipart/mixed; boundary="00000000000098e9ec05e6bb5013" Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=gonzalomlarumbe@gmail.com; helo=mail-pg1-x531.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 21 Aug 2022 17:44:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --00000000000098e9ec05e6bb5013 Content-Type: multipart/alternative; boundary="00000000000098e9ea05e6bb5011" --00000000000098e9ea05e6bb5011 Content-Type: text/plain; charset="UTF-8" Hi, First of all, thanks a lot for actively developing and maintaining Emacs. It is something that makes me very happy in my daily work. Some time ago I found a bug in vhdl-mode.el after trying to extract the hierarchy in speedbar of the current design. The design I'm trying to parse is the one based on the following repo: - https://github.com/gmlarumbe/axi_if_converter After opening the following file (*src/top/rtl/axi_if_converter.vhd*), starting speedbar and pressing 'h' to get the hierarchy I get the following error: - WARNING: ERROR: Invalid hierarchy information, unable to display correctly When I first debugged this issue some time ago it seemed it had to do with lexical-binding and the function `vhdl-speedbar-insert-hierarchy`. I made some changes that made it work and could help debugging in a branch of my emacs-mirror fork: https://github.com/emacs-mirror/emacs/compare/master...gmlarumbe:emacs:vhdl-projects Yesterday I also checked that vhdl-mode has received some updates since then, some of them in this particular `vhdl-speedbar-insert-hierarchy` function that actually had to do with lexical-binding (commit a769cbfcfb by Eli Zaretskii). I made some new simple changes that I attach in a diff file and seem to fix the issue. However, maybe the author/maintainer knows a better way of fixing this. Thanks a lot for your effort, Best, Gonzalo --00000000000098e9ea05e6bb5011 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

First of all, thanks a l= ot for actively developing and maintaining Emacs. It is something that make= s me very happy in my daily work.

Some time ag= o I found a bug in vhdl-mode.el after trying to extract the hierarchy in sp= eedbar of the current design. The design I'm trying to parse is the one= based on the following repo:

After opening the following file= (src/top/rtl/axi_if_converter.vhd), starting speedbar and pressing = 'h' to get the hierarchy I get the following error:
= - WARNING: =C2=A0ERROR: =C2=A0Invalid hierarchy information, unable to disp= lay correctly

When I first debugged this issue som= e time ago it seemed it had to do with lexical-binding and the function `vh= dl-speedbar-insert-hierarchy`. I made some changes that made it work and co= uld help debugging in a branch of my emacs-mirror fork: https://github.com/emacs-mirror/emacs/compare/master...gmlarumbe:emacs:v= hdl-projects

Yesterday I also checked that vhd= l-mode has received some updates since then, some of them in this particula= r `vhdl-speedbar-insert-hierarchy` function that actually had to do with le= xical-binding (commit a769cbfcfb by Eli Zaretskii). I made some new simple = changes that I attach in a diff file and seem to fix the issue. However, ma= ybe the author/maintainer knows a better way of fixing this.

=
Thanks a lot for your effort,

Best,

Gonzalo

--00000000000098e9ea05e6bb5011-- --00000000000098e9ec05e6bb5013 Content-Type: text/x-patch; charset="US-ASCII"; name="vhdl-mode.diff" Content-Disposition: attachment; filename="vhdl-mode.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l72gv5ia0 ZGlmZiAtLWdpdCBhL2xpc3AvcHJvZ21vZGVzL3ZoZGwtbW9kZS5lbCBiL2xpc3AvcHJvZ21vZGVz L3ZoZGwtbW9kZS5lbAppbmRleCAzOWM1ZWI0NTNiLi4xODIxOWRiNzQwIDEwMDY0NAotLS0gYS9s aXNwL3Byb2dtb2Rlcy92aGRsLW1vZGUuZWwKKysrIGIvbGlzcC9wcm9nbW9kZXMvdmhkbC1tb2Rl LmVsCkBAIC0xNDk1OCw4ICsxNDk1OCw4IEBAIG90aGVyd2lzZSB1c2UgY2FjaGVkIGRhdGEuIgog CiAoZGVmdW4gdmhkbC1zcGVlZGJhci1pbnNlcnQtaGllcmFyY2h5ICggZW50LWFsaXN0LWFyZyBj b25mLWFsaXN0LWFyZwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBh Y2thZ2UtYWxpc3QgZW50LWluc3QtbGlzdCBkZXB0aCkKLSAgIkluc2VydCBoaWVyYXJjaHkgb2Yg RU5ULUFMSVNULCBDT05GLUFMSVNULCBhbmQgUEFDS0FHRS1BTElTVC4iCi0gIChpZiAobm90IChv ciBlbnQtYWxpc3QgY29uZi1hbGlzdCBwYWNrYWdlLWFsaXN0KSkKKyAgIkluc2VydCBoaWVyYXJj aHkgb2YgRU5ULUFMSVNULUFSRywgQ09ORi1BTElTVC1BUkcsIGFuZCBQQUNLQUdFLUFMSVNULiIK KyAgKGlmIChub3QgKG9yIGVudC1hbGlzdC1hcmcgY29uZi1hbGlzdC1hcmcgcGFja2FnZS1hbGlz dCkpCiAgICAgICAodmhkbC1zcGVlZGJhci1tYWtlLXRpdGxlLWxpbmUgIk5vIFZIREwgZGVzaWdu IHVuaXRzISIgZGVwdGgpCiAgICAgKGxldCAoKGVudC1hbGlzdCBlbnQtYWxpc3QtYXJnKQogICAg ICAgICAgIChjb25mLWFsaXN0IGNvbmYtYWxpc3QtYXJnKQo= --00000000000098e9ec05e6bb5013-- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 21 19:29:47 2022 Received: (at 57327) by debbugs.gnu.org; 21 Aug 2022 23:29:48 +0000 Received: from localhost ([127.0.0.1]:37063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPuO3-00027A-Mc for submit@debbugs.gnu.org; Sun, 21 Aug 2022 19:29:47 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPuO0-00026s-OQ for 57327@debbugs.gnu.org; Sun, 21 Aug 2022 19:29:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Vo2DVaVqKuiNnHoXB3UTpQgt/B0SXbSEq+5tOFDyF58=; b=CWp561euCPma4Ab5eO74poUTDv +Kh+rM52Wz6u40saycyJUOfM9dxNeQ2ieXE1lJnJEKfAEbUxAKvbLkJK+sFXx3lF8OZqsmZh2H2qd I1mTL5tvDzQILWdaTIfqXaxTQ5WFq/tj177qAk1UGcfUQqjFNwTRHvuPKbcxLqJqVBAU=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oPuNr-0007JP-PM; Mon, 22 Aug 2022 01:29:37 +0200 From: Lars Ingebrigtsen To: Gonzalo Larumbe Subject: Re: bug#57327: Bug in vhdl-mode design hierarchy extraction In-Reply-To: (Gonzalo Larumbe's message of "Sun, 21 Aug 2022 09:30:00 +0200") References: X-Now-Playing: The Notwist's _Vertigo Days_: "Where You Find Me" Date: Mon, 22 Aug 2022 01:29:35 +0200 Message-ID: <87edx9ch0g.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Gonzalo Larumbe writes: > Yesterday I also checked that vhdl-mode has received some updates since then, > some of them in this particular `vhdl-speedbar-insert-hierarchy` function that > actually had to do with lexical-bindi [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57327 Cc: 57327@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gonzalo Larumbe writes: > Yesterday I also checked that vhdl-mode has received some updates since then, > some of them in this particular `vhdl-speedbar-insert-hierarchy` function that > actually had to do with lexical-binding (commit a769cbfcfb by Eli Zaretskii). I made > some new simple changes that I attach in a diff file and seem to fix the issue. I think that looks like the correct solution here, so I've pushed your patch to Emacs 29. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 21 19:29:51 2022 Received: (at control) by debbugs.gnu.org; 21 Aug 2022 23:29:51 +0000 Received: from localhost ([127.0.0.1]:37066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPuO6-00027W-TW for submit@debbugs.gnu.org; Sun, 21 Aug 2022 19:29:51 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPuO4-00026x-MT for control@debbugs.gnu.org; Sun, 21 Aug 2022 19:29:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=l3VGKz1Q6+wN5o8xnuy6SnXtiAyvYTw0oWhoHWOE7zM=; b=jS7xuAkQjQ91jfCPmbxvhQkpA4 rWD7UhKDgfjPkvUtSVbGwAYjEFp4jyOKWuUsYrWSXssUEOwjPH+wpCDNKmyTrpxJtz17syLIrgoIR iImqw5Bm2dEg+yerO6RMib3Aj+zWgphpJjdvYvqIWmkPfPvGTFmouOaDuKtzZT9+UC7A=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oPuNw-0007JX-RR for control@debbugs.gnu.org; Mon, 22 Aug 2022 01:29:42 +0200 Date: Mon, 22 Aug 2022 01:29:40 +0200 Message-Id: <87czctch0b.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #57327 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 57327 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 57327 29.1 quit From unknown Wed Aug 20 00:02:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 19 Sep 2022 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator