From unknown Mon Aug 18 00:07:35 2025 X-Loop: don@donarmstrong.com Subject: bug#989: 23.0.60; High number of different comment lines in a verilog file makes Emacs' verilog-mode unusable slow Reply-To: Mathias Megyei , 989@debbugs.gnu.org Resent-From: Mathias Megyei Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 17 Sep 2008 09:00:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 989 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122164168432220 (code B ref -1); Wed, 17 Sep 2008 09:00:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 17 Sep 2008 08:54:44 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8H8sd21032214 for ; Wed, 17 Sep 2008 01:54:41 -0700 Received: from mail.gnu.org ([199.232.76.166]:59119 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KfsmB-0002Bi-C2 for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 04:52:43 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kfsnx-0001Fw-AD for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 04:54:38 -0400 Received: from mail.gracesemi.at ([213.33.64.235]:1025) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kfsnu-0001Dy-8g for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 04:54:30 -0400 Received: from [192.168.100.101] (192.168.100.101) by vihwindc01.eu-gracesemi.local (10.11.15.2) with Microsoft SMTP Server (TLS) id 8.1.311.1; Wed, 17 Sep 2008 10:54:49 +0200 Message-ID: <48D0C5C1.1030902@gracesemi.at> Date: Wed, 17 Sep 2008 10:54:25 +0200 From: Mathias Megyei User-Agent: Thunderbird 2.0.0.16 (X11/20080707) MIME-Version: 1.0 To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-Product-Ver: SMEX-8.0.0.1181-5.500.1027-16162.002 X-TM-AS-Result: No-1.611100-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I have a verilog file with 593 lines. It contains 129 lines that start with comment. (There are more comments in "code" lines but that doesn't matter.) After emacs -Q C-x C-f C-end it takes several minutes until Emacs displays the last page. I investigated what causes this slowdown and I eventually found that the number of different comment lines is the reason for that. If I replace only the half of the comment lines by the same comment Emacs is much faster. If I replace all 129 comment lines by the same (random) comment Emacs is as fast as I would like it to be. I opened the same file in Emacs 22.2 (verilog-mode-version 404) and didn't observed such slowness. Best Regards, Mathias If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /tools/emacs/23.0.60/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-09-16 on VIHLXCOMP02 Windowing system distributor `The X.Org Foundation', version 11.0.60801000 configured using `configure '--prefix' '/tools/emacs/23.0.60' '--enable-font-backend' '--with-xft=yes' '--with-dbus=yes'' Important settings: value of $LC_ALL: C value of $LC_COLLATE: C value of $LC_CTYPE: de_DE@euro value of $LC_MESSAGES: en_US value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Verilog Minor modes in effect: iswitchb-mode: t show-paren-mode: t cua-mode: t display-time-mode: t shell-dirtrack-mode: t mouse-sel-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: / ! C-M-% { } SPC s t r i n g SPC a k l f d l ! C-x C-s C-M-% # ! C-M-% _ ! C-x C-s C-M-% [ ! C-x C-s C-M-% C-e SPC s d k l f d o f d SPC _ SPC s d k l d f k l f d SPC - SPC j k k k ` SPC l l d s v l v SPC # SPC \ k d f j k d f SPC | d f k j d f k l : SPC k j s d j k { s d d s j k : j d f k } SPC d s j [ s d j d SPC ] s d j k d k C-M-% ! C-x C-s C-M-% ! C-x C-s M-x r e p o r Recent messages: Undo! Mark set [2 times] match-substitute-replacement: Invalid use of `\' in replacement text Mark set Replaced 70 occurrences Wrote /home/megyei/otfc.v Undo! Mark set [2 times] Replaced 129 occurrences Wrote /home/megyei/otfc.v From unknown Mon Aug 18 00:07:35 2025 X-Loop: don@donarmstrong.com Subject: bug#989: Please close Reply-To: Mathias Megyei , 989@debbugs.gnu.org Resent-From: Mathias Megyei Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Fri, 24 Oct 2008 12:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 989 X-Emacs-PR-Package: emacs,verilog X-Emacs-PR-Keywords: Received: via spool by 989-submit@emacsbugs.donarmstrong.com id=B989.122485225327156 (code B ref 989); Fri, 24 Oct 2008 12:50:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=0.5 required=4.0 tests=BAYES_20,HTML_MESSAGE autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 989) by emacsbugs.donarmstrong.com; 24 Oct 2008 12:44:13 +0000 Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9OCi91G027150 for <989@emacsbugs.donarmstrong.com>; Fri, 24 Oct 2008 05:44:11 -0700 Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 8D42C1C003C7 for <989@emacsbugs.donarmstrong.com>; Fri, 24 Oct 2008 14:44:08 +0200 (CEST) Received: from [192.168.100.64] (host-88-217-141-230.customer.m-online.net [88.217.141.230]) by mail.mnet-online.de (Postfix) with ESMTP id 5B9D19001D for <989@emacsbugs.donarmstrong.com>; Fri, 24 Oct 2008 14:44:08 +0200 (CEST) From: Mathias Megyei To: 989@debbugs.gnu.org Content-Type: multipart/alternative; boundary="=-0/i9SHiBh0vgUwm0zCxN" Organization: Grace Semiconductor Date: Fri, 24 Oct 2008 14:44:47 +0200 Message-Id: <1224852287.7323.19.camel@ubuntu804desktop.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 --=-0/i9SHiBh0vgUwm0zCxN Content-Type: text/plain Content-Transfer-Encoding: 7bit Withe a recent build of emacs I do not see the slowdown any more. Please close this bug report. Best Regards, Mathias --=-0/i9SHiBh0vgUwm0zCxN Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Withe a recent build of emacs I do not see the slowdown any more.
Please close this bug report.

Best Regards,

Mathias --=-0/i9SHiBh0vgUwm0zCxN--