]> git.eshelyaron.com Git - emacs.git/commitdiff
Use lisp-data-mode in 5 more places
authorJoão Távora <joaotavora@gmail.com>
Sat, 18 Apr 2020 08:04:13 +0000 (09:04 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sat, 18 Apr 2020 08:04:13 +0000 (09:04 +0100)
Thanks to Juri Linkov and Basil L. Contovounesios for the list and the
indication of the function that needed to be changed.

* lisp/bookmark.el (bookmark-insert-file-format-version-stamp):
Use lisp-data-mode.

* lisp/saveplace.el (save-place-alist-to-file): Use
lisp-data-mode.

* lisp/net/eww.el (eww-write-bookmarks): Use lisp-data-mode.

* lisp/net/nsm.el (nsm-write-settings): Use lisp-data-mode.

* lisp/net/tramp-cache.el (tramp-dump-connection-properties): Use
lisp-data-mode.

lisp/bookmark.el
lisp/net/eww.el
lisp/net/nsm.el
lisp/net/tramp-cache.el
lisp/saveplace.el

index 720ad18c16f91d87e2852b65e2c8a288cb9ac856..f2384973e9ce5026d8592a5991bc41dda5b4422f 100644 (file)
@@ -734,8 +734,10 @@ CODING is the symbol of the coding-system in which the file is encoded."
   (if (memq (coding-system-base coding) '(undecided prefer-utf-8))
       (setq coding 'utf-8-emacs))
   (insert
-   (format ";;;; Emacs Bookmark Format Version %d ;;;; -*- coding: %S -*-\n"
-           bookmark-file-format-version (coding-system-base coding)))
+   (format
+    ";;;; Emacs Bookmark Format Version %d\
+;;;; -*- 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 c83884fd2593f4369c491c9b60d2393a125f5fe7..a4544023f61e768736045df16674f0224df3dfe4 100644 (file)
@@ -1733,7 +1733,7 @@ If CHARSET is nil then use UTF-8."
 
 (defun eww-write-bookmarks ()
   (with-temp-file (expand-file-name "eww-bookmarks" eww-bookmarks-directory)
-    (insert ";; Auto-generated file; don't edit\n")
+    (insert ";; Auto-generated file; don't edit -*- mode: lisp-data -*-\n")
     (pp eww-bookmarks (current-buffer))))
 
 (defun eww-read-bookmarks ()
index 2d36c5e2571292a5362d05bdf4911694a5a1721c..cc22427e6d1ff55520c0564af2ba41ce65995a46 100644 (file)
@@ -964,6 +964,7 @@ protocol."
 
 (defun nsm-write-settings ()
   (with-temp-file nsm-settings-file
+    (insert ";;;; -*- mode: lisp-data -*-\n")
     (insert "(\n")
     (dolist (setting nsm-permanent-host-settings)
       (insert " ")
index 09e30f000f461336b51219510c96d4a67f81e609..6d87ce297bc4d0c14d2aef7f3efc5fa6f83bc530 100644 (file)
@@ -472,7 +472,7 @@ used to cache connection properties of the local machine."
        ;; Dump it.
        (with-temp-file tramp-persistency-file-name
          (insert
-          ";; -*- emacs-lisp -*-"
+          ";; -*- lisp-data -*-"
           ;; `time-stamp-string' might not exist in all Emacs flavors.
           (condition-case nil
               (progn
index fa0e181bb101750fc1dafa4ceda17775f93b595f..f78639db246d9e25bc022b21e2b2dfc9fd44b100 100644 (file)
@@ -248,7 +248,7 @@ 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 -*-\n"
+      (insert (format ";;; -*- coding: %s mode: lisp-data -*-\n"
                       (symbol-name coding-system-for-write)))
       (let ((print-length nil)
             (print-level nil))