branch: elpa/haskell-tng-mode commit 83458d602495f88ccab5a238df0650fe8456ddf8 Author: Tseen She <ts33n....@gmail.com> Commit: Tseen She <ts33n....@gmail.com>
reverting newline comment behaviour --- haskell-tng-smie.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/haskell-tng-smie.el b/haskell-tng-smie.el index 198760b..37377b4 100644 --- a/haskell-tng-smie.el +++ b/haskell-tng-smie.el @@ -34,7 +34,7 @@ (defun haskell-tng-newline (&optional alt) "A `newline-and-indent' with a better user experience for `haskell-tng-mode'. -Comments are continued if called with a prefix." +When in a comment and called with a prefix, the comment will be completed." (interactive "P") ;; TODO a dynamically bound variable might improve the quality of ;; 'empty-line-token predictions. Parens are special-cased. @@ -53,8 +53,8 @@ Comments are continued if called with a prefix." ;; ;; TODO in-comment indent should observe | haddock markers (if alt - (call-interactively #'comment-indent-new-line) - (call-interactively #'newline-and-indent)) + (call-interactively #'newline-and-indent) + (call-interactively #'comment-indent-new-line)) (when rem (save-excursion (insert rem)))))