emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/haskell-tng-mode 83458d6 253/385: reverting newline commen


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-tng-mode 83458d6 253/385: reverting newline comment behaviour
Date: Tue, 5 Oct 2021 23:59:41 -0400 (EDT)

branch: elpa/haskell-tng-mode
commit 83458d602495f88ccab5a238df0650fe8456ddf8
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@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)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]