mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
Fix perl-calculate-indent
* lisp/progmodes/perl-mode.el (perl-calculate-indent): Ensure that the value from (nth 3 state) is a character before passing it to char-equal.
This commit is contained in:
parent
fc3ba09401
commit
429336b409
|
|
@ -1021,7 +1021,7 @@ Returns (parse-state) if line starts inside a string."
|
|||
(containing-sexp (nth 1 state))
|
||||
;; Don't auto-indent in a quoted string or a here-document.
|
||||
(unindentable (or (nth 3 state) (eq 2 (nth 7 state))))
|
||||
(format (and (nth 3 state)
|
||||
(format (and (characterp (nth 3 state))
|
||||
(char-equal (nth 3 state) ?\n))))
|
||||
(when (and (eq t (nth 3 state))
|
||||
(save-excursion
|
||||
|
|
|
|||
Loading…
Reference in a new issue