Mercurial > emacs
diff lisp/eshell/esh-util.el @ 33020:e21feeab77fb
See ChangeLog
author | John Wiegley <johnw@newartisans.com> |
---|---|
date | Sun, 29 Oct 2000 05:18:48 +0000 |
parents | 8e57189d61b4 |
children | d434b679c77b |
line wrap: on
line diff
--- a/lisp/eshell/esh-util.el Sun Oct 29 04:56:45 2000 +0000 +++ b/lisp/eshell/esh-util.el Sun Oct 29 05:18:48 2000 +0000 @@ -36,6 +36,14 @@ ;;; User Variables: +(defcustom eshell-stringify-t t + "*If non-nil, the string representation of t is 't'. +If nil, t will be represented only in the exit code of the function, +and not printed as a string. This causes Lisp functions to behave +similarly to external commands, as far as successful result output." + :type 'boolean + :group 'eshell-util) + (defcustom eshell-group-file "/etc/group" "*If non-nil, the name of the group file on your system." :type '(choice (const :tag "No group file" nil) file) @@ -305,7 +313,9 @@ ((numberp object) (number-to-string object)) (t - (pp-to-string object)))) + (unless (and (eq object t) + (not eshell-stringify-t)) + (pp-to-string object))))) (defsubst eshell-stringify-list (args) "Convert each element of ARGS into a string value." @@ -611,7 +621,7 @@ (autoload 'parse-time-string "parse-time")) (eval-when-compile - (require 'ange-ftp)) + (load "ange-ftp" t)) (defun eshell-parse-ange-ls (dir) (let (entry)