From 7653e66b8b79467ba1ace39fa9b47377a9cb12dc Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 29 Jun 2024 21:58:53 +0200 Subject: [PATCH] Complete to "nil" in directory local variables skeleton * lisp/autoinsert.el (auto-insert-alist): Make "nil" a completion candidate for the directory local variables skeleton. The "nil" value means "any mode" in the context of directory local variable files. (cherry picked from commit fcd6403d8ebf7ce6e61ba17971d4fdaaaaecf06c) --- lisp/autoinsert.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el index 3d7216420dd..9136127c28e 100644 --- a/lisp/autoinsert.el +++ b/lisp/autoinsert.el @@ -171,7 +171,7 @@ If this contains a %s, that will be replaced by the matching rule." ";;; Directory Local Variables -*- no-byte-compile: t; -*-\n" ";;; For more information see (info \"(emacs) Directory Variables\")\n\n" "((" - '(setq v1 (let (modes) + '(setq v1 (let ((modes '("nil"))) (mapatoms (lambda (mode) (let ((name (symbol-name mode))) (when (string-match "-mode\\'" name) -- 2.39.2