From: Noam Postavsky Date: Sat, 2 Jul 2016 23:47:32 +0000 (-0400) Subject: Fix escaping in sh-indent-after-continuation docstr X-Git-Tag: emacs-25.1-rc1~46 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=113d1e2;p=emacs.git Fix escaping in sh-indent-after-continuation docstr * lisp/progmodes/sh-script.el (sh-indent-after-continuation): Properly escape backslashes in docstring (Bug#23046). --- diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 4f160e1ad6d..f089c81fe56 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -2000,16 +2000,16 @@ Does not preserve point." Continued lines can either be indented as \"one long wrapped line\" without paying attention to the actual syntactic structure, as in: - for f \ - in a; do \ - toto; \ + for f \\ + in a; do \\ + toto; \\ done or as lines that just don't have implicit semi-colons between them, as in: - for f \ - in a; do \ - toto; \ + for f \\ + in a; do \\ + toto; \\ done With `always' you get the former behavior whereas with nil you get the latter.