]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
emacs: Fix warning when opening shell scripts
authorSven Joachim <svenjoac@gmx.de>
Thu, 23 Jul 2026 08:53:17 +0000 (10:53 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 23 Jul 2026 10:08:50 +0000 (12:08 +0200)
Opening a shell script, Emacs notified me in the echo area:

sh-indentation is obsolete (since 26.1); use ‘sh-basic-offset’ instead

Commit 0c40aef7ef14 ("emacs: drop obsolete emacs property") got it backwards,
keeping sh-indentation rather than sh-basic-offset.  The latter is an obsolete
alias for the former.

.dir-locals.el

index 47da56f939021b74aa1c8f0eb78bc8fec6b878d1..d967b1f161f413b91933d14c6a1d0820b40efefe 100644 (file)
@@ -20,7 +20,7 @@
  (nxml-mode . ((nxml-child-indent . 2)
                (fill-column . 109)))
  (meson-mode . ((meson-indent-basic . 8)))
- (sh-mode . ((sh-indentation . 4)))
+ (sh-mode . ((sh-basic-offset . 4)))
  (awk-mode . ((c-basic-offset . 8)))
  (python-mode . ((indent-tabs-mode . nil)
                  (tab-width . 4)