]> code.delx.au - gnu-emacs/blobdiff - lisp/electric.el
(vc-admin): Pass t as noquery arg to vc-resynch-window.
[gnu-emacs] / lisp / electric.el
index be992c60f0d2983b9beb7391b46bb6f8b5094db7..a3626a007e5cd7b0e8b23e215acad16434e2a42b 100644 (file)
@@ -1,12 +1,16 @@
-;; 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,
@@ -19,7 +23,7 @@
 ;; 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)
@@ -94,6 +98,7 @@
       (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