Mercurial > emacs
comparison lisp/term/x-win.el @ 91046:35069180a991
Fix up multi-tty merge
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-261
Creator: Stefan Monnier <monnier@iro.umontreal.ca>
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 12 Oct 2007 21:06:27 +0000 |
parents | bdb3fe0ba9fa |
children | 4bc33ffdda1a |
comparison
equal
deleted
inserted
replaced
91045:39ec756a9481 | 91046:35069180a991 |
---|---|
2467 (create-fontset-from-fontset-spec standard-fontset-spec t) | 2467 (create-fontset-from-fontset-spec standard-fontset-spec t) |
2468 | 2468 |
2469 ;; Create fontset specified in X resources "Fontset-N" (N is 0, 1, ...). | 2469 ;; Create fontset specified in X resources "Fontset-N" (N is 0, 1, ...). |
2470 (create-fontset-from-x-resource) | 2470 (create-fontset-from-x-resource) |
2471 | 2471 |
2472 ;; Try to create a fontset from a font specification which comes | |
2473 ;; from initial-frame-alist, default-frame-alist, or X resource. | |
2474 ;; A font specification in command line argument (i.e. -fn XXXX) | |
2475 ;; should be already in default-frame-alist as a `font' | |
2476 ;; parameter. However, any font specifications in site-start | |
2477 ;; library, user's init file (.emacs), and default.el are not | |
2478 ;; yet handled here. | |
2479 | |
2480 (let ((font (or (cdr (assq 'font initial-frame-alist)) | |
2481 (cdr (assq 'font default-frame-alist)) | |
2482 (x-get-resource "font" "Font"))) | |
2483 xlfd-fields resolved-name) | |
2484 (if (and font | |
2485 (not (query-fontset font)) | |
2486 (setq resolved-name (x-resolve-font-name font)) | |
2487 (setq xlfd-fields (x-decompose-font-name font))) | |
2488 (if (string= "fontset" (aref xlfd-fields xlfd-regexp-registry-subnum)) | |
2489 (new-fontset font (x-complement-fontset-spec xlfd-fields nil)) | |
2490 ;; Create a fontset from FONT. The fontset name is | |
2491 ;; generated from FONT. | |
2492 (create-fontset-from-ascii-font font resolved-name "startup")))) | |
2493 | |
2494 ;; Set scroll bar mode to right if set by X resources. Default is left. | 2472 ;; Set scroll bar mode to right if set by X resources. Default is left. |
2495 (if (equal (x-get-resource "verticalScrollBars" "ScrollBars") "right") | 2473 (if (equal (x-get-resource "verticalScrollBars" "ScrollBars") "right") |
2496 (customize-set-variable 'scroll-bar-mode 'right)) | 2474 (customize-set-variable 'scroll-bar-mode 'right)) |
2497 | 2475 |
2498 ;; Apply a geometry resource to the initial frame. Put it at the end | 2476 ;; Apply a geometry resource to the initial frame. Put it at the end |