diff options
| author | Juanma Barranquero | 2005-07-21 10:51:10 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2005-07-21 10:51:10 +0000 |
| commit | 551ea1bdb96496b1ca5aaf138c766fd970ea6620 (patch) | |
| tree | 60ec66794895ee16a9e4ea0906e693ba584d70a9 | |
| parent | 7d52483fd3909d8a169abf988a011815cf7e528a (diff) | |
| download | emacs-551ea1bdb96496b1ca5aaf138c766fd970ea6620.tar.gz emacs-551ea1bdb96496b1ca5aaf138c766fd970ea6620.zip | |
(w32-shell-name): Use `bound-and-true-p'.
(x-select-text, set-w32-system-coding-system, w32-add-charset-info):
Fix typos in docstrings.
| -rw-r--r-- | lisp/w32-fns.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el index 28f268bf623..1e7f7b3e154 100644 --- a/lisp/w32-fns.el +++ b/lisp/w32-fns.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; w32-fns.el --- Lisp routines for Windows NT | 1 | ;;; w32-fns.el --- Lisp routines for Windows NT |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1994, 2001, 2004 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1994, 2001, 2004, 2005 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Geoff Voelker <voelker@cs.washington.edu> | 5 | ;; Author: Geoff Voelker <voelker@cs.washington.edu> |
| 6 | ;; Keywords: internal | 6 | ;; Keywords: internal |
| @@ -60,7 +60,7 @@ That includes all Windows systems except for 9X/Me." | |||
| 60 | 60 | ||
| 61 | (defun w32-shell-name () | 61 | (defun w32-shell-name () |
| 62 | "Return the name of the shell being used." | 62 | "Return the name of the shell being used." |
| 63 | (or (and (boundp 'explicit-shell-file-name) explicit-shell-file-name) | 63 | (or (bound-and-true-p explicit-shell-file-name) |
| 64 | (getenv "ESHELL") | 64 | (getenv "ESHELL") |
| 65 | (getenv "SHELL") | 65 | (getenv "SHELL") |
| 66 | (and (w32-using-nt) "cmd.exe") | 66 | (and (w32-using-nt) "cmd.exe") |
| @@ -272,7 +272,7 @@ shell requires it (see `w32-shell-dos-semantics')." | |||
| 272 | (defun set-w32-system-coding-system (coding-system) | 272 | (defun set-w32-system-coding-system (coding-system) |
| 273 | "Set the coding system used by the Windows system to CODING-SYSTEM. | 273 | "Set the coding system used by the Windows system to CODING-SYSTEM. |
| 274 | This is used for things like passing font names with non-ASCII | 274 | This is used for things like passing font names with non-ASCII |
| 275 | characters in them to the system. For a list of possible values of | 275 | characters in them to the system. For a list of possible values of |
| 276 | CODING-SYSTEM, use \\[list-coding-systems]. | 276 | CODING-SYSTEM, use \\[list-coding-systems]. |
| 277 | 277 | ||
| 278 | This function is provided for backward compatibility, since | 278 | This function is provided for backward compatibility, since |
| @@ -355,8 +355,8 @@ This function is provided for backward compatibility, since | |||
| 355 | Creates entries in `w32-charset-info-alist'. | 355 | Creates entries in `w32-charset-info-alist'. |
| 356 | XLFD-CHARSET is a string which will appear in the XLFD font name to | 356 | XLFD-CHARSET is a string which will appear in the XLFD font name to |
| 357 | identify the character set. WINDOWS-CHARSET is a symbol identifying | 357 | identify the character set. WINDOWS-CHARSET is a symbol identifying |
| 358 | the Windows character set this maps to. For the list of possible | 358 | the Windows character set this maps to. For the list of possible |
| 359 | values, see the documentation for `w32-charset-info-alist'. CODEPAGE | 359 | values, see the documentation for `w32-charset-info-alist'. CODEPAGE |
| 360 | can be a numeric codepage that Windows uses to display the character | 360 | can be a numeric codepage that Windows uses to display the character |
| 361 | set, t for Unicode output with no codepage translation or nil for 8 | 361 | set, t for Unicode output with no codepage translation or nil for 8 |
| 362 | bit output with no translation." | 362 | bit output with no translation." |
| @@ -421,7 +421,7 @@ bit output with no translation." | |||
| 421 | (defun x-select-text (text &optional push) | 421 | (defun x-select-text (text &optional push) |
| 422 | "Make TEXT the last selected text. | 422 | "Make TEXT the last selected text. |
| 423 | If `x-select-enable-clipboard' is non-nil, copy the text to the system | 423 | If `x-select-enable-clipboard' is non-nil, copy the text to the system |
| 424 | clipboard as well. Optional PUSH is ignored on Windows." | 424 | clipboard as well. Optional PUSH is ignored on Windows." |
| 425 | (if x-select-enable-clipboard | 425 | (if x-select-enable-clipboard |
| 426 | (w32-set-clipboard-data text)) | 426 | (w32-set-clipboard-data text)) |
| 427 | (setq x-last-selected-text text)) | 427 | (setq x-last-selected-text text)) |