diff options
| author | Basil L. Contovounesios | 2020-05-01 14:44:56 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2020-05-01 15:03:59 +0100 |
| commit | 2a8784129daf270d0a20ce3531e488de51de7520 (patch) | |
| tree | 7aeacae9a3e1237d6685be513ec0de028ee9efbe | |
| parent | 9f3f1692767779a243a32d82f20eb8ffa5369920 (diff) | |
| download | emacs-2a8784129daf270d0a20ce3531e488de51de7520.tar.gz emacs-2a8784129daf270d0a20ce3531e488de51de7520.zip | |
; Fix recent additions with lisp-data-mode
* 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.
| -rw-r--r-- | lisp/bookmark.el | 2 | ||||
| -rw-r--r-- | lisp/files.el | 4 | ||||
| -rw-r--r-- | lisp/saveplace.el | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lisp/bookmark.el b/lisp/bookmark.el index f2384973e9c..0fa77ed3224 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el | |||
| @@ -736,7 +736,7 @@ CODING is the symbol of the coding-system in which the file is encoded." | |||
| 736 | (insert | 736 | (insert |
| 737 | (format | 737 | (format |
| 738 | ";;;; Emacs Bookmark Format Version %d\ | 738 | ";;;; Emacs Bookmark Format Version %d\ |
| 739 | ;;;; -*- coding: %S mode: lisp-data -*-\n" | 739 | ;;;; -*- coding: %S; mode: lisp-data -*-\n" |
| 740 | bookmark-file-format-version (coding-system-base coding))) | 740 | bookmark-file-format-version (coding-system-base coding))) |
| 741 | (insert ";;; This format is meant to be slightly human-readable;\n" | 741 | (insert ";;; This format is meant to be slightly human-readable;\n" |
| 742 | ";;; nevertheless, you probably don't want to edit it.\n" | 742 | ";;; nevertheless, you probably don't want to edit it.\n" |
diff --git a/lisp/files.el b/lisp/files.el index 56d4679ad7d..c34fe003880 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2657,9 +2657,9 @@ since only a single case-insensitive search through the alist is made." | |||
| 2657 | ("\\.ltx\\'" . latex-mode) | 2657 | ("\\.ltx\\'" . latex-mode) |
| 2658 | ("\\.dtx\\'" . doctex-mode) | 2658 | ("\\.dtx\\'" . doctex-mode) |
| 2659 | ("\\.org\\'" . org-mode) | 2659 | ("\\.org\\'" . org-mode) |
| 2660 | ;; .dir-locals.el is not really elisp. Could use the | 2660 | ;; .dir-locals.el is not really Elisp. Could use the |
| 2661 | ;; `dir-locals-file' constant if it weren't defined below. | 2661 | ;; `dir-locals-file' constant if it weren't defined below. |
| 2662 | ("\\.dir-locals\\(-2\\)?\\.el\\'" . lisp-data-mode) | 2662 | ("\\.dir-locals\\(?:-2\\)?\\.el\\'" . lisp-data-mode) |
| 2663 | ("eww-bookmarks\\'" . lisp-data-mode) | 2663 | ("eww-bookmarks\\'" . lisp-data-mode) |
| 2664 | ("tramp\\'" . lisp-data-mode) | 2664 | ("tramp\\'" . lisp-data-mode) |
| 2665 | ("places\\'" . lisp-data-mode) | 2665 | ("places\\'" . lisp-data-mode) |
diff --git a/lisp/saveplace.el b/lisp/saveplace.el index f78639db246..46738ab03dc 100644 --- a/lisp/saveplace.el +++ b/lisp/saveplace.el | |||
| @@ -248,8 +248,8 @@ may have changed) back to `save-place-alist'." | |||
| 248 | (delete-region (point-min) (point-max)) | 248 | (delete-region (point-min) (point-max)) |
| 249 | (when save-place-forget-unreadable-files | 249 | (when save-place-forget-unreadable-files |
| 250 | (save-place-forget-unreadable-files)) | 250 | (save-place-forget-unreadable-files)) |
| 251 | (insert (format ";;; -*- coding: %s mode: lisp-data -*-\n" | 251 | (insert (format ";;; -*- coding: %s; mode: lisp-data -*-\n" |
| 252 | (symbol-name coding-system-for-write))) | 252 | coding-system-for-write)) |
| 253 | (let ((print-length nil) | 253 | (let ((print-length nil) |
| 254 | (print-level nil)) | 254 | (print-level nil)) |
| 255 | (pp save-place-alist (current-buffer))) | 255 | (pp save-place-alist (current-buffer))) |