aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond1993-03-11 08:56:55 +0000
committerEric S. Raymond1993-03-11 08:56:55 +0000
commit48e3c9a2ef020ff5ca4b6bfcce9148b0262d7653 (patch)
tree7b57c74f74a80d5a7d51f41f1ee3f6a35bb0b941
parent7f94bc9fb34d15d54a2c8cb570683000f6a7c358 (diff)
downloademacs-48e3c9a2ef020ff5ca4b6bfcce9148b0262d7653.tar.gz
emacs-48e3c9a2ef020ff5ca4b6bfcce9148b0262d7653.zip
Added headers, removed function bindings.
-rw-r--r--lisp/term/x-win.el56
1 files changed, 13 insertions, 43 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index a8f9ecb571d..c016a8c5136 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -1,4 +1,8 @@
1;; Parse switches controlling how Emacs interfaces with X window system. 1;;; x-win.el --- parse switches controlling interface with X window system
2
3;; Author: FSF
4;; Keywords: terminals
5
2;; Copyright (C) 1990 Free Software Foundation, Inc. 6;; Copyright (C) 1990 Free Software Foundation, Inc.
3 7
4;; This file is part of GNU Emacs. 8;; This file is part of GNU Emacs.
@@ -18,6 +22,7 @@
18;; file named COPYING. Among other things, the copyright notice 22;; file named COPYING. Among other things, the copyright notice
19;; and this notice must be preserved on all copies. 23;; and this notice must be preserved on all copies.
20 24
25;;; Commentary:
21 26
22;; X-win.el: this file is loaded from ../lisp/startup.el when it recognizes 27;; X-win.el: this file is loaded from ../lisp/startup.el when it recognizes
23;; that X windows are to be used. Command line switches are parsed and those 28;; that X windows are to be used. Command line switches are parsed and those
@@ -26,6 +31,8 @@
26 31
27;; startup.el will then examine startup files, and eventually call the hooks 32;; startup.el will then examine startup files, and eventually call the hooks
28;; which create the first window (s). 33;; which create the first window (s).
34
35;;; Code:
29 36
30;; These are the standard X switches from the Xt Initialize.c file of 37;; These are the standard X switches from the Xt Initialize.c file of
31;; Release 4. 38;; Release 4.
@@ -417,46 +424,8 @@ This returns ARGS with the arguments that have been processed removed."
417 424
418;;;; Function keys 425;;;; Function keys
419 426
420;;; Give some common function keys reasonable definitions.
421(define-key global-map [home] 'beginning-of-line)
422(define-key global-map [left] 'backward-char)
423(define-key global-map [up] 'previous-line)
424(define-key global-map [right] 'forward-char)
425(define-key global-map [down] 'next-line)
426(define-key global-map [prior] 'scroll-down)
427(define-key global-map [next] 'scroll-up)
428(define-key global-map [M-next] 'scroll-other-window)
429(define-key global-map [begin] 'beginning-of-buffer)
430(define-key global-map [end] 'end-of-buffer)
431
432(define-key global-map "\C-z" 'iconify-frame) 427(define-key global-map "\C-z" 'iconify-frame)
433 428
434;; Map certain keypad keys into ASCII characters
435;; that people usually expect.
436(define-key function-key-map [backspace] [127])
437(define-key function-key-map [delete] [127])
438(define-key function-key-map [tab] [?\t])
439(define-key function-key-map [linefeed] [?\n])
440(define-key function-key-map [clear] [11])
441(define-key function-key-map [return] [13])
442(define-key function-key-map [escape] [?\e])
443(define-key function-key-map [M-backspace] [?\M-\d])
444(define-key function-key-map [M-delete] [?\M-\d])
445(define-key function-key-map [M-tab] [?\M-\t])
446(define-key function-key-map [M-linefeed] [?\M-\n])
447(define-key function-key-map [M-clear] [?\M-\013])
448(define-key function-key-map [M-return] [?\M-\015])
449(define-key function-key-map [M-escape] [?\M-\e])
450
451;; Eventually these will tell read-char how to convert
452;; these special chars to ASCII.
453(put 'backspace 'ascii-character 127)
454(put 'delete 'ascii-character 127)
455(put 'tab 'ascii-character ?\t)
456(put 'linefeed 'ascii-character ?\n)
457(put 'clear 'ascii-character 12)
458(put 'return 'ascii-character 13)
459(put 'escape 'ascii-character ?\e)
460 429
461;;;; Selections and cut buffers 430;;;; Selections and cut buffers
462 431
@@ -508,10 +477,9 @@ This returns ARGS with the arguments that have been processed removed."
508 (setq x-display-name (getenv "DISPLAY")))) 477 (setq x-display-name (getenv "DISPLAY"))))
509 478
510(setq frame-creation-function 'x-create-frame) 479(setq frame-creation-function 'x-create-frame)
511 480(setq suspend-hook
512(defun x-win-suspend-error () 481 '(lambda ()
513 (error "Suspending an emacs running under X makes no sense")) 482 (error "Suspending an emacs running under X makes no sense")))
514(add-hook 'suspend-hooks 'x-win-suspend-error)
515 483
516;;; Arrange for the kill and yank functions to set and check the clipboard. 484;;; Arrange for the kill and yank functions to set and check the clipboard.
517(setq interprogram-cut-function 'x-select-text) 485(setq interprogram-cut-function 'x-select-text)
@@ -520,3 +488,5 @@ This returns ARGS with the arguments that have been processed removed."
520;;; Turn off window-splitting optimization; X is usually fast enough 488;;; Turn off window-splitting optimization; X is usually fast enough
521;;; that this is only annoying. 489;;; that this is only annoying.
522(setq split-window-keep-point t) 490(setq split-window-keep-point t)
491
492;;; x-win.el ends here