-;;; x-win.el --- parse switches controlling interface with X window system
+;;; x-win.el --- parse relevant switches and set up for X -*-coding: iso-2022-7bit;-*-
;; Copyright (C) 1993, 1994, 2001, 2002 Free Software Foundation, Inc.
;; Author: FSF
-;; Keywords: terminals
+;; Keywords: terminals, i18n
;; This file is part of GNU Emacs.
;; X display is opened and hooks are set for popping up the initial window.
;; startup.el will then examine startup files, and eventually call the hooks
-;; which create the first window (s).
+;; which create the first window(s).
;;; Code:
\f
(require 'faces)
(require 'select)
(require 'menu-bar)
-(if (fboundp 'new-fontset)
- (require 'fontset))
+(require 'fontset)
(defvar x-invocation-args)
(put 'return 'ascii-character 13)
(put 'escape 'ascii-character ?\e)
+\f
+;;;; Keysyms
+
(defun vendor-specific-keysyms (vendor)
"Return the appropriate value of system-key-alist for VENDOR.
VENDOR is a string containing the name of the X Server's vendor,
as returned by (x-server-vendor)."
+ ;; Fixme: Drop Apollo now?
(cond ((string-equal vendor "Apollo Computer Inc.")
'((65280 . linedel)
(65281 . chardel)
(65395 . deletechar)
(65396 . backtab)
(65397 . kp-backtab)))
+ ;; Fixme: What about non-X11/NeWS sun server?
((or (string-equal vendor "X11/NeWS - Sun Microsystems Inc.")
(string-equal vendor "X Consortium"))
'((392976 . f36)
;; This is used by DEC's X server.
'((65280 . remove)))))
+(let ((i 160))
+ (while (< i 256)
+ (puthash i (make-char 'latin-iso8859-1 i) x-keysym-table)
+ (setq i (1+ i))))
+
+;; Table from Kuhn's proposed additions to the `KEYSYM Encoding'
+;; appendix to the X protocol definition.
+(dolist
+ (pair
+ '(
+ ;; Latin-2
+ (#x1a1 . ?\e,B!\e(B)
+ (#x1a2 . ?\e,B"\e(B)
+ (#x1a3 . ?\e,B#\e(B)
+ (#x1a5 . ?\e,B%\e(B)
+ (#x1a6 . ?\e,B&\e(B)
+ (#x1a9 . ?\e,B)\e(B)
+ (#x1aa . ?\e,B*\e(B)
+ (#x1ab . ?\e,B+\e(B)
+ (#x1ac . ?\e,B,\e(B)
+ (#x1ae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e(B)
+ (#xef6 . ?\e$(C$}\e(B)
+ (#xef7 . ?\e$(C$~\e(B)
+ (#xef8 . ?\e$,1M+\e(B)
+ (#xef9 . ?\e$,1M0\e(B)
+ (#xefa . ?\e$,1M9\e(B)
+ (#xeff . ?\e$,1tI\e(B)
+ ;; Latin-5
+ ;; Latin-6
+ ;; Latin-7
+ ;; Latin-8
+ ;; Latin-9
+ (#x13bc . ?\e,b<\e(B)
+ (#x13bd . ?\e,b=\e(B)
+ (#x13be . ?\e,b>\e(B)
+ ;; Currency
+ (#x20a0 . ?\e$,1t@\e(B)
+ (#x20a1 . ?\e$,1tA\e(B)
+ (#x20a2 . ?\e$,1tB\e(B)
+ (#x20a3 . ?\e$,1tC\e(B)
+ (#x20a4 . ?\e$,1tD\e(B)
+ (#x20a5 . ?\e$,1tE\e(B)
+ (#x20a6 . ?\e$,1tF\e(B)
+ (#x20a7 . ?\e$,1tG\e(B)
+ (#x20a8 . ?\e$,1tH\e(B)
+ (#x20aa . ?\e$,1tJ\e(B)
+ (#x20ab . ?\e$,1tK\e(B)
+ (#x20ac . ?\e,b$\e(B)))
+ (puthash (car pair) (cdr pair) x-keysym-table))
+
+;; The following keysym codes for graphics are listed in the document
+;; as not having unicodes available:
+
+;; #x08b1 TOP LEFT SUMMATION Technical
+;; #x08b2 BOTTOM LEFT SUMMATION Technical
+;; #x08b3 TOP VERTICAL SUMMATION CONNECTOR Technical
+;; #x08b4 BOTTOM VERTICAL SUMMATION CONNECTOR Technical
+;; #x08b5 TOP RIGHT SUMMATION Technical
+;; #x08b6 BOTTOM RIGHT SUMMATION Technical
+;; #x08b7 RIGHT MIDDLE SUMMATION Technical
+;; #x0aac SIGNIFICANT BLANK SYMBOL Publish
+;; #x0abd DECIMAL POINT Publish
+;; #x0abf MARKER Publish
+;; #x0acb TRADEMARK SIGN IN CIRCLE Publish
+;; #x0ada HEXAGRAM Publish
+;; #x0aff CURSOR Publish
+;; #x0dde THAI MAIHANAKAT Thai
+
\f
;;;; Selections and cut buffers
(while (setq i (string-match "[.*]" x-resource-name))
(aset x-resource-name i ?-))))
-;; For the benefit of older Emacses (19.27 and earlier) that are sharing
-;; the same lisp directory, don't pass the third argument unless we seem
-;; to have the multi-display support.
-(if (fboundp 'x-close-connection)
- (x-open-connection (or x-display-name
- (setq x-display-name (getenv "DISPLAY")))
- x-command-line-resources
- ;; Exit Emacs with fatal error if this fails.
- t)
- (x-open-connection (or x-display-name
- (setq x-display-name (getenv "DISPLAY")))
- x-command-line-resources))
+(x-open-connection (or x-display-name
+ (setq x-display-name (getenv "DISPLAY")))
+ x-command-line-resources
+ ;; Exit Emacs with fatal error if this fails.
+ t)
(setq frame-creation-function 'x-create-frame-with-faces)
(setq x-cut-buffer-max (min (- (/ (x-server-max-request-size) 2) 100)
x-cut-buffer-max))
-(if (fboundp 'new-fontset)
- (progn
- ;; Create the standard fontset.
- (create-fontset-from-fontset-spec standard-fontset-spec t)
-
- ;; Create fontset specified in X resources "Fontset-N" (N is 0, 1, ...).
- (create-fontset-from-x-resource)
-
- ;; Try to create a fontset from a font specification which comes
- ;; from initial-frame-alist, default-frame-alist, or X resource.
- ;; A font specification in command line argument (i.e. -fn XXXX)
- ;; should be already in default-frame-alist as a `font'
- ;; parameter. However, any font specifications in site-start
- ;; library, user's init file (.emacs), and default.el are not
- ;; yet handled here.
-
- (let ((font (or (cdr (assq 'font initial-frame-alist))
- (cdr (assq 'font default-frame-alist))
- (x-get-resource "font" "Font")))
- xlfd-fields resolved-name)
- (if (and font
- (not (query-fontset font))
- (setq resolved-name (x-resolve-font-name font))
- (setq xlfd-fields (x-decompose-font-name font)))
- (if (string= "fontset"
- (aref xlfd-fields xlfd-regexp-registry-subnum))
- (new-fontset font (x-complement-fontset-spec xlfd-fields nil))
- ;; Create a fontset from FONT. The fontset name is
- ;; generated from FONT.
- (create-fontset-from-ascii-font font
- resolved-name "startup"))))))
+;; Create the standard fontset.
+(create-fontset-from-fontset-spec standard-fontset-spec t)
+
+;; Create fontset specified in X resources "Fontset-N" (N is 0, 1, ...).
+(create-fontset-from-x-resource)
+
+;; Try to create a fontset from a font specification which comes
+;; from initial-frame-alist, default-frame-alist, or X resource.
+;; A font specification in command line argument (i.e. -fn XXXX)
+;; should be already in default-frame-alist as a `font'
+;; parameter. However, any font specifications in site-start
+;; library, user's init file (.emacs), and default.el are not
+;; yet handled here.
+
+(let ((font (or (cdr (assq 'font initial-frame-alist))
+ (cdr (assq 'font default-frame-alist))
+ (x-get-resource "font" "Font")))
+ xlfd-fields resolved-name)
+ (if (and font
+ (not (query-fontset font))
+ (setq resolved-name (x-resolve-font-name font))
+ (setq xlfd-fields (x-decompose-font-name font)))
+ (if (string= "fontset" (aref xlfd-fields xlfd-regexp-registry-subnum))
+ (new-fontset font (x-complement-fontset-spec xlfd-fields nil))
+ ;; Create a fontset from FONT. The fontset name is
+ ;; generated from FONT.
+ (create-fontset-from-ascii-font font resolved-name "startup"))))
;; Sun expects the menu bar cut and paste commands to use the clipboard.
;; This has ,? to match both on Sunos and on Solaris.