emacs: add mechanism to prevent flickering of the echo area
emacs: add mechanism to prevent flickering of the echo area

When moving, Emacs:
- (t0) clears the echo area
- calls pre-command-hook
- (t1) updates the display
- calls post-command-hook
- calls our timer function to update the echo area
- (t2) updates the display

So even when our error message does not change (when moving left or
right on a line with an error), the buffer is cleared (t0),
drawn (t1), then updated and redrawn (t2), which creates flicker.

To avoid this, we undo the clearing in the pre-command-hook. For this,
we store the last shown error message in a variable.

(This cannot prevent flickering when moving between two consecutive
lines with each a different error, however this should be rarer.)

neojski/merlin,ocaml/merlin,dra27/merlin,the-lambda-church/merlin,haselwarter/merlin,the-lambda-church/merlin,haselwarter/merlin,rgrinberg/merlin,chambart/merlin,chambart/merlin,the-lambda-church/merlin,ocaml/merlin,chambart/merlin,fxfactorial/merlin,neojski/merlin,rgrinberg/merlin,chambart/merlin,dra27/merlin,haselwarter/merlin,neojski/merlin,dra27/merlin,fxfactorial/merlin,ocaml/merlin,neojski/merlin,fxfactorial/merlin,haselwarter/merlin,ocaml/merlin,chriskonstad/merlin,fxfactorial/merlin,rgrinberg/merlin,chriskonstad/merlin,rgrinberg/merlin,dra27/merlin