One thing that bothers me is that I am not able to store the wanted default visibility state as a local variable... Any suggestion welcome! Also, I've not started to rewrite the diff-mode part on top of this patch, so comments are most welcome in case I am going in wrong direction. -- Matthias