Commit 66f50b12 authored by Stefan Monnier's avatar Stefan Monnier

* lisp/progmodes/perl-mode.el (perl-indent-new-calculate):

Handle forward-sexp failure.

Fixes: debbugs:16985
parent ffcd5669
2014-04-02 Stefan Monnier <>
* progmodes/perl-mode.el (perl-indent-new-calculate):
Handle forward-sexp failure (bug#16985).
2014-04-02 Glenn Morris <>
* menu-bar.el (menu-bar-file-menu):
......@@ -210,6 +215,7 @@
(electric-indent-mode): Don't mess with the global map any more.
Don't drop the post-self-insert-hook is some buffer is still using it
* bindings.el (global-map): Remove C-j binding.
* emacs-lisp/nadvice.el (advice--make-docstring): Try harder to find
......@@ -854,11 +854,12 @@ changed by, or (parse-state) if line starts in a quoted string."
(and (= (char-syntax (following-char)) ?\))
(forward-char 1)
(forward-sexp -1)
(when (condition-case nil (progn (forward-sexp -1) t)
(scan-error nil))
;; Recalculate the parsing-start, since we may have jumped
;; dangerously close (typically in the case of nested functions).
'virtual nil (save-excursion (perl-beginning-of-function)))))
'virtual nil (save-excursion (perl-beginning-of-function))))))
(and (and (= (following-char) ?{)
(save-excursion (forward-char) (perl-hanging-paren-p)))
(+ (or default (perl-calculate-indent parse-start))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment