A way to approximate the visible state of Emacs