annotate lisp/x11/x-init.el @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children ac2d302a0011
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; x-init.el --- initialization code for X windows
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 ;; Copyright (C) 1990, 1993, 1994 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;; Copyright (C) 1995 Board of Trustees, University of Illinois.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;; Copyright (C) 1995, 1996 Ben Wing.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;; Author: various
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;; Keywords: terminals
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;; This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;; XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;; under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;; XEmacs is distributed in the hope that it will be useful, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;; General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;; along with XEmacs; see the file COPYING. If not, write to the Free
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;; Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ;;; Commentary:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;; Code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ;;; If you want to change this variable, this is the place you must do it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ;;; Do not set it to a string containing periods. X doesn't like that.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ;(setq x-emacs-application-class "Emacs")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ;;; selections and active regions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ;;; If and only if zmacs-regions is true:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 ;;; When a mark is pushed and the region goes into the "active" state, we
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ;;; assert it as the Primary selection. This causes it to be hilighted.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ;;; When the region goes into the "inactive" state, we disown the Primary
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ;;; selection, causing the region to be dehilighted.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ;;; Note that it is possible for the region to be in the "active" state
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ;;; and not be hilighted, if it is in the active state and then some other
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ;;; application asserts the selection. This is probably not a big deal.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 (defun x-activate-region-as-selection ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 (if (marker-buffer (mark-marker t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 (x-own-selection (cons (point-marker t) (mark-marker t)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 ;;; OpenWindows-like "find" processing. These functions are really Sunisms,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 ;;; but we put them here instead of in x-win-sun.el in case someone wants
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 ;;; to use them when not running on a Sun console (presumably after adding
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 ;;; the to different keys, or putting them on menus.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 (defvar ow-find-last-string nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 (defvar ow-find-last-clipboard nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 (defun ow-find (&optional backward-p)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 "Search forward the next occurrence of the text of the selection."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 (let ((sel (condition-case () (x-get-selection) (error nil)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 (clip (condition-case () (x-get-clipboard) (error nil)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 text)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 (setq text (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 (sel)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 ((not (equal clip ow-find-last-clipboard))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 (setq ow-find-last-clipboard clip))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (ow-find-last-string)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 (t (error "No selection available"))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 (setq ow-find-last-string text)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 (cond (backward-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 (search-backward text)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (set-mark (+ (point) (length text))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 (t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 (search-forward text)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 (set-mark (- (point) (length text)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 (zmacs-activate-region)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 (defun ow-find-backward ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 "Search backward the previous occurence of the text of the selection."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 (ow-find t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 ;;; Load X-server specific code.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 ;;; Specifically, load some code to repair the grievous damage that MIT and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 ;;; Sun have done to the default keymap for the Sun keyboards.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 (defun x-initialize-keyboard ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 "Don't call this."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 (cond (;; This is some heuristic junk that tries to guess whether this is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 ;; a Sun keyboard.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 ;; One way of implementing this (which would require C support) would
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 ;; be to examine the X keymap itself and see if the layout looks even
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 ;; remotely like a Sun - check for the Find key on a particular
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 ;; keycode, for example. It'd be nice to have a table of this to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 ;; recognize various keyboards; see also xkeycaps.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 (let ((vendor (x-server-vendor)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 (or (string-match "Sun Microsystems" vendor)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 ;; MIT losingly fails to tell us what hardware the X server
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 ;; is managing, so assume all MIT displays are Suns... HA HA!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (string-equal "MIT X Consortium" vendor)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 (string-equal "X Consortium" vendor)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 ;; Ok, we think this could be a Sun keyboard. Load the Sun code.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 (or (load "x-win-sun" t t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 (warn "Unable to load term file x-win-sun"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 ((string-match "XFree86" (x-server-vendor))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 ;; Those XFree86 people do some weird keysym stuff, too.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 (or (load "x-win-xfree86" t t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 (warn "Unable to load term file x-win-xfree86")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 (defvar pre-x-win-initted nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 (defun init-pre-x-win ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 "Initialize X Windows at startup (pre). Don't call this."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 (if (not pre-x-win-initted)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 (require 'x-iso8859-1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 (setq character-set-property 'x-iso8859/1) ; see x-iso8859-1.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 (setq initial-frame-plist (if initial-frame-unmapped-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 '(initially-unmapped t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 (setq pre-x-win-initted t))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 (defvar x-win-initted nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 (defun init-x-win ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 "Initialize X Windows at startup. Don't call this."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 (if (not x-win-initted)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 (init-pre-x-win)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 ;; Open the X display when this file is loaded
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 ;; (Note that the first frame is created later.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 (setq x-initial-argv-list (cons (car command-line-args)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 command-line-args-left))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 (make-x-device nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 (setq command-line-args-left (cdr x-initial-argv-list))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 (setq x-win-initted t))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 (defvar post-x-win-initted nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 (defun init-post-x-win ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 "Initialize X Windows at startup (post). Don't call this."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 (if (not post-x-win-initted)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 ;; We can't load this until after the initial X device is created
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 ;; because the icon initialization needs to access the display to get
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 ;; any toolbar-related color resources.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 (if (featurep 'toolbar)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 (init-x-toolbar))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 ;; these are only ever called if zmacs-regions is true.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 (add-hook 'zmacs-deactivate-region-hook 'x-disown-selection)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 (add-hook 'zmacs-activate-region-hook 'x-activate-region-as-selection)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 (add-hook 'zmacs-update-region-hook 'x-activate-region-as-selection)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 ;; Motif-ish bindings
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 ;; The following two were generally unliked.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 ;;(define-key global-map '(shift delete)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 ;; 'x-kill-primary-selection)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 ;;(define-key global-map '(control delete)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 ;; 'x-delete-primary-selection)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 (define-key global-map '(shift insert) 'x-yank-clipboard-selection)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 (define-key global-map '(control insert) 'x-copy-primary-selection)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 ;; (Are these Sunisms?)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 (define-key global-map 'copy 'x-copy-primary-selection)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 (define-key global-map 'paste 'x-yank-clipboard-selection)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 (define-key global-map 'cut 'x-kill-primary-selection)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 (define-key global-map 'menu 'popup-mode-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 ;;(define-key global-map '(shift menu) 'x-goto-menubar) ;NYI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 ;; This runs after the first frame has been created (we can't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 ;; talk to the X server before that) but before the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 ;; site-start-file or .emacs file, so sites and users have a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 ;; chance to override it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 (add-hook 'before-init-hook 'x-initialize-keyboard)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 (setq post-x-win-initted t))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 (defun make-frame-on-display (display &optional parms)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 "Create a frame on the X display named DISPLAY.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 DISPLAY should be a standard display string such as \"unix:0\",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 or nil for the display specified on the command line or in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 DISPLAY environment variable.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 PROPS should be an plist of properties, as in the call to `make-frame'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 This function opens a connection to the display or reuses an existing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 connection.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 This function is a trivial wrapper around `make-frame-on-device'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 (interactive "sMake frame on display: ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 (if (equal display "") (setq display nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 (make-frame-on-device 'x display parms))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 ;;; x-init.el ends here