From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: taashlo@cyberdude.com (Tad Ashlock) Newsgroups: gmane.emacs.help Subject: Re: vhdl-mode problem Date: 1 Sep 2004 06:42:42 -0700 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <5917f4d0.0408311053.3ec9d96c@posting.google.com> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1094046326 3077 80.91.224.253 (1 Sep 2004 13:45:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Sep 2004 13:45:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 01 15:45:18 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C2VQL-0006TD-00 for ; Wed, 01 Sep 2004 15:45:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2VVG-0007Ev-Dg for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Sep 2004 09:50:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews2.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 66 Original-NNTP-Posting-Host: 134.253.26.10 Original-X-Trace: posting.google.com 1094046162 9013 127.0.0.1 (1 Sep 2004 13:42:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 1 Sep 2004 13:42:42 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:125047 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20400 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20400 taashlo@sandia.gov (Tad Ashlock) wrote in message news:<5917f4d0.0408311053.3ec9d96c@posting.google.com>... > (Windows XP SP1, Emacs 21.3.50, vhdl-mode 3.32.20 and 3.32.12) > > I've just started learning VHDL and I'm having a problem > with emacs's vhdl-mode. > > I put the cursor in an entity declaration and C-c C-p C-w > to copy the port information. > > -- Original Entity: > entity Test is > port ( > Clk : in std_logic ; > Rst : in std_logic > ) ; > end Test ; > > I then move the cursor to another vhdl source file and hit > C-c C-p C-c to paste it as a component. Emacs then goes > unresponsive and I have to hit C-g to get it back. When I > do get it back, it appears that Emacs had been in an > infinite loop inserting spaces. > > -- Pasted Component (after C-g): > component Test > port ( > Clk <<<1000's of spaces>>> in std_logic; > Rst : in std_logic); > > I also get the same results when I start emacs with > "runemacs -q" (which uses the vhdl-mode[3.32.12] that came > with emacs 21.3.50). I also get similar results when > pasting as an entity or as a testbench (I haven't tried > others). > > Thank you, > > Tad Ashlock Never mind. I figured out the problem. If anybody's interested, the following patch fixes this problem. *** c:/site-lisp/vhdl-mode/vhdl-mode.el 2004-09-01 06:58:30.778750000 -0600 --- c:/temp/vhdl-mode.el 2004-09-01 07:00:29.888125000 -0600 *************** *** 7520,7526 **** (if (match-string 1) (goto-char (match-end 1)) (replace-match "\\3 \\4 \\5") ! (goto-char (match-end 4)))) ;; eliminate multiple spaces and spaces at end of line (goto-char beg) (while (or (and (looking-at "--.*\n") (re-search-forward "--.*\n" end t)) --- 7520,7526 ---- (if (match-string 1) (goto-char (match-end 1)) (replace-match "\\3 \\4 \\5") ! (goto-char (match-end 2)))) ;; eliminate multiple spaces and spaces at end of line (goto-char beg) (while (or (and (looking-at "--.*\n") (re-search-forward "--.*\n" end t)) Thank you, Tad Ashlock