aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorStefan Monnier2012-07-18 05:33:09 -0400
committerStefan Monnier2012-07-18 05:33:09 -0400
commit95bdccb782fbeb97cc2cc12a64635d6d5f85475f (patch)
tree3a36a3db589494318de6d586eae1a47ae82b3274 /lisp/progmodes
parentfbf31a9c2c08c86a7ab490cb7b920245b829a61d (diff)
downloademacs-95bdccb782fbeb97cc2cc12a64635d6d5f85475f.tar.gz
emacs-95bdccb782fbeb97cc2cc12a64635d6d5f85475f.zip
* lisp/progmodes/cperl-mode.el (cperl-unwind-to-safe): Don't inf-loop at end
of narrowed buffer. Fixes: debbugs:11966
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/cperl-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index 2c258fb446a..58cbf26496d 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -3498,7 +3498,8 @@ Works before syntax recognition is done."
3498 (if end 3498 (if end
3499 ;; Do the same for end, going small steps 3499 ;; Do the same for end, going small steps
3500 (save-excursion 3500 (save-excursion
3501 (while (and end (get-text-property end 'syntax-type)) 3501 (while (and end (< end (point-max))
3502 (get-text-property end 'syntax-type))
3502 (setq pos end 3503 (setq pos end
3503 end (next-single-property-change end 'syntax-type nil (point-max))) 3504 end (next-single-property-change end 'syntax-type nil (point-max)))
3504 (if end (progn (goto-char end) 3505 (if end (progn (goto-char end)