Mercurial > emacs
comparison lisp/term/x-win.el @ 1546:da9a60e97e72
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Thu, 05 Nov 1992 04:28:10 +0000 |
parents | bf6b4bc3ccc0 |
children | 2754d53edf5d |
comparison
equal
deleted
inserted
replaced
1545:9ff238dd8a35 | 1546:da9a60e97e72 |
---|---|
447 (define-key global-map [M-next] 'scroll-other-window) | 447 (define-key global-map [M-next] 'scroll-other-window) |
448 (define-key global-map [begin] 'beginning-of-buffer) | 448 (define-key global-map [begin] 'beginning-of-buffer) |
449 (define-key global-map [end] 'end-of-buffer) | 449 (define-key global-map [end] 'end-of-buffer) |
450 | 450 |
451 (define-key global-map "\C-z" 'iconify-frame) | 451 (define-key global-map "\C-z" 'iconify-frame) |
452 | 452 |
453 ;;; Do the actual X Windows setup here; the above code just defines | 453 |
454 ;;; functions and variables that we use now. | 454 ;;;; Selections and cut buffers |
455 | |
456 (setq command-line-args (x-handle-args command-line-args)) | |
457 (x-open-connection (or x-display-name | |
458 (setq x-display-name (getenv "DISPLAY")))) | |
459 | |
460 (setq frame-creation-function 'x-create-frame) | |
461 (setq suspend-hook | |
462 '(lambda () | |
463 (error "Suspending an emacs running under X makes no sense"))) | |
464 | 455 |
465 ;;; We keep track of the last text selected here, so we can check the | 456 ;;; We keep track of the last text selected here, so we can check the |
466 ;;; current selection against it, and avoid passing back our own text | 457 ;;; current selection against it, and avoid passing back our own text |
467 ;;; from x-cut-buffer-or-selection-value. | 458 ;;; from x-cut-buffer-or-selection-value. |
468 (defvar x-last-selected-text nil) | 459 (defvar x-last-selected-text nil) |
499 (setq x-last-selected-text text) | 490 (setq x-last-selected-text text) |
500 nil) | 491 nil) |
501 (t | 492 (t |
502 (setq x-last-selected-text text))))) | 493 (setq x-last-selected-text text))))) |
503 | 494 |
495 | |
496 ;;; Do the actual X Windows setup here; the above code just defines | |
497 ;;; functions and variables that we use now. | |
498 | |
499 (setq command-line-args (x-handle-args command-line-args)) | |
500 (x-open-connection (or x-display-name | |
501 (setq x-display-name (getenv "DISPLAY")))) | |
502 | |
503 (setq frame-creation-function 'x-create-frame) | |
504 (setq suspend-hook | |
505 '(lambda () | |
506 (error "Suspending an emacs running under X makes no sense"))) | |
507 | |
504 ;;; Arrange for the kill and yank functions to set and check the clipboard. | 508 ;;; Arrange for the kill and yank functions to set and check the clipboard. |
505 (setq interprogram-cut-function 'x-select-text) | 509 (setq interprogram-cut-function 'x-select-text) |
506 (setq interprogram-paste-function 'x-cut-buffer-or-selection-value) | 510 (setq interprogram-paste-function 'x-cut-buffer-or-selection-value) |
507 | 511 |
508 ;;; Turn off window-splitting optimization; X is usually fast enough | 512 ;;; Turn off window-splitting optimization; X is usually fast enough |