Annotation of GNUtools/emacs/lisp/window.el, revision 1.1.1.1

1.1       root        1: ;; GNU Emacs window commands aside from those written in C.
                      2: ;; Copyright (C) 1985 Free Software Foundation, Inc.
                      3: 
                      4: ;; This file is part of GNU Emacs.
                      5: 
                      6: ;; GNU Emacs is free software; you can redistribute it and/or modify
                      7: ;; it under the terms of the GNU General Public License as published by
                      8: ;; the Free Software Foundation; either version 1, or (at your option)
                      9: ;; any later version.
                     10: 
                     11: ;; GNU Emacs is distributed in the hope that it will be useful,
                     12: ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
                     13: ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     14: ;; GNU General Public License for more details.
                     15: 
                     16: ;; You should have received a copy of the GNU General Public License
                     17: ;; along with GNU Emacs; see the file COPYING.  If not, write to
                     18: ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
                     19: 
                     20: 
                     21: (defun split-window-vertically (&optional arg)
                     22:   "Split current window into two windows, one above the other.
                     23: This window becomes the uppermost of the two, and gets
                     24: ARG lines.  No arg means split equally."
                     25:   (interactive "P")
                     26:   (split-window nil (and arg (prefix-numeric-value arg))))
                     27: 
                     28: (defun split-window-horizontally (&optional arg)
                     29:   "Split current window into two windows side by side.
                     30: This window becomes the leftmost of the two, and gets
                     31: ARG columns.  No arg means split equally."
                     32:   (interactive "P")
                     33:   (split-window nil (and arg (prefix-numeric-value arg)) t))
                     34: 
                     35: (defun enlarge-window-horizontally (arg)
                     36:   "Make current window ARG columns wider."
                     37:   (interactive "p")
                     38:   (enlarge-window arg t))
                     39: 
                     40: (defun shrink-window-horizontally (arg)
                     41:   "Make current window ARG columns narrower."
                     42:   (interactive "p")
                     43:   (shrink-window arg t))
                     44: 
                     45: (define-key ctl-x-map "2" 'split-window-vertically)
                     46: (define-key ctl-x-map "5" 'split-window-horizontally)
                     47: (define-key ctl-x-map "}" 'enlarge-window-horizontally)
                     48: (define-key ctl-x-map "{" 'shrink-window-horizontally)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.