From fcd6403d8ebf7ce6e61ba17971d4fdaaaaecf06c Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 29 Jun 2024 21:58:53 +0200 Subject: 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. --- lisp/autoinsert.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/autoinsert.el') diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el index 15fc9ecd469..6b7dcad3899 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) -- cgit v1.2.1