From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#74946: [PATCH] * lisp/files.el (auto-mode-alist): Include gdbinit too Date: Wed, 18 Dec 2024 20:00:37 -0500 Message-ID: References: <87frml6pkg.fsf@thaodan.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34957"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Andrea Corallo To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar , 74946@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 19 02:02:24 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 1tO4vn-0008wT-1k for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Dec 2024 02:02:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tO4vY-0000p5-7U; Wed, 18 Dec 2024 20:02:08 -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 1tO4vS-0000oh-Vi for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2024 20:02:03 -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 1tO4vS-0006NM-NF for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2024 20:02:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=T5Ns8I5s9NOKI4BaEgUkNgD/u7p6HUACABVqUCLyx9Q=; b=oGSlbUfmmYDHh9bRG0xuPZdPL5fLecLpj3Kx4B03kD8bqO6EnePcCeNiTbNY2XQPiQdGSUNiAbf/sovGKDyfuapIQ2K42Rh5f45ISU00KSqeXaU72pE4TfJb/aVttQbnULoWKf0CAkg+7SbIt5dOEmL+bW0fH7BdZ3+iS9Jph2B2WXPzkxtzFE4xy/4tlSdaKpRFAT0HlBgUgHLvgemvKpVy1qLgRNx1aSj03vq+5lpgG/e+tXtmhrM/DtRC6tGBle6gIu8fO/tEH1ge4QSguF1fy41+l1sLihyVwez760eKqZzosC8DXXwrvUaAuoem33NDOVyacnV8VqilXykkLw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tO4vS-0004Dg-H4 for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2024 20:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Dec 2024 01:02: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.173457010216172 (code B ref 74946); Thu, 19 Dec 2024 01:02:02 +0000 Original-Received: (at 74946) by debbugs.gnu.org; 19 Dec 2024 01:01:42 +0000 Original-Received: from localhost ([127.0.0.1]:36609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tO4v7-0004Cm-QO for submit@debbugs.gnu.org; Wed, 18 Dec 2024 20:01:42 -0500 Original-Received: from mail-ed1-f47.google.com ([209.85.208.47]:59486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tO4v5-0004Cc-7N for 74946@debbugs.gnu.org; Wed, 18 Dec 2024 20:01:40 -0500 Original-Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5d3bbb0f09dso320892a12.2 for <74946@debbugs.gnu.org>; Wed, 18 Dec 2024 17:01:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734570038; x=1735174838; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=T5Ns8I5s9NOKI4BaEgUkNgD/u7p6HUACABVqUCLyx9Q=; b=f9RosLjSGZ498SKnXxeMD3G1F9V6wQTYPk53/647ZxjF9qkgswV91KREMt2YZiZtOa COnfHSbJxGup9zRkWbwFjgbpCXUosdG7m+3yxlk/+PsVa+tP6EIVWP5Bsm3uBqt5iioy FpvBi5HgcT4C9FhayCPH47n6K8UdzqLm3K8zySNbv4RdWJNOhx6nyZSgMQ8gnX0XBJZt yGpYV91GM4KaxdrQElba/gfukU0Q5fT8TiTl/Ym+wwHtVOi2gMA6qpmhSpY/mdfvbhxz ntOf3lcVEAoGSY0i9eCbiABBgl6a81o9OBY3RjxWmV1cudpspHimCxlp3RZGvu6WYGSv IUJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734570038; x=1735174838; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=T5Ns8I5s9NOKI4BaEgUkNgD/u7p6HUACABVqUCLyx9Q=; b=QVUccO03z6cqOiWPQMLBw5penGACgKY5t3EiEsK8F5tVPPFsg2BzbYr6TL6wKuR+bs RfhLrQlt6awSngnHqPmC8DhMC/B8FNyBsoAtb+ciJ9uexCMMUzg1T9uvU/A51DFue6cI dCXFzOmHdody29vArwcVjfE+n3+ET4aB4T/Nrk20BloYYolv5DPmTTyt4IVVAq3WvnRy LJEygoKguj+/o1xYI28Q2sar1sI4CP0iFBfceCW1BY4EGRV2HrvZH8+IS/VH5eE/xJHc IRAqFTzGkOkCAW8r1CwfnTfP/RU3+Bl+wiuVLNtZ653TMAo32mudwZCzOJY50W3+T4MI lRbA== X-Forwarded-Encrypted: i=1; AJvYcCU6Fitr4KF4E0WbObh3bVOeVvLcurQrKcSqwHIpZU8I8k48Ef5+nMRo70GZfqh1njaB0fWJvg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwZpMLi6GukGQKfq9H3Vux9WXECuWNKv2TumfHhKbGnFzgAK+80 t1uvAxJLFINr70iOoAXj/ESgfmtW9XKd7VNBe5DPxvbwGhP0KgzngZphonDOSxjCinXCzovJxHH 1sjvQEP3YipAqpss++AH0J6ujPYg= X-Gm-Gg: ASbGncv9P1bsHn9Jm+kMU/dRozElPUTe7SGo6cHw29cC6r2/GNsSHXCufMXCxlkEcjw UABp5BwQogMliYU1t+sYfQbXwfyEEaLPyd+eTyw== X-Google-Smtp-Source: AGHT+IGgF112YrkXVwkgWKWMWhzQYcTaMxaB0VPJqpHfkYf8EQBBYwLirIg4itoPTX6q2VorbcyVPtS4LHoNu5/TvKg= X-Received: by 2002:a05:6402:239c:b0:5d8:f8:e6f5 with SMTP id 4fb4d7f45d1cf-5d800f8e773mr1225401a12.0.1734570038028; Wed, 18 Dec 2024 17:00:38 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 18 Dec 2024 20:00:37 -0500 In-Reply-To: <87frml6pkg.fsf@thaodan.de> 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:297356 Archived-At: Bj=C3=B6rn Bidar via "Bug reports for GNU Emacs, the Swiss army knife of te= xt editors" writes: > From 1ba2ce9320513efa0fb4b2d6a5022bb9d635af68 Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?Bj=3DC3=3DB6rn=3D20Bidar?=3D > 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 ini= t > + ;; gdbinit can be gdbinit or .gdbinit the exact prefix does not mat= ter. > + ;; 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.