]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Tweak sh-script-mode indentation further"
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 2 Sep 2021 06:41:30 +0000 (08:41 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 2 Sep 2021 06:41:30 +0000 (08:41 +0200)
This reverts commit 6392bc37ab3b7eb83465d9b2248d21173373ae73.

The changes led to errors throughout (bug#50320).

lisp/progmodes/sh-script.el
test/lisp/progmodes/sh-script-tests.el

index 7507579d16da53ee8c46c9bb994d3ed2f21ffed9..201d1fd1647a3ce10611b3fbe6bd79b1b8ace5a6 100644 (file)
@@ -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)))
index 82c2d5168ce4de7d8524cae696c6b77470b0086d..5bdce6260ae3883d447b36c4ff0c5afc1a3cbfc0 100644 (file)
     (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