X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/a08d40b91d18e553ff32c0a08c5cc678f3ba0495..e5bc365387b8c37f425e25e233f1528fa20c369a:/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)