The problem may occour whenever visiting a file – not only at emacs startup. Would it be possible to add it to some hook?
– Gregor 2019-02-13 14:29 UTC
OK I tested this:
(defun notify-if-recovering-possible () (show-initial-important-messages "recover-this-file")) (add-hook 'find-file-hook 'notify-if-recovering-possible)
and it worked. Thanks for this tip, I had the same problem, which is now solved. (Sorry, don’t know how to indent the code)
– Gregor 2019-02-13 15:18 UTC
Hi, and thanks! I corrected your formatting. Notice that your approach is going to show all the recover messages in *Messages*
every time you visit a file. Alternatively, you might want to look into after-find-file
and patch/advise it, or write your own function which uses e.g. system notifications and put it into find-file-hook
.
– Marcin Borkowski 2019-02-17 07:02 UTC