From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#1243: Verilog mode hanging emacs 22.2 Date: Mon, 27 Oct 2008 10:20:38 -0400 Message-ID: References: <049C4E48B10A854FB9D3B3C9DFAB506BC3D337@smarexmb1.amd.com> <049C4E48B10A854FB9D3B3C9DFAB506BC3D3FF@smarexmb1.amd.com> Reply-To: Stefan Monnier , 1243@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225119048 30814 80.91.229.12 (27 Oct 2008 14:50:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2008 14:50:48 +0000 (UTC) Cc: 1243@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org, "Bilik, Scott" , Wilson Snyder To: "Mitchell\, Paul" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 27 15:51:48 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KuTRP-0002Qm-GV for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Oct 2008 15:51:35 +0100 Original-Received: from localhost ([127.0.0.1]:40918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuTQJ-0000we-JP for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Oct 2008 10:50:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuTQ8-0000tU-Nw for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:50:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KuTQ8-0000tE-8F for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:50:16 -0400 Original-Received: from [199.232.76.173] (port=44163 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuTQ7-0000t9-VE for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:50:15 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48531) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KuTQ7-0007zP-Ln for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:50:15 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9REo36V028332; Mon, 27 Oct 2008 07:50:03 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9REU3b6023633; Mon, 27 Oct 2008 07:30:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Mon, 27 Oct 2008 14:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1243 X-Emacs-PR-Package: emacs,verilog X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122511725122386 (code B ref -1); Mon, 27 Oct 2008 14:30:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 27 Oct 2008 14:20:51 +0000 Original-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 m9REKehE022374 for ; Mon, 27 Oct 2008 07:20:41 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuSxU-0006ym-2b for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:20:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KuSxT-0006yP-Cz for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:20:39 -0400 Original-Received: from [199.232.76.173] (port=55565 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuSxT-0006yK-9X for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:20:39 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:20596 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KuSxT-00085L-7c for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:20:39 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGlrBUlFxIGZ/2dsb2JhbACBdr9+g0+BDQ X-IronPort-AV: E=Sophos;i="4.33,492,1220241600"; d="scan'208";a="28901865" Original-Received: from 69-196-129-153.dsl.teksavvy.com (HELO pastel.home) ([69.196.129.153]) by ironport2-out.teksavvy.com with ESMTP; 27 Oct 2008 10:20:38 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 263478E6F; Mon, 27 Oct 2008 10:20:38 -0400 (EDT) In-Reply-To: <049C4E48B10A854FB9D3B3C9DFAB506BC3D3FF@smarexmb1.amd.com> (Paul Mitchell's message of "Mon, 27 Oct 2008 09:58:05 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 27 Oct 2008 10:50:16 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21942 Archived-At: > I ran emacs under gdb, from within the src directory. I then edited the > file that exhibits this problem and did a few incremental searches. > This caused emacs to hang. I tried to break out of this from gdb using > ctrl-c, which killed emacs so that I could not use xbacktrace. Then, > from the gdb prompt I used: "handle SIGINT stop", got back to the hang, > and tried ctrl-c again. I now was able to use xbacktrace, and see this: > (gdb) xbacktrace > "re-search-backward" (0x86f1eeb) > "verilog-beg-of-defun" (0x87cfd85) > "byte-code" (0x8234d13) > "verilog-syntax-ppss" (0x831e8c9) > "verilog-skip-backward-comment-or-string" (0x8811595) > "verilog-beg-of-defun" (0x87cfd85) > "byte-code" (0x8234d13) > "verilog-syntax-ppss" (0x831e8c9) I believe the patch below will fix it. Wilson, WDYT? Stefan --- verilog-mode.el.~1.24.~ 2008-09-12 12:39:48.000000000 -0400 +++ verilog-mode.el 2008-10-27 10:18:58.000000000 -0400 @@ -2373,6 +2373,8 @@ ;; Fontify things in translate off regions '(verilog-match-translate-off (0 'verilog-font-lock-translate-off-face prepend)))))) + ;; FIXME: This XEmacs setting is redundant with the setting done later + ;; for Emacs (because XEmacs obeys's Emacs setting as well). (put 'verilog-mode 'font-lock-defaults '((verilog-font-lock-keywords verilog-font-lock-keywords-1 @@ -2560,10 +2562,17 @@ ;; Stuff for GNU Emacs (set (make-local-variable 'font-lock-defaults) - '((verilog-font-lock-keywords verilog-font-lock-keywords-1 + `((verilog-font-lock-keywords verilog-font-lock-keywords-1 verilog-font-lock-keywords-2 verilog-font-lock-keywords-3) - nil nil nil verilog-beg-of-defun)) + nil nil nil + ,(if (functionp 'syntax-ppss) + ;; verilog-beg-of-defun uses syntax-ppss, and syntax-ppss uses + ;; font-lock-beginning-of-syntax-function, so + ;; font-lock-beginning-of-syntax-function, can't use + ;; verilog-beg-of-defun. + nil + verilog-beg-of-defun))) ;;------------------------------------------------------------ ;; now hook in 'verilog-colorize-include-files (eldo-mode.el&spice-mode.el) ;; all buffer local: