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

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

[elpa] master c993f01 3/5: Don't shrink spaces on lines that contain spa


From: Clément Pit--Claudel
Subject: [elpa] master c993f01 3/5: Don't shrink spaces on lines that contain spaces
Date: Wed, 11 Nov 2020 00:15:34 -0500 (EST)

branch: master
commit c993f01d83de3479383de77a152a6d7dc326bd34
Author: Clément Pit-Claudel <clement.pitclaudel@live.com>
Commit: Clément Pit-Claudel <clement.pitclaudel@live.com>

    Don't shrink spaces on lines that contain spaces
    
    This makes the indentation point on an empty line line up with previous 
lines,
    which is convenient when inputting a new line.
---
 compact-docstrings.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compact-docstrings.el b/compact-docstrings.el
index a432c41..708841c 100644
--- a/compact-docstrings.el
+++ b/compact-docstrings.el
@@ -50,7 +50,7 @@
 (defun compact-docstrings--matcher (bound)
   "Find blank line in docstring, looking in point .. BOUND."
   (let ((found nil))
-    (while (and (not found) (re-search-forward "^\\s-*\n" bound t))
+    (while (and (not found) (re-search-forward "^\n" bound t))
       (let ((syntax (syntax-ppss)))
         (when (and (or (nth 3 syntax)  ;; In string
                        (nth 4 syntax)) ;; In comment



reply via email to

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