diff options
| -rw-r--r-- | lisp/term/pc-win.el | 41 |
1 files changed, 17 insertions, 24 deletions
diff --git a/lisp/term/pc-win.el b/lisp/term/pc-win.el index e1fb6882a89..b5a0e98ba3d 100644 --- a/lisp/term/pc-win.el +++ b/lisp/term/pc-win.el | |||
| @@ -348,20 +348,20 @@ | |||
| 348 | ;; From src/xfns.c | 348 | ;; From src/xfns.c |
| 349 | (defun x-display-color-p (&optional display) 't) | 349 | (defun x-display-color-p (&optional display) 't) |
| 350 | (defun x-list-fonts (pattern &optional face frame maximum width) | 350 | (defun x-list-fonts (pattern &optional face frame maximum width) |
| 351 | (if (and (numberp width) (= width 1)) | 351 | (if (or (null width) (and (numberp width) (= width 1))) |
| 352 | (list "default") | 352 | (list "ms-dos") |
| 353 | (list "no-such-font"))) | 353 | (list "no-such-font"))) |
| 354 | (defun x-color-defined-p (color) (numberp (msdos-color-translate color))) | 354 | (defun x-color-defined-p (color) (numberp (msdos-color-translate color))) |
| 355 | (defun x-display-pixel-width (&optional frame) (frame-width frame)) | 355 | (defun x-display-pixel-width (&optional frame) (frame-width frame)) |
| 356 | (defun x-display-pixel-height (&optional frame) (frame-height frame)) | 356 | (defun x-display-pixel-height (&optional frame) (frame-height frame)) |
| 357 | (defun x-display-planes (&optional frame) 4) ; 3 for background, actually | 357 | (defun x-display-planes (&optional frame) 4) ;bg switched to 16 colors as well |
| 358 | (defun x-display-color-cells (&optional frame) 16) ; ??? | 358 | (defun x-display-color-cells (&optional frame) 16) |
| 359 | (defun x-server-max-request-size (&optional frame) 1000000) ; ??? | 359 | (defun x-server-max-request-size (&optional frame) 1000000) ; ??? |
| 360 | (defun x-server-vendor (&optional frame) t "GNU") | 360 | (defun x-server-vendor (&optional frame) t "GNU") |
| 361 | (defun x-server-version (&optional frame) '(1 0 0)) | 361 | (defun x-server-version (&optional frame) '(1 0 0)) |
| 362 | (defun x-display-screens (&optional frame) 1) | 362 | (defun x-display-screens (&optional frame) 1) |
| 363 | (defun x-display-mm-height (&optional frame) 200) ; Guess the size of my | 363 | (defun x-display-mm-height (&optional frame) 245) ; Guess the size of my |
| 364 | (defun x-display-mm-width (&optional frame) 253) ; monitor, MW... | 364 | (defun x-display-mm-width (&optional frame) 322) ; monitor, EZ... |
| 365 | (defun x-display-backing-store (&optional frame) 'not-useful) | 365 | (defun x-display-backing-store (&optional frame) 'not-useful) |
| 366 | (defun x-display-visual-class (&optional frame) 'static-color) | 366 | (defun x-display-visual-class (&optional frame) 'static-color) |
| 367 | (fset 'x-display-save-under 'ignore) | 367 | (fset 'x-display-save-under 'ignore) |
| @@ -380,22 +380,7 @@ If FRAME is omitted or nil, use the selected frame." | |||
| 380 | ;; From lisp/term/x-win.el | 380 | ;; From lisp/term/x-win.el |
| 381 | (setq x-display-name "pc") | 381 | (setq x-display-name "pc") |
| 382 | (setq split-window-keep-point t) | 382 | (setq split-window-keep-point t) |
| 383 | (defvar x-colors '("black" | 383 | (defvar x-colors (mapcar 'car msdos-color-values) |
| 384 | "blue" | ||
| 385 | "green" | ||
| 386 | "cyan" | ||
| 387 | "red" | ||
| 388 | "magenta" | ||
| 389 | "brown" | ||
| 390 | "lightgray" | ||
| 391 | "darkgray" | ||
| 392 | "lightblue" | ||
| 393 | "lightgreen" | ||
| 394 | "lightcyan" | ||
| 395 | "lightred" | ||
| 396 | "lightmagenta" | ||
| 397 | "yellow" | ||
| 398 | "white") | ||
| 399 | "The list of colors available on a PC display under MS-DOS.") | 384 | "The list of colors available on a PC display under MS-DOS.") |
| 400 | (defun x-defined-colors (&optional frame) | 385 | (defun x-defined-colors (&optional frame) |
| 401 | "Return a list of colors supported for a particular frame. | 386 | "Return a list of colors supported for a particular frame. |
| @@ -420,8 +405,7 @@ The value may be different for frames on different X displays." | |||
| 420 | (defvar x-last-selected-text nil) | 405 | (defvar x-last-selected-text nil) |
| 421 | 406 | ||
| 422 | (defvar x-select-enable-clipboard t | 407 | (defvar x-select-enable-clipboard t |
| 423 | "Non-nil means cutting and pasting uses the clipboard. | 408 | "Non-nil means cutting and pasting uses the clipboard.") |
| 424 | This is in addition to the primary selection.") | ||
| 425 | 409 | ||
| 426 | (defun x-select-text (text &optional push) | 410 | (defun x-select-text (text &optional push) |
| 427 | (if x-select-enable-clipboard | 411 | (if x-select-enable-clipboard |
| @@ -457,6 +441,15 @@ This is in addition to the primary selection.") | |||
| 457 | ;; it, no matter which variety they've asked for. | 441 | ;; it, no matter which variety they've asked for. |
| 458 | (defun x-frob-font-slant (font which) | 442 | (defun x-frob-font-slant (font which) |
| 459 | font) | 443 | font) |
| 444 | (defun x-frob-font-weight (font which) | ||
| 445 | font) | ||
| 446 | (defun x-font-family-list () | ||
| 447 | "Return a list of available font families on FRAME.\n\ | ||
| 448 | If FRAME is omitted or nil, use the selected frame.\n\ | ||
| 449 | Value is a list of conses (FAMILY . FIXED-P) where FAMILY\n\ | ||
| 450 | is a font family, and FIXED-P is non-nil if fonts of that family\n\ | ||
| 451 | are fixed-pitch." | ||
| 452 | '(("default" . t))) | ||
| 460 | 453 | ||
| 461 | ;; From src/fontset.c: | 454 | ;; From src/fontset.c: |
| 462 | (fset 'query-fontset 'ignore) | 455 | (fset 'query-fontset 'ignore) |