unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: "Björn Bidar" <bjorn.bidar@thaodan.de>, 74946@debbugs.gnu.org
Cc: Eli Zaretskii <eliz@gnu.org>, Andrea Corallo <acorallo@gnu.org>
Subject: bug#74946: [PATCH] * lisp/files.el (auto-mode-alist): Include gdbinit too
Date: Wed, 18 Dec 2024 20:00:37 -0500	[thread overview]
Message-ID: <CADwFkmkWiHYiDxbV5mhcrtQDieWu=Y3FGFShUDX99ahhG2-udQ@mail.gmail.com> (raw)
In-Reply-To: <87frml6pkg.fsf@thaodan.de>

Björn Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@gnu.org> writes:

> From 1ba2ce9320513efa0fb4b2d6a5022bb9d635af68 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= <bjorn.bidar@thaodan.de>
> Date: Wed, 18 Dec 2024 16:07:34 +0200
> Subject: [PATCH] * lisp/files.el (auto-mode-alist): Include gdbinit too
>
> Since gdb 11.1 .gdbinit can be also called gdbinit saved inside
> $XDG_CONFIG_HOME or $HOME/Library/Preferences/gdb on Apple Hosts.
>
> https://lists.gnu.org/archive/html/info-gnu/2021-09/msg00007.html
> ---
>  lisp/files.el | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/lisp/files.el b/lisp/files.el
> index 9f13804540b..6fe037f30e7 100644
> --- a/lisp/files.el
> +++ b/lisp/files.el
> @@ -3001,11 +3001,12 @@ auto-mode-alist
>       ("\\.css\\'" . css-mode)
>       ("\\.mixal\\'" . mixal-mode)
>       ("\\.gcov\\'" . compilation-mode)
> -     ;; Besides .gdbinit, gdb documents other names to be usable for init
> +     ;; gdbinit can be gdbinit or .gdbinit the exact prefix does not matter.
> +     ;; Besides gdbinit, gdb documents other names to be usable for init

I'd leave the comment as is.

>       ;; files, cross-debuggers can use something like
>       ;; .PROCESSORNAME-gdbinit so that the host and target gdbinit files
>       ;; don't interfere with each other.
> -     ("/\\.[a-z0-9-]*gdbinit" . gdb-script-mode)
> +     ("/[.a-z0-9-]*gdbinit" . gdb-script-mode)

Thanks, but shouldn't that be

-     ("/\\.[a-z0-9-]*gdbinit" . gdb-script-mode)
+     ("/\\.?[a-z0-9-]*gdbinit" . gdb-script-mode)

?

> Please also include into Emacs 30 if possible.

If Eli and Andrea agrees, I think we could do it.





  reply	other threads:[~2024-12-19  1:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-18 14:19 bug#74946: [PATCH] * lisp/files.el (auto-mode-alist): Include gdbinit too Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-19  1:00 ` Stefan Kangas [this message]
2024-12-19  8:14   ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkmkWiHYiDxbV5mhcrtQDieWu=Y3FGFShUDX99ahhG2-udQ@mail.gmail.com' \
    --to=stefankangas@gmail.com \
    --cc=74946@debbugs.gnu.org \
    --cc=acorallo@gnu.org \
    --cc=bjorn.bidar@thaodan.de \
    --cc=eliz@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).