emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 9459c4c 1/2: Use `autoconf-mode' for Autoconf .m4 f


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 9459c4c 1/2: Use `autoconf-mode' for Autoconf .m4 files
Date: Sun, 25 Aug 2019 02:13:04 -0400 (EDT)

branch: master
commit 9459c4c17c3338298e88a0af4be1798674bdb6ef
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Use `autoconf-mode' for Autoconf .m4 files
    
    * lisp/files.el (auto-mode-alist): Use `autoconf-mode' (instead of
    `m4-mode') for acinclude.m4/aclocal.m4/acsite.m4 files (bug#37133).
---
 etc/NEWS      | 4 ++++
 lisp/files.el | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/etc/NEWS b/etc/NEWS
index cf18759..ec906aa 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -512,6 +512,10 @@ current and the previous or the next line, as before.
 * Changes in Specialized Modes and Packages in Emacs 27.1
 
 ---
+** 'autoconf-mode' is now used instead of 'm4-mode' for the
+acinclude.m4/aclocal.m4/acsite.m4 files.
+
+---
 ** On GNU/Linux, `M-x battery' will now list all batteries, no matter
 what they're named, and the `battery-linux-sysfs-regexp' variable has
 been removed.
diff --git a/lisp/files.el b/lisp/files.el
index f766350..2a84c2c 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2719,6 +2719,8 @@ since only a single case-insensitive search through the 
alist is made."
      ("\\.bib\\'" . bibtex-mode)
      ("\\.bst\\'" . bibtex-style-mode)
      ("\\.sql\\'" . sql-mode)
+     ;; These .m4 files are Autoconf files.
+     ("\\(acinclude\\|aclocal\\|acsite\\)\\.m4\\'" . autoconf-mode)
      ("\\.m[4c]\\'" . m4-mode)
      ("\\.mf\\'" . metafont-mode)
      ("\\.mp\\'" . metapost-mode)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]