fix(emacs/lean-changes): visit file before process any changes

This solves many instances of the modified buffer problem.
This commit is contained in:
Soonho Kong 2014-10-03 09:43:41 -07:00
parent c0725d1934
commit e255b02fca

View file

@ -29,6 +29,7 @@ It saves the following information to the global variable:
These information will be used by lean-after-changed-function."
(lean-server-get-process)
(lean-server-check-current-file)
(setq lean-global-before-change-beg beg)
(setq lean-global-before-change-end end)
(setq lean-global-before-change-beg-line-number (line-number-at-pos beg))