mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Set `lexical-binding' buffer-local in shadowfile.el
* lisp/shadowfile.el (shadow-read-files): Enable `lisp-data-mode'. Set `lexical-binding' cookie. (Bug#80086)
This commit is contained in:
parent
be9371cde3
commit
dc26b0992a
1 changed files with 4 additions and 0 deletions
|
|
@ -683,6 +683,8 @@ Return t unless files were locked; then return nil."
|
|||
(when shadow-info-file
|
||||
(set-buffer (setq shadow-info-buffer
|
||||
(find-file-noselect shadow-info-file 'nowarn)))
|
||||
(lisp-data-mode)
|
||||
(setq-local lexical-binding t)
|
||||
(when (and (not (buffer-modified-p))
|
||||
(file-newer-than-file-p (make-auto-save-file-name)
|
||||
shadow-info-file))
|
||||
|
|
@ -694,6 +696,8 @@ Return t unless files were locked; then return nil."
|
|||
(when shadow-todo-file
|
||||
(set-buffer (setq shadow-todo-buffer
|
||||
(find-file-noselect shadow-todo-file 'nowarn)))
|
||||
(lisp-data-mode)
|
||||
(setq-local lexical-binding t)
|
||||
(when (and (not (buffer-modified-p))
|
||||
(file-newer-than-file-p (make-auto-save-file-name)
|
||||
shadow-todo-file))
|
||||
|
|
|
|||
Loading…
Reference in a new issue