Mercurial > emacs
comparison lisp/w32-fns.el @ 42847:094039817cba
Move user variables to w32-vars.el and make them defcustoms.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sun, 20 Jan 2002 15:33:07 +0000 |
parents | 65bad70edb17 |
children | 65a061ec7803 |
comparison
equal
deleted
inserted
replaced
42846:d254de347285 | 42847:094039817cba |
---|---|
50 (defun w32-version () | 50 (defun w32-version () |
51 "Return the MS-Windows version numbers. | 51 "Return the MS-Windows version numbers. |
52 The value is a list of three integers: the major and minor version | 52 The value is a list of three integers: the major and minor version |
53 numbers, and the build number." | 53 numbers, and the build number." |
54 (x-server-version)) | 54 (x-server-version)) |
55 | |
56 (defvar w32-system-shells '("cmd" "cmd.exe" "command" "command.com" | |
57 "4nt" "4nt.exe" "4dos" "4dos.exe" | |
58 "ndos" "ndos.exe") | |
59 "List of strings recognized as Windows NT/9X system shells.") | |
60 | 55 |
61 (defun w32-using-nt () | 56 (defun w32-using-nt () |
62 "Return non-nil if literally running on Windows NT (i.e., not Windows 9X)." | 57 "Return non-nil if literally running on Windows NT (i.e., not Windows 9X)." |
63 (and (eq system-type 'windows-nt) (getenv "SystemRoot"))) | 58 (and (eq system-type 'windows-nt) (getenv "SystemRoot"))) |
64 | 59 |
79 "Return t if the interactive shell being used expects msdos shell semantics." | 74 "Return t if the interactive shell being used expects msdos shell semantics." |
80 (or (w32-system-shell-p (w32-shell-name)) | 75 (or (w32-system-shell-p (w32-shell-name)) |
81 (and (member (downcase (file-name-nondirectory (w32-shell-name))) | 76 (and (member (downcase (file-name-nondirectory (w32-shell-name))) |
82 '("cmdproxy" "cmdproxy.exe")) | 77 '("cmdproxy" "cmdproxy.exe")) |
83 (w32-system-shell-p (getenv "COMSPEC"))))) | 78 (w32-system-shell-p (getenv "COMSPEC"))))) |
84 | |
85 (defvar w32-allow-system-shell nil | |
86 "*Disable startup warning when using \"system\" shells.") | |
87 | 79 |
88 (defun w32-check-shell-configuration () | 80 (defun w32-check-shell-configuration () |
89 "Check the configuration of shell variables on Windows NT/9X. | 81 "Check the configuration of shell variables on Windows NT/9X. |
90 This function is invoked after loading the init files and processing | 82 This function is invoked after loading the init files and processing |
91 the command line arguments. It issues a warning if the user or site | 83 the command line arguments. It issues a warning if the user or site |
432 ;;; It is said that overlarge strings are slow to put into the cut buffer. | 424 ;;; It is said that overlarge strings are slow to put into the cut buffer. |
433 ;;; Note this value is overridden below. | 425 ;;; Note this value is overridden below. |
434 (defvar x-cut-buffer-max 20000 | 426 (defvar x-cut-buffer-max 20000 |
435 "Max number of characters to put in the cut buffer.") | 427 "Max number of characters to put in the cut buffer.") |
436 | 428 |
437 (defcustom x-select-enable-clipboard t | |
438 "Non-nil means cutting and pasting uses the clipboard. | |
439 This is in addition to the primary selection." | |
440 :type 'boolean | |
441 :group 'killing) | |
442 | |
443 (defun x-select-text (text &optional push) | 429 (defun x-select-text (text &optional push) |
444 "Make TEXT the last selected text. | 430 "Make TEXT the last selected text. |
445 If `x-select-enable-clipboard' is non-nil, copy the text to the system | 431 If `x-select-enable-clipboard' is non-nil, copy the text to the system |
446 clipboard as well. Optional PUSH is ignored on Windows." | 432 clipboard as well. Optional PUSH is ignored on Windows." |
447 (if x-select-enable-clipboard | 433 (if x-select-enable-clipboard |