From: Sven Joachim Date: Thu, 23 Jul 2026 08:53:17 +0000 (+0200) Subject: emacs: Fix warning when opening shell scripts X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d336ef5e768d682b13829ca7bd698423d3287127;p=thirdparty%2Fsystemd.git emacs: Fix warning when opening shell scripts 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. --- diff --git a/.dir-locals.el b/.dir-locals.el index 47da56f9390..d967b1f161f 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -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)