diff options
| author | Joakim Verona | 2012-12-27 17:42:06 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-12-27 17:42:06 +0100 |
| commit | 22973d8789666f30fed6a5e5643c66ca242cae87 (patch) | |
| tree | e77a66506486b6e0968ff02c0e4d9315fc6da253 | |
| parent | 15411109575a2c1f29238ce050d15a3fd1e21446 (diff) | |
| parent | fd146719cb0b98b278ad428006383d865f3696cf (diff) | |
| download | emacs-22973d8789666f30fed6a5e5643c66ca242cae87.tar.gz emacs-22973d8789666f30fed6a5e5643c66ca242cae87.zip | |
auto upstream
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f058c8632b7..f5dd9faa3f3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,8 +1,13 @@ | |||
| 1 | 2012-12-27 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/cperl-mode.el (cperl-calculate-indent): Do not stagger | ||
| 4 | continuations, see <http://stackoverflow.com/questions/3582436>. | ||
| 5 | |||
| 1 | 2012-12-27 Dmitry Gutov <dgutov@yandex.ru> | 6 | 2012-12-27 Dmitry Gutov <dgutov@yandex.ru> |
| 2 | 7 | ||
| 3 | * progmodes/ruby-mode.el (ruby-indent-beg-re): Only allow "class", | 8 | * progmodes/ruby-mode.el (ruby-indent-beg-re): Only allow "class", |
| 4 | "module" and "def" to have indentation before them. Regression | 9 | "module" and "def" to have indentation before them. Regression |
| 5 | from 109911 (see the new test). | 10 | from Bug#109911 (see the new test). |
| 6 | 11 | ||
| 7 | * progmodes/ruby-mode.el: Bump the version to 1.2 (Bug#13200). | 12 | * progmodes/ruby-mode.el: Bump the version to 1.2 (Bug#13200). |
| 8 | 13 | ||
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 0a952cf3870..437235a8a6f 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -3120,8 +3120,10 @@ and closing parentheses and brackets." | |||
| 3120 | ((eq 'continuation (elt i 0)) | 3120 | ((eq 'continuation (elt i 0)) |
| 3121 | ;; [continuation statement-start char-after is-block is-brace] | 3121 | ;; [continuation statement-start char-after is-block is-brace] |
| 3122 | (goto-char (elt i 1)) ; statement-start | 3122 | (goto-char (elt i 1)) ; statement-start |
| 3123 | (+ (if (memq (elt i 2) (append "}])" nil)) ; char-after | 3123 | (+ (if (or (memq (elt i 2) (append "}])" nil)) ; char-after |
| 3124 | 0 ; Closing parenth | 3124 | (eq 'continuation ; do not stagger continuations |
| 3125 | (elt (cperl-sniff-for-indent parse-data) 0))) | ||
| 3126 | 0 ; Closing parenth or continuation of a continuation | ||
| 3125 | cperl-continued-statement-offset) | 3127 | cperl-continued-statement-offset) |
| 3126 | (if (or (elt i 3) ; is-block | 3128 | (if (or (elt i 3) ; is-block |
| 3127 | (not (elt i 4)) ; is-brace | 3129 | (not (elt i 4)) ; is-brace |