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#11966: 24.1; cperl-mode with evil-mode causes hang on syntax-propertize Date: Wed, 18 Jul 2012 05:35:23 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342604175 13211 80.91.229.3 (18 Jul 2012 09:36:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2012 09:36:15 +0000 (UTC) Cc: 11966-done@debbugs.gnu.org, Ilya Zakharevich To: JC Petkovich Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 18 11:36:14 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SrQg0-0008GN-U7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jul 2012 11:36:13 +0200 Original-Received: from localhost ([::1]:41253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrQg0-0001x9-6r for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jul 2012 05:36:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrQfr-0001o6-TH for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 05:36:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrQfl-0001Rs-Nu for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 05:36:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrQfl-0001Rf-Ix for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 05:35:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SrQle-0002lJ-1M for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 05:42:02 -0400 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jul 2012 09:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 11966 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 11966@debbugs.gnu.org, monnier@IRO.UMontreal.CA Original-Received: via spool by 11966-done@debbugs.gnu.org id=D11966.134260450110588 (code D ref 11966); Wed, 18 Jul 2012 09:42:01 +0000 Original-Received: (at 11966-done) by debbugs.gnu.org; 18 Jul 2012 09:41:41 +0000 Original-Received: from localhost ([127.0.0.1]:47437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrQlH-0002kh-CT for submit@debbugs.gnu.org; Wed, 18 Jul 2012 05:41:41 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:37443) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrQlB-0002kW-SE for 11966-done@debbugs.gnu.org; Wed, 18 Jul 2012 05:41:38 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q6I9ZOMR020993; Wed, 18 Jul 2012 05:35:25 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 2BF36AECAF; Wed, 18 Jul 2012 05:35:23 -0400 (EDT) In-Reply-To: (JC Petkovich's message of "Tue, 17 Jul 2012 15:04:04 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4282=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4282> : streams <786609> : uri <1168328> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62086 Archived-At: Version:24.2 > Emacs hangs on the creation of a newline with evil-ret when in a cperl > buffer with some POD documentation after the __END__. This doesn't > appear to be a bug in evil, but instead a bug in cperl or > syntax-propertize, Indeed, I could reproduce it without evil. It seems to be a bug in cperl-mode, tho maybe it can only be triggered via syntax-propertize. In any case, I've installed the patch below into the emacs-24 branch, and that should fix it. Thanks you, Stefan === modified file 'lisp/ChangeLog' --- lisp/ChangeLog 2012-07-09 13:54:50 +0000 +++ lisp/ChangeLog 2012-07-18 09:32:41 +0000 @@ -1,3 +1,8 @@ +2012-07-18 Stefan Monnier + + * progmodes/cperl-mode.el (cperl-unwind-to-safe): Don't inf-loop at end + of narrowed buffer (bug#11966). + 2012-07-09 Stefan Monnier * progmodes/sh-script.el (sh-syntax-propertize-function): Fix last === modified file 'lisp/progmodes/cperl-mode.el' --- lisp/progmodes/cperl-mode.el 2012-06-21 16:49:21 +0000 +++ lisp/progmodes/cperl-mode.el 2012-07-18 09:31:14 +0000 @@ -3498,7 +3498,8 @@ (if end ;; Do the same for end, going small steps (save-excursion - (while (and end (get-text-property end 'syntax-type)) + (while (and end (< end (point-max)) + (get-text-property end 'syntax-type)) (setq pos end end (next-single-property-change end 'syntax-type nil (point-max))) (if end (progn (goto-char end)