]> git.eshelyaron.com Git - emacs.git/commit
* lisp/vc/emerge.el: Use lexical-binding
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 4 Apr 2018 03:17:30 +0000 (23:17 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 4 Apr 2018 03:17:30 +0000 (23:17 -0400)
commitfbd025a667b2361db30c3cb723b4f0ca15413d4a
treee8af8ea6589f7b4d6b64b2af0a6d578cb199423c
parent9b0e8a4c6b540dcb962607763846040942858c5a
* lisp/vc/emerge.el: Use lexical-binding

Replace all `(lambda ...) with closures.  Use inhibit-read-only.
(emerge-mode): Use define-minor-mode.
(emerge-setup, emerge-setup-with-ancestor):
Don't use 'run-hooks' on local var.
(emerge-files, emerge-files-with-ancestor):
Don't use 'add-hook' on local var.
(emerge-convert-diffs-to-markers): Remove unused var 'B-point-min'.
Simplify 'offset'.
(emerge--current-beg, emerge--current-end): New macros.
(emerge-select-version): Pass 'diff-vector' to the function it calls.
Change all callers to use it instead of dyn-bound vars.
lisp/vc/emerge.el