comparison lisp/eshell/esh-util.el @ 37664:74b3a3b5aa87

(eshell-convert-numeric-arguments): Annotated the documentation string to tell users about `eshell-no-numeric-conversions'.
author John Wiegley <johnw@newartisans.com>
date Thu, 10 May 2001 03:51:34 +0000
parents 7dc0e015c205
children 67b464da13ec
comparison
equal deleted inserted replaced
37663:57b1caf0c3b6 37664:74b3a3b5aa87
82 :group 'eshell-util) 82 :group 'eshell-util)
83 83
84 (defcustom eshell-convert-numeric-arguments t 84 (defcustom eshell-convert-numeric-arguments t
85 "*If non-nil, converting arguments of numeric form to Lisp numbers. 85 "*If non-nil, converting arguments of numeric form to Lisp numbers.
86 Numeric form is tested using the regular expression 86 Numeric form is tested using the regular expression
87 `eshell-number-regexp'." 87 `eshell-number-regexp'.
88
89 NOTE: If you find that numeric conversions are intefering with the
90 specification of filenames (for example, in calling `find-file', or
91 some other Lisp function that deals with files, not numbers), add the
92 following in your .emacs file:
93
94 (put 'find-file 'eshell-no-numeric-conversions t)
95
96 Any function with the property `eshell-no-numeric-conversions' set to
97 a non-nil value, will be passed strings, not numbers, even when an
98 argument matches `eshell-number-regexp'."
88 :type 'boolean 99 :type 'boolean
89 :group 'eshell-util) 100 :group 'eshell-util)
90 101
91 (defcustom eshell-number-regexp "-?\\([0-9]*\\.\\)?[0-9]+\\(e[-0-9.]+\\)?" 102 (defcustom eshell-number-regexp "-?\\([0-9]*\\.\\)?[0-9]+\\(e[-0-9.]+\\)?"
92 "*Regular expression used to match numeric arguments. 103 "*Regular expression used to match numeric arguments.