diff options
Diffstat (limited to 'lisp/subr.el')
-rw-r--r-- | lisp/subr.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index a42b61d9b61..261ec512d89 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -2584,7 +2584,7 @@ Uses the `derived-mode-parent' property of the symbol to trace backwards." (defun major-mode-restore (&optional avoided-modes) "Restore major mode earlier suspended with `major-mode-suspend'. If there was no earlier suspended major mode, then fallback to `normal-mode', -tho trying to avoid AVOIDED-MODES." +though trying to avoid AVOIDED-MODES." (if major-mode--suspended (funcall (prog1 major-mode--suspended (kill-local-variable 'major-mode--suspended))) |