]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix recent additions with lisp-data-mode
authorBasil L. Contovounesios <contovob@tcd.ie>
Fri, 1 May 2020 13:44:56 +0000 (14:44 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Fri, 1 May 2020 14:03:59 +0000 (15:03 +0100)
* lisp/bookmark.el (bookmark-insert-file-format-version-stamp)
(save-place-alist-to-file): Delimit file-local variables on the -*-
line with semicolons.
* lisp/files.el (auto-mode-alist): Use shy regexp group.

lisp/bookmark.el
lisp/files.el
lisp/saveplace.el

index f2384973e9ce5026d8592a5991bc41dda5b4422f..0fa77ed32246b796e14fc5f2999f0bddbdd39f88 100644 (file)
@@ -736,7 +736,7 @@ CODING is the symbol of the coding-system in which the file is encoded."
   (insert
    (format
     ";;;; Emacs Bookmark Format Version %d\
-;;;; -*- coding: %S mode: lisp-data -*-\n"
+;;;; -*- coding: %S; mode: lisp-data -*-\n"
     bookmark-file-format-version (coding-system-base coding)))
   (insert ";;; This format is meant to be slightly human-readable;\n"
           ";;; nevertheless, you probably don't want to edit it.\n"
index 56d4679ad7dc7c41677ae594575ac4f95ca890db..c34fe0038807f2cd346b50dd3f0f96dfb31c3dc5 100644 (file)
@@ -2657,9 +2657,9 @@ since only a single case-insensitive search through the alist is made."
      ("\\.ltx\\'" . latex-mode)
      ("\\.dtx\\'" . doctex-mode)
      ("\\.org\\'" . org-mode)
-     ;; .dir-locals.el is not really elisp.  Could use the
+     ;; .dir-locals.el is not really Elisp.  Could use the
      ;; `dir-locals-file' constant if it weren't defined below.
-     ("\\.dir-locals\\(-2\\)?\\.el\\'" . lisp-data-mode)
+     ("\\.dir-locals\\(?:-2\\)?\\.el\\'" . lisp-data-mode)
      ("eww-bookmarks\\'" . lisp-data-mode)
      ("tramp\\'" . lisp-data-mode)
      ("places\\'" . lisp-data-mode)
index f78639db246d9e25bc022b21e2b2dfc9fd44b100..46738ab03dc9ae72d83c09c59c2e90a93b2af9ab 100644 (file)
@@ -248,8 +248,8 @@ may have changed) back to `save-place-alist'."
       (delete-region (point-min) (point-max))
       (when save-place-forget-unreadable-files
        (save-place-forget-unreadable-files))
-      (insert (format ";;; -*- coding: %s mode: lisp-data -*-\n"
-                      (symbol-name coding-system-for-write)))
+      (insert (format ";;; -*- coding: %s; mode: lisp-data -*-\n"
+                      coding-system-for-write))
       (let ((print-length nil)
             (print-level nil))
         (pp save-place-alist (current-buffer)))