emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#19506: closed (25.0.50; [PATCH] Use conf-mode for


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#19506: closed (25.0.50; [PATCH] Use conf-mode for VC config files)
Date: Sun, 19 Apr 2015 01:38:02 +0000

Your message dated Sat, 18 Apr 2015 21:37:14 -0400
with message-id <address@hidden>
and subject line Re: bug#19506: 25.0.50; [PATCH] Use conf-mode for VC config 
files
has caused the debbugs.gnu.org bug report #19506,
regarding 25.0.50; [PATCH] Use conf-mode for VC config files
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
19506: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19506
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 25.0.50; [PATCH] Use conf-mode for VC config files Date: Sun, 04 Jan 2015 19:22:46 +0100
 Hi,

any concerns to add this tiny change?

* files.el (auto-mode-alist): Use `conf-mode' for Bzr, Git, and Hg
  config files.
---
 lisp/ChangeLog |    7 +++++++
 lisp/files.el  |    3 +++
 2 files changed, 10 insertions(+)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f62dc07..8f27b42 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
+2015-01-04  Eduard Wiebe  <address@hidden>
+
+       Use conf-mode for VC config files.
+
+       * files.el (auto-mode-alist): Use `conf-mode' for Bzr, Git, and Hg
+       config files.
+
 2015-01-04  Paul Eggert  <address@hidden>
 
        Less 'make' chatter for lisp dir
diff --git a/lisp/files.el b/lisp/files.el
index 80b538c..44ef910 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2522,6 +2522,9 @@ 
ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'" . archive-mode)
      ("/config\\.\\(?:bat\\|log\\)\\'" . fundamental-mode)
      ;; Windows candidates may be opened case sensitively on Unix
      
("\\.\\(?:[iI][nN][iI]\\|[lL][sS][tT]\\|[rR][eE][gG]\\|[sS][yY][sS]\\)\\'" . 
conf-mode)
+     ("\\(?:\\.bzrignore\\|\\.bazaar/ignore\\)\\'" . conf-mode)
+     ("\\(?:\\.hgignore\\|\\.?hgrc\\)\\'" . conf-mode)
+     
("\\(?:\\.git\\(ignore\\|attributes\\)\\|\\.?gitconfig\\|\\.git/info/\\(?:exclude\\|attributes\\)\\)\\'"
 . conf-mode)
      ("\\.\\(?:desktop\\|la\\)\\'" . conf-unix-mode)
      ("\\.ppd\\'" . conf-ppd-mode)
      ("java.+\\.conf\\'" . conf-javaprop-mode)

--
Eduard Wiebe



--- End Message ---
--- Begin Message --- Subject: Re: bug#19506: 25.0.50; [PATCH] Use conf-mode for VC config files Date: Sat, 18 Apr 2015 21:37:14 -0400 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
Version: 25.1

Eduard Wiebe wrote:

> --- a/lisp/files.el
> +++ b/lisp/files.el
> @@ -2522,6 +2522,9 @@ 
> ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'" . archive-mode)
>       ("/config\\.\\(?:bat\\|log\\)\\'" . fundamental-mode)
>       ;; Windows candidates may be opened case sensitively on Unix
>       
> ("\\.\\(?:[iI][nN][iI]\\|[lL][sS][tT]\\|[rR][eE][gG]\\|[sS][yY][sS]\\)\\'" . 
> conf-mode)
> +     ("\\(?:\\.bzrignore\\|\\.bazaar/ignore\\)\\'" . conf-mode)
> +     ("\\(?:\\.hgignore\\|\\.?hgrc\\)\\'" . conf-mode)
> +     
> ("\\(?:\\.git\\(ignore\\|attributes\\)\\|\\.?gitconfig\\|\\.git/info/\\(?:exclude\\|attributes\\)\\)\\'"
>  . conf-mode)
>       ("\\.\\(?:desktop\\|la\\)\\'" . conf-unix-mode)
>       ("\\.ppd\\'" . conf-ppd-mode)
>       ("java.+\\.conf\\'" . conf-javaprop-mode)


As I see it, conf-mode is useful for things that contain
"var=value" statements.

bzrignore, bazaar/ignore, .hgignore, .gitignore, .git/info/exclude
  do not

.gitconfig and .hgrc do.
.gitattributes sort of does, maybe.
.git/info/attributes seems like overkill.


So I added just .gitconfig and .hgrc.


--- End Message ---

reply via email to

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