]> 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 ef09b978cefadf9cd4b2503681d739998a11e4b7..e13dd3f7e66c2c892972e3483b03aee04badb994 100755 (executable)
@@ -1,13 +1,13 @@
-;;; windresize.el --- resize windows interactively
+;;; windresize.el --- Resize windows interactively
 ;;
 ;; Copyright (C) 2011  Free Software Foundation, Inc.
 ;;
 ;; Filename: windresize.el
-;; Version: 0.6d
 ;; Author: Bastien <bzg AT altern DOT org>
 ;; Maintainer: Bastien <bzg AT altern DOT org>
 ;; Keywords: window
 ;; Description: Set window configuration with keystrokes
+;; Version: 0.1
 ;;
 ;; This program is free software; you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
 ;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 ;;
 ;; This is not part of GNU Emacs.
-;;
+
 ;;; Commentary:
+
+;; This mode lets you edit the window configuration interactively just
+;; by using the keyboard.
 ;;
-;; This mode let's you edit the window configuration interactively just
-;; by using the keyboard.  Quickstart: M-x windresize
+;; 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.
 ;;
+;; See the docstring of `windresize' for a detailed description of the
+;; other commands that are available while windresize is active.
+
 ;;; History:
 ;;
 ;; This was largely inspired by Hirose Yuuji and Bob Wiener original
@@ -861,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)