comparison lisp/eshell/esh-ext.el @ 110580:f57f72bb4757

Cosmetic doc fixes for eshell. * eshell/em-alias.el, eshell/em-banner.el, eshell/em-basic.el: * eshell/em-cmpl.el, eshell/em-dirs.el, eshell/em-glob.el: * eshell/em-hist.el, eshell/em-ls.el, eshell/em-pred.el: * eshell/em-prompt.el, eshell/em-rebind.el, eshell/em-script.el: * eshell/em-smart.el, eshell/em-term.el, eshell/em-unix.el: * eshell/esh-cmd.el, eshell/esh-ext.el, eshell/esh-io.el: * eshell/esh-mode.el, eshell/esh-proc.el, eshell/esh-test.el: * eshell/esh-util.el, eshell/esh-var.el: Remove leading `*' from docs of faces and defcustoms.
author Glenn Morris <rgm@gnu.org>
date Sat, 25 Sep 2010 14:51:55 -0700
parents 1d1d5d9bd884
children 417b1e4d63cd
comparison
equal deleted inserted replaced
110579:5fabe7db5188 110580:f57f72bb4757
1 ;;; esh-ext.el --- commands external to Eshell 1 ;;; esh-ext.el --- commands external to Eshell
2 2
3 ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 3 ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
4 ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4 ;; 2008, 2009, 2010 Free Software Foundation, Inc.
5 5
6 ;; Author: John Wiegley <johnw@gnu.org> 6 ;; Author: John Wiegley <johnw@gnu.org>
7 7
8 ;; This file is part of GNU Emacs. 8 ;; This file is part of GNU Emacs.
9 9
46 :group 'eshell) 46 :group 'eshell)
47 47
48 ;;; User Variables: 48 ;;; User Variables:
49 49
50 (defcustom eshell-ext-load-hook '(eshell-ext-initialize) 50 (defcustom eshell-ext-load-hook '(eshell-ext-initialize)
51 "*A hook that gets run when `eshell-ext' is loaded." 51 "A hook that gets run when `eshell-ext' is loaded."
52 :type 'hook 52 :type 'hook
53 :group 'eshell-ext) 53 :group 'eshell-ext)
54 54
55 (defcustom eshell-binary-suffixes exec-suffixes 55 (defcustom eshell-binary-suffixes exec-suffixes
56 "*A list of suffixes used when searching for executable files." 56 "A list of suffixes used when searching for executable files."
57 :type '(repeat string) 57 :type '(repeat string)
58 :group 'eshell-ext) 58 :group 'eshell-ext)
59 59
60 (defcustom eshell-force-execution nil 60 (defcustom eshell-force-execution nil
61 "*If non-nil, try to execute binary files regardless of permissions. 61 "If non-nil, try to execute binary files regardless of permissions.
62 This can be useful on systems like Windows, where the operating system 62 This can be useful on systems like Windows, where the operating system
63 doesn't happen to honor the permission bits in certain cases; or in 63 doesn't happen to honor the permission bits in certain cases; or in
64 cases where you want to associate an interpreter with a particular 64 cases where you want to associate an interpreter with a particular
65 kind of script file, but the language won't let you but a '#!' 65 kind of script file, but the language won't let you but a '#!'
66 interpreter line in the file, and you don't want to make it executable 66 interpreter line in the file, and you don't want to make it executable
94 (if (string-match "\\(\\`cmdproxy\\|sh\\)\\.\\(com\\|exe\\)" 94 (if (string-match "\\(\\`cmdproxy\\|sh\\)\\.\\(com\\|exe\\)"
95 shell-file-name) 95 shell-file-name)
96 (or (eshell-search-path "cmd.exe") 96 (or (eshell-search-path "cmd.exe")
97 (eshell-search-path "command.com")) 97 (eshell-search-path "command.com"))
98 shell-file-name)) 98 shell-file-name))
99 "*The name of the shell command to use for DOS/Windows batch files. 99 "The name of the shell command to use for DOS/Windows batch files.
100 This defaults to nil on non-Windows systems, where this variable is 100 This defaults to nil on non-Windows systems, where this variable is
101 wholly ignored." 101 wholly ignored."
102 :type '(choice file (const nil)) 102 :type '(choice file (const nil))
103 :group 'eshell-ext) 103 :group 'eshell-ext)
104 104
111 (eshell-parse-command eshell-windows-shell-file (cons "/c" args)))) 111 (eshell-parse-command eshell-windows-shell-file (cons "/c" args))))
112 112
113 (defcustom eshell-interpreter-alist 113 (defcustom eshell-interpreter-alist
114 (if (eshell-under-windows-p) 114 (if (eshell-under-windows-p)
115 '(("\\.\\(bat\\|cmd\\)\\'" . eshell-invoke-batch-file))) 115 '(("\\.\\(bat\\|cmd\\)\\'" . eshell-invoke-batch-file)))
116 "*An alist defining interpreter substitutions. 116 "An alist defining interpreter substitutions.
117 Each member is a cons cell of the form: 117 Each member is a cons cell of the form:
118 118
119 (MATCH . INTERPRETER) 119 (MATCH . INTERPRETER)
120 120
121 MATCH should be a regexp, which is matched against the command name, 121 MATCH should be a regexp, which is matched against the command name,
132 :type '(repeat (cons (choice regexp (function :tag "Predicate")) 132 :type '(repeat (cons (choice regexp (function :tag "Predicate"))
133 (choice string (function :tag "Interpreter")))) 133 (choice string (function :tag "Interpreter"))))
134 :group 'eshell-ext) 134 :group 'eshell-ext)
135 135
136 (defcustom eshell-alternate-command-hook nil 136 (defcustom eshell-alternate-command-hook nil
137 "*A hook run whenever external command lookup fails. 137 "A hook run whenever external command lookup fails.
138 If a functions wishes to provide an alternate command, they must throw 138 If a functions wishes to provide an alternate command, they must throw
139 it using the tag `eshell-replace-command'. This is done because the 139 it using the tag `eshell-replace-command'. This is done because the
140 substituted command need not be external at all, and therefore must be 140 substituted command need not be external at all, and therefore must be
141 passed up to a higher level for re-evaluation. 141 passed up to a higher level for re-evaluation.
142 142
145 by the user on the command line." 145 by the user on the command line."
146 :type 'hook 146 :type 'hook
147 :group 'eshell-ext) 147 :group 'eshell-ext)
148 148
149 (defcustom eshell-command-interpreter-max-length 256 149 (defcustom eshell-command-interpreter-max-length 256
150 "*The maximum length of any command interpreter string, plus args." 150 "The maximum length of any command interpreter string, plus args."
151 :type 'integer 151 :type 'integer
152 :group 'eshell-ext) 152 :group 'eshell-ext)
153 153
154 (defcustom eshell-explicit-command-char ?* 154 (defcustom eshell-explicit-command-char ?*
155 "*If this char occurs before a command name, call it externally. 155 "If this char occurs before a command name, call it externally.
156 That is, although `vi' may be an alias, `\vi' will always call the 156 That is, although `vi' may be an alias, `\vi' will always call the
157 external version." 157 external version."
158 :type 'character 158 :type 'character
159 :group 'eshell-ext) 159 :group 'eshell-ext)
160 160