From: Stefan Kangas Date: Sat, 29 Jun 2024 19:58:53 +0000 (+0200) Subject: Complete to "nil" in directory local variables skeleton X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7653e66b8b79467ba1ace39fa9b47377a9cb12dc;p=emacs.git 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) --- 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)