mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
; 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.
This commit is contained in:
parent
9f3f169276
commit
2a8784129d
3 changed files with 5 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue