GNU bug report logs - #74946
[PATCH] * lisp/files.el (auto-mode-alist): Include gdbinit too

Previous Next

Package: emacs;

Reported by: Björn Bidar <bjorn.bidar <at> thaodan.de>

Date: Wed, 18 Dec 2024 14:23:02 UTC

Severity: normal

Tags: patch

Fixed in version 31.1

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: bjorn.bidar <at> thaodan.de, acorallo <at> gnu.org, 74946 <at> debbugs.gnu.org
Subject: bug#74946: [PATCH] * lisp/files.el (auto-mode-alist): Include gdbinit too
Date: Fri, 20 Dec 2024 09:05:41 +0200
> From: Stefan Kangas <stefankangas <at> gmail.com>
> Date: Thu, 19 Dec 2024 17:55:22 -0500
> Cc: bjorn.bidar <at> thaodan.de, 74946 <at> debbugs.gnu.org, acorallo <at> gnu.org
> 
> >   .gdbinit.in
> >   .gdbinit
> >   _gdbinit (for MS-DOS)
> >   gdb.ini (likewise)
> >   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?
> 
> Maybe something like the below patch?

Maybe.  Try it against any similar name you have on your system.  I
used "locate -b gdbinit" to find matching files on mine.

> BTW, should the .gdbinit.py.in file be in python-mode perhaps?

Yes, it should be.

> And what about gdbinit.5?

It's a roff file (source of a man page).




This bug report was last modified 244 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.