]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/auth-source.el (authinfo--keywords): Avoid obsolete font-lock face vars
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 25 Apr 2025 20:35:04 +0000 (16:35 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sat, 26 Apr 2025 17:30:09 +0000 (19:30 +0200)
(cherry picked from commit 48940a5d485649bfd6840ddaaf91c17fbe90dbc0)

lisp/auth-source.el

index e8b4d5d3b8c32ecd37ddb4c924d3d1ea07e0c2f7..3e5256a3f3a749b4f2169471a5c970bb7c0d3a80 100644 (file)
@@ -2395,21 +2395,21 @@ See `auth-source-search' for details on SPEC."
   :version "28.1")
 
 (defvar authinfo--keywords
-  '(("^#.*" . font-lock-comment-face)
+  '(("^#.*" (0 'font-lock-comment-face))
     ("^\\(machine\\)[ \t]+\\([^ \t\n]+\\)"
-     (1 font-lock-variable-name-face)
-     (2 font-lock-builtin-face))
+     (1 'font-lock-variable-name-face)
+     (2 'font-lock-builtin-face))
     ("\\(login\\)[ \t]+\\([^ \t\n]+\\)"
-     (1 font-lock-comment-delimiter-face)
-     (2 font-lock-keyword-face))
+     (1 'font-lock-comment-delimiter-face)
+     (2 'font-lock-keyword-face))
     ("\\(password\\)[ \t]+\\([^ \t\n]+\\)"
-     (1 font-lock-comment-delimiter-face)
-     (2 font-lock-doc-face))
+     (1 'font-lock-comment-delimiter-face)
+     (2 'font-lock-doc-face))
     ("\\(port\\)[ \t]+\\([^ \t\n]+\\)"
-     (1 font-lock-comment-delimiter-face)
-     (2 font-lock-type-face))
+     (1 'font-lock-comment-delimiter-face)
+     (2 'font-lock-type-face))
     ("\\([^ \t\n]+\\)[, \t]+\\([^ \t\n]+\\)"
-     (1 font-lock-constant-face)
+     (1 'font-lock-constant-face)
      (2 nil))))
 
 ;;;###autoload