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

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

[nongnu] elpa/sweeprolog 0f1119fb75 118/166: FIXED: indentation after wi


From: ELPA Syncer
Subject: [nongnu] elpa/sweeprolog 0f1119fb75 118/166: FIXED: indentation after with inline comments
Date: Fri, 30 Sep 2022 04:59:30 -0400 (EDT)

branch: elpa/sweeprolog
commit 0f1119fb75adae53e552bb0c20d3067ecb909d40
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>

    FIXED: indentation after with inline comments
---
 sweep.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sweep.el b/sweep.el
index 7d0bfd0a6d..faaac58fda 100644
--- a/sweep.el
+++ b/sweep.el
@@ -1219,12 +1219,14 @@ Interactively, a prefix arg means to prompt for BUFFER."
 (defun sweep-indent-line-ends-with-comment-or-string-p ()
   (save-excursion
     (end-of-line)
-    (nth 8 (syntax-ppss))))
+    (when-let ((beg (nth 8 (syntax-ppss))))
+      (<= beg (line-beginning-position)))))
 
 (defun sweep-indent-line-ends-with-fullstop-p ()
   (save-excursion
     (end-of-line)
-    (= ?. (preceding-char))))
+    (unless (nth 8 (syntax-ppss))
+      (= ?. (preceding-char)))))
 
 (defun sweep-syntax-propertize (start end)
   (goto-char start)



reply via email to

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