From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Martin Jost" Newsgroups: gmane.emacs.bugs Subject: cperl mode hangs when used with narrowing under certain conditions Date: Wed, 20 Nov 2002 12:54:59 +0100 Organization: Siemens Business Services Sender: bug-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1037793268 7543 80.91.224.249 (20 Nov 2002 11:54:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 20 Nov 2002 11:54:28 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ETQy-0001wH-00 for ; Wed, 20 Nov 2002 12:54:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18ETSh-0005x9-00; Wed, 20 Nov 2002 06:56:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18ETRo-0005jl-00 for bug-gnu-emacs@prep.ai.mit.edu; Wed, 20 Nov 2002 06:55:12 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18ETRj-0005j2-00 for bug-gnu-emacs@prep.ai.mit.edu; Wed, 20 Nov 2002 06:55:10 -0500 Original-Received: from chx400.switch.ch ([130.59.10.2]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18ETRh-0005hq-00 for bug-gnu-emacs@prep.ai.mit.edu; Wed, 20 Nov 2002 06:55:06 -0500 Original-Received: from goliath.siemens.de ([192.35.17.28]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 18ETRe-0003z7-00 for gnu-emacs-bug@moderators.isc.org; Wed, 20 Nov 2002 12:55:02 +0100 Original-Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.11.6/8.11.6) with ESMTP id gAKBt1g01232 for ; Wed, 20 Nov 2002 12:55:01 +0100 (MET) Original-Received: from news.mch.sbs.de (news.mch.sbs.de [139.25.208.17]) by mail1.siemens.de (8.11.6/8.11.6) with ESMTP id gAKBt0c11917 for ; Wed, 20 Nov 2002 12:55:00 +0100 (MET) Original-Received: (from news@localhost) by news.mch.sbs.de (8.11.6/8.11.6) id gAKBt0h20957 for gnu-emacs-bug@moderators.isc.org; Wed, 20 Nov 2002 12:55:00 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 61 Original-NNTP-Posting-Host: 139.21.8.114 Original-X-Trace: news.mch.sbs.de 1037793299 20954 139.21.8.114 (20 Nov 2002 11:54:59 GMT) Original-X-Complaints-To: abuse@siemens.de Original-NNTP-Posting-Date: Wed, 20 Nov 2002 11:54:59 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3918 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3918 Hello, I just discovered a problem that makes my emacs (21.2 on HPUX 10.20) hang. [First of all: Congratulations (I _really_ mean this !) This is the first problem in emacs for many year which breaks it] System: emacs 21.2 on HPUX 10.20 Compiled with HP tools and Motif Perl/Micro-docs/Cperl-version gives: The version of master-file for this CPerl is 4.32 Reproduce: Start emacs with '-q' and probably --no-site-file (see below) Load this into a buffer: -------------------- snip, snip ----------------------- { # 'next LINE;' # 'next PAT; } -------------------- snip, snip ----------------------- Switch cperl-mode on Narrow the buffer down to the region starting with the first comment-line and ending with the last. (It now should look like this: # 'next LINE;' # 'next PAT; ) Position the cursor on the beginning of the first comment-line Press => emacs freezes; it has to be killed This happens for me with both cperl 4.32 and 4.23 (coming with emacs) I have to use the site-start-file to get the newer one: This just contains: (setq load-path (append (list "/pd/site-lisp/" "/pd/site-lisp/pcl-cvs") load-path)) (msb-mode) TIA - and thanks for a great tool for a great language ! Martin PS: I thought, that cperl got confused because of the keywords in the comment. But this -------------------- snip, snip ----------------------- { # fdgshj dsghsdj öjmäcxm # dsfj gdsjdgs ljdsfhl } -------------------- snip, snip ----------------------- gives the same behaviour ! (Only tested with 4.32)