From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74946: [PATCH] * lisp/files.el (auto-mode-alist): Include gdbinit too Date: Fri, 20 Dec 2024 09:05:41 +0200 Message-ID: <86o716kf5m.fsf@gnu.org> References: <87frml6pkg.fsf@thaodan.de> <86o718ks3b.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14317"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bjorn.bidar@thaodan.de, acorallo@gnu.org, 74946@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 20 08:06:22 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tOX5a-0003Xh-2P for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Dec 2024 08:06:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOX5U-00049R-6v; Fri, 20 Dec 2024 02:06:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOX5N-00045y-5o for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2024 02:06:10 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tOX5G-0003Zr-Po for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2024 02:06:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=srMbWGoeRCe5m1nqS9y2NUlMhR9SEvmnSyAYx8ej3jw=; b=fC1sLCYnsxbAW8Jr2s8r1SmJHB8e0tDziCzYonhTlSlhsNH9mCezuOEex1RpcoifEDNa4RR9A7shY0nnIJ4u1CCbKJVYAdgLzo2ZtD2HSv+9tCOZuFEyWdIt80uWxMyetKiyUZrbwVvYmOR0CPII4OA5tt0fuw0ZjQ2vKFBcXDwo+XB/01XDBc6+B/35kHD/23vZhstiruUTHBcN+Qjn+tgWI7+e1hUbZrSuskd3QpS1S8lSR9ke4WOTsSVAc88DJ9RinpTHXwLor8OlPt2Z1HezoSUimsi6bChnRhpe8HmUxt+tIv7X1SPBs89Lrdbhv5YmRdYIFRJIoymVdkCtsg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tOX5G-0007eg-IS for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2024 02:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Dec 2024 07:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74946-submit@debbugs.gnu.org id=B74946.173467835429410 (code B ref 74946); Fri, 20 Dec 2024 07:06:02 +0000 Original-Received: (at 74946) by debbugs.gnu.org; 20 Dec 2024 07:05:54 +0000 Original-Received: from localhost ([127.0.0.1]:41409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOX57-0007eH-KI for submit@debbugs.gnu.org; Fri, 20 Dec 2024 02:05:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOX55-0007e4-H3 for 74946@debbugs.gnu.org; Fri, 20 Dec 2024 02:05:52 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOX50-0003Vy-0s; Fri, 20 Dec 2024 02:05:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=srMbWGoeRCe5m1nqS9y2NUlMhR9SEvmnSyAYx8ej3jw=; b=I276gZjdcJ3P W4opP/0eegREHtfGIEMrMaIrz4rmfva4N4aOSXibiBIbqtHPM1G146H1xjv6KNj3Q4ElhSazg3i2p cFoTXVBds32Rt9PGgvUZf5a7qyzkAilWAnomKxt+/WlVw+fE8PICevigo18GyaeJZDDNwhND+wwnK 8J9Hvu0dzJbZOtInkREnZyWWVse45oloj2OyO6/3u2L0DwILjWoZE2npo1tgf0rZ8SCrkKJ1r9Tgi qN/Bbt132Uuil2Xw7VbzdGhjpk00owbyrl2+iP+oQUhy7qa1yUEZdzBkOYzYcpN2pkzW6voxpo9Jx lExRyhHoE55ZzvHKe8YYfg==; In-Reply-To: (message from Stefan Kangas on Thu, 19 Dec 2024 17:55:22 -0500) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297427 Archived-At: > From: Stefan Kangas > Date: Thu, 19 Dec 2024 17:55:22 -0500 > Cc: bjorn.bidar@thaodan.de, 74946@debbugs.gnu.org, acorallo@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).