unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: acorallo@gnu.org, Stefan Kangas <stefankangas@gmail.com>,
	74946@debbugs.gnu.org
Subject: bug#74946: [PATCH] * lisp/files.el (auto-mode-alist): Include gdbinit too
Date: Thu, 19 Dec 2024 23:29:00 +0200	[thread overview]
Message-ID: <19849.0718774096$1734643854@news.gmane.org> (raw)
In-Reply-To: <86o718ks3b.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 19 Dec 2024 10:14:00 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Stefan Kangas <stefankangas@gmail.com>
>> Date: Wed, 18 Dec 2024 20:00:37 -0500
>> Cc: Eli Zaretskii <eliz@gnu.org>, Andrea Corallo <acorallo@gnu.org>
>> 
>> > Please also include into Emacs 30 if possible.
>> 
>> If Eli and Andrea agrees, I think we could do it.
>
> It looks innocent enough, but at this point I'd like to limit changes
> on the release branch to only really urgent and important ones (or
> documentation).  We have lived with this outdated code for several
> years (GDB 11.1 was released in 2022), so this change doesn't look
> urgent to me.

Not really that urgent but to new users of Emacs it would be
beneficial if things would work out of the box. I thought at first Emacs
just didn't support the file.

> Btw, if we want to fix this entry, we should perhaps do a more
> thorough job.  For example, on my system I have files with the
> following base names:
>
>   .gdbinit.in
>   .gdbinit
>   _gdbinit (for MS-DOS)
>   gdb.ini (likewise)

Is this a gdbinit file? The extension looks off.

>   gdbinit
>   gdbinit.in
>   SOMETHING-gdbinit
>   .gdbinit.loader
>   gdbinit-history.exp (not a GDB init file)
>   gdbinit.5 (likewise)
>   gdbinit.c (likewise)
>   .gdbinit.py.in (likewise)
>
> Should we improve the regexp to DTRT for those additional files, but
> without false positives?

With Stefan correction all these without extension match. What are the
official extensions? gdbinit.in sounds like a normal extension for
gdbinit template in the source but the others such as gdb.ini look off.





  reply	other threads:[~2024-12-19 21:29 UTC|newest]

Thread overview: 6+ 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
2024-12-19  8:14   ` Eli Zaretskii
2024-12-19 21:29     ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-12-19 22:55     ` Stefan Kangas
2024-12-20  1:33       ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors

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='19849.0718774096$1734643854@news.gmane.org' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=74946@debbugs.gnu.org \
    --cc=acorallo@gnu.org \
    --cc=bjorn.bidar@thaodan.de \
    --cc=eliz@gnu.org \
    --cc=stefankangas@gmail.com \
    /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).