]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve Local Directory Variables auto-insert
authorStefan Kangas <stefankangas@gmail.com>
Wed, 26 Jun 2024 23:50:18 +0000 (01:50 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 28 Jun 2024 05:47:29 +0000 (07:47 +0200)
* lisp/autoinsert.el (auto-insert-alist): Confirm after entering
in a non-existent mode in Local Directory Variables skeleton.

(cherry picked from commit da11a2a5cc3fa7e28031dc87e0f07004a9a005f7)

lisp/autoinsert.el

index fe909acbe20fe891890c3aa64c37708928db9590..3d7216420dd631389f81a4484bd33e13001b00bc 100644 (file)
@@ -177,7 +177,7 @@ If this contains a %s, that will be replaced by the matching rule."
                                (when (string-match "-mode\\'" name)
                                  (push name modes)))))
                  (sort modes)))
-     (completing-read "Local variables for mode: " v1 nil t)
+     (completing-read "Local variables for mode: " v1 nil 'confirm)
      " . (("
      (let ((all-variables
             (apropos-internal ".*"