diff options
author | Fredrik Gustafsson <[email protected]> | 2013-08-19 09:21:41 +0200 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-08-19 09:21:41 +0200 |
commit | 38f7c7abff39219d94c23d5a8a74bd9a7bd10107 (patch) | |
tree | 2476fb70c9ccb919c81089db9b341e568851257b /lib/tools/emacs/erlang.el | |
parent | 5d9a587a8fcc164e02f043959338edec2ff69381 (diff) | |
parent | 8bfff9e0f80868ad7edc08dfda6c51a2b00966e6 (diff) | |
download | otp-38f7c7abff39219d94c23d5a8a74bd9a7bd10107.tar.gz otp-38f7c7abff39219d94c23d5a8a74bd9a7bd10107.tar.bz2 otp-38f7c7abff39219d94c23d5a8a74bd9a7bd10107.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/tools/emacs/erlang.el')
-rw-r--r-- | lib/tools/emacs/erlang.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el index f3bc95e3e5..3ecda1d285 100644 --- a/lib/tools/emacs/erlang.el +++ b/lib/tools/emacs/erlang.el @@ -2813,6 +2813,9 @@ Return nil if inside string, t if in a comment." (- (+ previous erlang-argument-indent) 1)))) (t (nth 2 stack-top)))) + ((= (following-char) ?,) + ;; a comma at the start of the line: line up with opening parenthesis. + (nth 2 stack-top)) (t (goto-char (nth 1 stack-top)) (let ((base (cond ((looking-at "[({]\\s *\\($\\|%\\)") |