diff options
| author | Stefan Monnier | 2014-04-16 10:13:06 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-04-16 10:13:06 -0400 |
| commit | c76a7a5cd27eb2359f383d481005bf12010f368e (patch) | |
| tree | c539427660ba8a88cd54d2fd9393565a81d8c274 | |
| parent | 63032a0eb9b9c9a8d5f4cae700b83d0dd1e699ce (diff) | |
| download | emacs-c76a7a5cd27eb2359f383d481005bf12010f368e.tar.gz emacs-c76a7a5cd27eb2359f383d481005bf12010f368e.zip | |
* lisp/progmodes/perl-mode.el (perl-calculate-indent): Don't auto-indent in
here-documents.
Fixes: debbugs:17262
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/progmodes/perl-mode.el | 4 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 50dcc78c947..38f71bdd78d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,12 @@ | |||
| 1 | 2014-04-16 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * progmodes/perl-mode.el (perl-calculate-indent): Don't auto-indent in | ||
| 4 | here-documents (bug#17262). | ||
| 5 | |||
| 1 | 2014-04-16 Eli Zaretskii <eliz@gnu.org> | 6 | 2014-04-16 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * term/pc-win.el (x-list-fonts, x-get-selection-value): Provide | 8 | * term/pc-win.el (x-list-fonts, x-get-selection-value): |
| 4 | doc strings, as required by snarf-documentation. | 9 | Provide doc strings, as required by snarf-documentation. |
| 5 | 10 | ||
| 6 | 2014-04-15 Stefan Monnier <monnier@iro.umontreal.ca> | 11 | 2014-04-15 Stefan Monnier <monnier@iro.umontreal.ca> |
| 7 | 12 | ||
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index 3486c0a1983..f89fec7b1e0 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el | |||
| @@ -903,7 +903,9 @@ Optional argument PARSE-START should be the position of `beginning-of-defun'." | |||
| 903 | ;; following_quotep minimum_paren-depth_this_scan) | 903 | ;; following_quotep minimum_paren-depth_this_scan) |
| 904 | ;; Parsing stops if depth in parentheses becomes equal to third arg. | 904 | ;; Parsing stops if depth in parentheses becomes equal to third arg. |
| 905 | (setq containing-sexp (nth 1 state))) | 905 | (setq containing-sexp (nth 1 state))) |
| 906 | (cond ((nth 3 state) 'noindent) ; In a quoted string? | 906 | (cond |
| 907 | ;; Don't auto-indent in a quoted string or a here-document. | ||
| 908 | ((or (nth 3 state) (eq 2 (nth 7 state))) 'noindent) | ||
| 907 | ((null containing-sexp) ; Line is at top level. | 909 | ((null containing-sexp) ; Line is at top level. |
| 908 | (skip-chars-forward " \t\f") | 910 | (skip-chars-forward " \t\f") |
| 909 | (if (memq (following-char) | 911 | (if (memq (following-char) |