]> git.eshelyaron.com Git - emacs.git/commit
Match more gdbinit files in auto-mode-alist
authorStefan Kangas <stefankangas@gmail.com>
Sun, 22 Dec 2024 01:57:45 +0000 (02:57 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:20:12 +0000 (16:20 +0100)
commitf6d7f8b9f6e8891d3297571b9e77a0b1a50f0d40
tree8869b308d1e4a4ab3a2e18517e9e3aa1db67d3e6
parentbce2187351208f6e5054dd581aba121325717587
Match more gdbinit files in auto-mode-alist

* lisp/files.el (auto-mode-alist): Match more gdbinit files,
including XDG, and MS-Windows.  Avoid false positives.
(set-auto-mode--find-matching-alist-entry): Break out function...
(set-auto-mode--apply-alist): ...from here.  (Bug#74946)
* test/lisp/files-tests.el (files-tests--check-mode): New function.
(files-tests-auto-mode-alist): New test.

(cherry picked from commit 86a8b24bdea52a7aab45abcc51db2dd47308c11f)
lisp/files.el
test/lisp/files-tests.el