From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: Re: [PATCH] [gdb] Add sh-mode entry in .dir-locals.el
Date: Tue, 1 Sep 2026 11:23:01 +0200 [thread overview]
Message-ID: <b8db8cac-3ed3-4f03-a186-1a2be8082908@suse.de> (raw)
In-Reply-To: <20260901091724.2877880-1-tdevries@suse.de>
On 9/1/26 11:17 AM, Tom de Vries wrote:
> Emacs supports .editorconfig starting version 30, but it's disabled by
> default.
>
> It's good to handle the case that .editorconfig is not used (older emacs, not
> explicitly enabled).
>
> Configure sh-mode by adding an entry in gdb/.dir-locals.el.
I forgot, the same change is needed in gdbsupport and gdbserver.
Thanks,
- Tom
> ---
> gdb/.dir-locals.el | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/gdb/.dir-locals.el b/gdb/.dir-locals.el
> index 8dd894c70d5..d5aceea498b 100644
> --- a/gdb/.dir-locals.el
> +++ b/gdb/.dir-locals.el
> @@ -41,4 +41,8 @@
> (eval . (c-set-offset 'brace-list-open 0))
> (eval . (c-set-offset 'innamespace 0))
> ))
> + (sh-mode . ((indent-tabs-mode . t)
> + (tab-width . 8)
> + (sh-basic-offset . 4) ;; Supported from v22.1 onwards.
> + (sh-indentation . 4))) ;; For older versions.
> )
>
> base-commit: 2e9a026c2cd76b09f863ba877a1c492ebda76ee0
next prev parent reply other threads:[~2026-09-01 9:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-01 9:17 Tom de Vries
2026-09-01 9:23 ` Tom de Vries [this message]
2026-09-01 15:36 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b8db8cac-3ed3-4f03-a186-1a2be8082908@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox