From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74946: [PATCH] * lisp/files.el (auto-mode-alist): Include gdbinit too Date: Thu, 19 Dec 2024 23:29:00 +0200 Message-ID: <19849.0718774096$1734643854@news.gmane.org> References: <87frml6pkg.fsf@thaodan.de> <86o718ks3b.fsf@gnu.org> Reply-To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30009"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: acorallo@gnu.org, Stefan Kangas , 74946@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 19 22:30:48 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 1tOO6Z-0007eh-KE for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Dec 2024 22:30:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOO65-0003bJ-8M; Thu, 19 Dec 2024 16:30:18 -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 1tOO5s-0003Wi-Td for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2024 16:30:06 -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 1tOO5q-0001Eq-F3 for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2024 16:30:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=TXYOh5MSv9ALQFMPp5newvijdn61KhN8ZSXX7/4lqXI=; b=T/lPrbnl27Vfu5xZAuiIeHK7uFeyzOJBywAzMApjhk5UDUzlfa94gGeaY+t/O3qTvPR1G2nzFQLb/3fBdgKl1Z0CPO+//I0ISE+h3ApBsRhIOp2MNfmY32pdQV9lJ7vxans3Uy/qhA+gF2YF4NNfwSXBmJuHpc03sBDCigXMYKXrB55+QK9QLL+dAYzruA54OfRe+zpW9gxrDOPTP9JJ+x1aiZIZbxew/ugVhBHBc8UTuNZVMB5tUlUihU/ulZBCzAyz7GHefSwt+XVg/FhGs/bfpyPM4HRphEh/w/eJnyo56LcBsxRt8BaCvid68ZvqNJIcNlI2E1e9gVNIEW4tnw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tOO5q-0005oT-8p for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2024 16:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Dec 2024 21:30: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.173464375022239 (code B ref 74946); Thu, 19 Dec 2024 21:30:02 +0000 Original-Received: (at 74946) by debbugs.gnu.org; 19 Dec 2024 21:29:10 +0000 Original-Received: from localhost ([127.0.0.1]:40336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOO4z-0005mc-NP for submit@debbugs.gnu.org; Thu, 19 Dec 2024 16:29:10 -0500 Original-Received: from thaodan.de ([185.216.177.71]:56632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOO4x-0005mN-2w for 74946@debbugs.gnu.org; Thu, 19 Dec 2024 16:29:08 -0500 Original-Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id 0AAA7D00099; Thu, 19 Dec 2024 23:29:01 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1734643741; bh=/WmWysFh2TPzpimjaEoPo+ReiHC5zTH5qrsXocEru74=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=C3y5tA8CKqqJ0dzPTfhmJr9ahh7QJgbGTZ3YoHDq5hYeBLbJpI+MNucNxKIZvJSLW r9vgK1IDnZn49JAERyazh0RbqR5yK8Aog4cPg16snhSsuAl0NmVegvrEm/3hqjqu7D tNZrWlM2i5EZwNPLANBlfcaeUL5sLhsDiHpqY8jqlFRGb4VsnOdoEGPnZMRAfd+5u2 sKJ+hv92QqlDPgsYeVbA8RtO0CnWpLrXXQXfoJWmWjmKm2TpM5MHBQYKAOuPPgd6l7 iJSLRD74tj3UajaE+qtOTaIZsKalfPIp7IwzUYx6pvUDiOuIQxwfsn517qOxCVPj6a z5s6nGIU3xOQJ6CkoTrj/VypnNatwGf46ig9EenSfcIARtBB/X8lcHVbQ0Sa9V0iXD MVEkZgo6muQk/bNPK57AsoR+nyhts45vMZvWQEfWvy0ttnWiMGVL4c0EDjwVvL6G11 bLs0akHA9uGauFg/Q9slGZFc/P29JRarVxVANXHxct1NBtL4rigJKJLfOHFMuD5tzu rAI4ZMZv3sXagQjPDjT5kdiM/LuZINiXjLSDQXsnFBSHTrAdWPOMN/TQVYoOWzYE0Z V+L6Kzuc1/E5pucu4u4T59InQbjTUmE4iHl+zDi7g+XMeWdzvAhTEXCdW5ApfW743A Bqd/KMaJCAexB1souC1gIWdQ= In-Reply-To: <86o718ks3b.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 19 Dec 2024 10:14:00 +0200") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH 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:297409 Archived-At: Eli Zaretskii writes: >> From: Stefan Kangas >> Date: Wed, 18 Dec 2024 20:00:37 -0500 >> Cc: Eli Zaretskii , Andrea Corallo >> >> > 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.