[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#66241: 30.0.50; [PATCH] Use auth-info-mode for non-hidden authinfo a
From: |
Stefan Kangas |
Subject: |
bug#66241: 30.0.50; [PATCH] Use auth-info-mode for non-hidden authinfo and netrc files |
Date: |
Sat, 30 Sep 2023 19:34:31 -0700 |
Augusto Stoffel <arstoffel@gmail.com> writes:
> See patch for the rationale.
Thanks. Could you explain why you think that this should this be the
default value, instead of merely a user customization?
>>From dc0abaff3dcaf9c7f48a8cd18dd045ae4323a030 Mon Sep 17 00:00:00 2001
> From: Augusto Stoffel <arstoffel@gmail.com>
> Date: Wed, 27 Sep 2023 18:35:32 +0200
> Subject: [PATCH] Use auth-info-mode for non-hidden authinfo and netrc files
>
> * files.el (auto-mode-alist): Match non-hidden authinfo and netrc
> files, since it is reasonable to store passwords in
> ~/.emacs.d/authinfo.gpg or a similarly named file.
> ---
> lisp/files.el | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lisp/files.el b/lisp/files.el
> index b67482a2f74..f2980de4810 100644
> --- a/lisp/files.el
> +++ b/lisp/files.el
> @@ -3038,7 +3038,7 @@ auto-mode-alist
> ("\\.docbook\\'" . sgml-mode)
> ("\\.com\\'" . dcl-mode)
> ("/config\\.\\(?:bat\\|log\\)\\'" . fundamental-mode)
> - ("/\\.\\(authinfo\\|netrc\\)\\'" . authinfo-mode)
> + ("/\\.?\\(authinfo\\|netrc\\)\\'" . authinfo-mode)
> ;; Windows candidates may be opened case sensitively on Unix
>
> ("\\.\\(?:[iI][nN][iI]\\|[lL][sS][tT]\\|[rR][eE][gG]\\|[sS][yY][sS]\\)\\'" .
> conf-mode)
> ("\\.la\\'" . conf-unix-mode)