X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/da0d153e1520b5af5d008412187bbcb1d686de48..4861427a5a8b64fc6ae555a140129c27a1d62175:/packages/windresize/windresize.el diff --git a/packages/windresize/windresize.el b/packages/windresize/windresize.el index c729cb96d..e13dd3f7e 100755 --- a/packages/windresize/windresize.el +++ b/packages/windresize/windresize.el @@ -30,7 +30,7 @@ ;; This mode lets you edit the window configuration interactively just ;; by using the keyboard. ;; -;; To use it, type M-x windresize; this enters put Emacs in a state +;; To use it, type M-x windresize; this puts Emacs in a state ;; where the up/down and left/right arrow keys resize the window ;; dimensions. To return Emacs to its ordinary state, type RET. ;; @@ -868,7 +868,7 @@ horizontally and vertically." (defun windresize-cancel-and-quit () "Cancel window resizing and quit `windresize'." (interactive) - (if (eq major-mode 'help-mode) + (if (derived-mode-p 'help-mode) (progn (View-quit) (setq windresize-msg '("Help quit" . 2))) (switch-to-buffer windresize-buffer)