]> git.eshelyaron.com Git - emacs.git/commit
* lisp/shadowfile.el: Use lexical-binding
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 8 Apr 2021 23:34:57 +0000 (19:34 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 8 Apr 2021 23:34:57 +0000 (19:34 -0400)
commita4575655d271353a70287c497cf81efd4b8beb82
treeaaa4e8c7156d04b95f07763afdf2e624ed07e55a
parent3492cc36f23c99344a6533a5ba4c6080b10d35a1
* lisp/shadowfile.el: Use lexical-binding

Delete redundant `:group` args.

(shadow-hashtable): Make it an actual hash-table.
(shadow-shadows-of, shadow-invalidate-hashtable): Adjust accordingly.
(shadow-insert-var): Strength-reduce `eval` to `symbol-value`.
(shadow--save-buffers-kill-emacs): New function extracted from
`shadow-save-buffers-kill-emacs`.
(shadow-save-buffers-kill-emacs): Use it and use `save-buffers-kill-emacs`.
(shadow-initialize, shadowfile-unload-function):
Use `advice-add/remove` rather than override `save-buffers-kill-emacs`
with `defalias`.
lisp/shadowfile.el