aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-07-21 10:51:10 +0000
committerJuanma Barranquero2005-07-21 10:51:10 +0000
commit551ea1bdb96496b1ca5aaf138c766fd970ea6620 (patch)
tree60ec66794895ee16a9e4ea0906e693ba584d70a9
parent7d52483fd3909d8a169abf988a011815cf7e528a (diff)
downloademacs-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.el12
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.
274This is used for things like passing font names with non-ASCII 274This is used for things like passing font names with non-ASCII
275characters in them to the system. For a list of possible values of 275characters in them to the system. For a list of possible values of
276CODING-SYSTEM, use \\[list-coding-systems]. 276CODING-SYSTEM, use \\[list-coding-systems].
277 277
278This function is provided for backward compatibility, since 278This function is provided for backward compatibility, since
@@ -355,8 +355,8 @@ This function is provided for backward compatibility, since
355Creates entries in `w32-charset-info-alist'. 355Creates entries in `w32-charset-info-alist'.
356XLFD-CHARSET is a string which will appear in the XLFD font name to 356XLFD-CHARSET is a string which will appear in the XLFD font name to
357identify the character set. WINDOWS-CHARSET is a symbol identifying 357identify the character set. WINDOWS-CHARSET is a symbol identifying
358the Windows character set this maps to. For the list of possible 358the Windows character set this maps to. For the list of possible
359values, see the documentation for `w32-charset-info-alist'. CODEPAGE 359values, see the documentation for `w32-charset-info-alist'. CODEPAGE
360can be a numeric codepage that Windows uses to display the character 360can be a numeric codepage that Windows uses to display the character
361set, t for Unicode output with no codepage translation or nil for 8 361set, t for Unicode output with no codepage translation or nil for 8
362bit output with no translation." 362bit 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.
423If `x-select-enable-clipboard' is non-nil, copy the text to the system 423If `x-select-enable-clipboard' is non-nil, copy the text to the system
424clipboard as well. Optional PUSH is ignored on Windows." 424clipboard 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))