1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-02 11:50:48 -08:00

* lisp/progmodes/cperl-mode.el (cperl-unwind-to-safe): Don't inf-loop at end

of narrowed buffer.

Fixes: debbugs:11966
This commit is contained in:
Stefan Monnier 2012-07-18 05:33:09 -04:00
parent fbf31a9c2c
commit 95bdccb782
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/cperl-mode.el (cperl-unwind-to-safe): Don't inf-loop at end
of narrowed buffer (bug#11966).
2012-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/sh-script.el (sh-syntax-propertize-function): Fix last

View file

@ -3498,7 +3498,8 @@ Works before syntax recognition is done."
(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)