-;; electric -- Window maker and Command loop for `electric' modes.
+;;; electric.el --- window maker and Command loop for `electric' modes.
+
;; Copyright (C) 1985, 1986 Free Software Foundation, Inc.
-;; Principal author K. Shane Hartman
+
+;; Author: K. Shane Hartman
+;; Maintainer: FSF
+;; Keywords: extensions
;; This file is part of GNU Emacs.
;; GNU Emacs is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation; either version 1, or (at your option)
+;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
;; GNU Emacs is distributed in the hope that it will be useful,
;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
-(provide 'electric) ; zaaaaaaap
+; zaaaaaaap
;; perhaps this should be in subr.el...
(defun shrink-window-if-larger-than-buffer (window)
(if cmd
(condition-case conditions
(progn (command-execute cmd)
+ (setq last-command this-command)
(if (or (prog1 quit-flag (setq quit-flag nil))
(= last-input-char ?\C-g))
(progn (setq unread-command-char -1)
;; Switch to buffer in the current window.
;;
;; Then if max-height is nil, and not all of the lines in the buffer
-;; are displayed, grab the whole screen.
+;; are displayed, grab the whole frame.
;;
;; Returns selected window on buffer positioned at point-min.
(enlarge-window (- target-height (window-height win)))))
(goto-char (point-min))
win)))
+
+(provide 'electric)
+
+; electric.el ends here