]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/windresize/windresize.el
Reverted commits 312, 313, and 315.
[gnu-emacs-elpa] / packages / windresize / windresize.el
index c729cb96d5d68afe80c1508b285cf0e65fee516a..e13dd3f7e66c2c892972e3483b03aee04badb994 100755 (executable)
@@ -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)