emacs-diffs
[Top][All Lists]
Advanced

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

master f143260 1/2: Revert "Tweak sh-script-mode indentation further"


From: Lars Ingebrigtsen
Subject: master f143260 1/2: Revert "Tweak sh-script-mode indentation further"
Date: Thu, 2 Sep 2021 02:45:14 -0400 (EDT)

branch: master
commit f143260d04614ab45fe3fe505f1f2b7af2326294
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Revert "Tweak sh-script-mode indentation further"
    
    This reverts commit 6392bc37ab3b7eb83465d9b2248d21173373ae73.
    
    The changes led to errors throughout (bug#50320).
---
 lisp/progmodes/sh-script.el            |  2 +-
 test/lisp/progmodes/sh-script-tests.el | 13 +------------
 2 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 7507579..201d1fd 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -1775,7 +1775,7 @@ Does not preserve point."
                      (goto-char p)
                      nil))))
         (while
-            (progn (skip-syntax-backward ".w_'()")
+            (progn (skip-syntax-backward ".w_'")
                    (or (not (zerop (skip-syntax-backward "\\")))
                        (when (eq ?\\ (char-before (1- (point))))
                          (let ((p (point)))
diff --git a/test/lisp/progmodes/sh-script-tests.el 
b/test/lisp/progmodes/sh-script-tests.el
index 82c2d51..5bdce62 100644
--- a/test/lisp/progmodes/sh-script-tests.el
+++ b/test/lisp/progmodes/sh-script-tests.el
@@ -35,17 +35,6 @@
     (should (equal
              (buffer-substring-no-properties (point-min) (point-max))
              "relative-path/to/configure --prefix=$prefix\\
-                          --with-x")))
-  (with-temp-buffer
-    (insert "${path_to_root}/configure --prefix=$prefix\\
-             --with-x")
-    (shell-script-mode)
-    (goto-char (point-min))
-    (forward-line 1)
-    (indent-for-tab-command)
-    (should (equal
-             (buffer-substring-no-properties (point-min) (point-max))
-             "${path_to_root}/configure --prefix=$prefix\\
-                         --with-x"))))
+                          --with-x"))))
 
 ;;; sh-script-tests.el ends here



reply via email to

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