I notice that Emacs waits for the end of a function to actually display the buffer modifications the function has produced. For instance, if a function looks like this:
(defun foo () (interactive) (insert "Hello world!") (function-with-rather-long-execution-time))
Then, Emacs waits until the end of the execution of the whole function before displaying "Hello world!", whereas I would like the string to appear right away, before the execution of
function-with-rather-long-execution-time. Is there a solution ?