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.
This commit is contained in:
Stefan Kangas 2024-06-29 21:58:53 +02:00
parent bc2e9210bf
commit fcd6403d8e

View file

@ -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)