summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp.el
diff options
context:
space:
mode:
authorDaniel Pittman <slippycheeze@google.com>2018-10-23 11:24:04 -0400
committerEli Zaretskii <eliz@gnu.org>2018-11-03 10:34:56 +0200
commit9d5c4d07462e69b4e0552e7f09e3e59a3fd10b6a (patch)
treee8e47ede42d9f10959b9c8cea7bf5c4a2a728e73 /lisp/emacs-lisp/lisp.el
parent7b82d514371f77072b30a4a6a75cba6684ea56b4 (diff)
downloademacs-9d5c4d07462e69b4e0552e7f09e3e59a3fd10b6a.tar.gz
emacs-9d5c4d07462e69b4e0552e7f09e3e59a3fd10b6a.tar.bz2
emacs-9d5c4d07462e69b4e0552e7f09e3e59a3fd10b6a.zip
Fix interaction between vc-hg find-file-hook and vc state caching
Bad assumptions in the `vc-hg-find-file-hook' prevented it from working. This correctly them. (Bug#33129). 2018-10-23 Daniel Pittman <slippycheeze@google.com> * lisp/vc/vc-hg.el (vc-hg-find-file-hook): This function made two assumptions about conflicted files that were not accurate, preventing conflicts in files ever being detected. The first was that the `vc-state' was cache by the time this was invoked, which it is not - at least when visiting the file, or using `vc-refresh-state'. The second was that a file with the ".orig" extension would be present, next to the file being visited. This is the default behavior of Mercurial, but can be overridden by the user. Since the VC mode-line code will shortly calculate the state for display, the optimization of testing for the ".orig" file only delayed this work by a few moments.
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions