Add workaround for Emacs bug #12183