Function: eshell-parse-lisp-argument

eshell-parse-lisp-argument is a byte-compiled function defined in esh-cmd.el.gz.

Signature

(eshell-parse-lisp-argument)

Documentation

Parse a Lisp expression which is specified as an argument.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defun eshell-parse-lisp-argument ()
  "Parse a Lisp expression which is specified as an argument."
  (if (and (not eshell-current-argument)
	   (not eshell-current-quoted)
	   (looking-at eshell-lisp-regexp))
      (let* ((here (point))
	     (obj
	      (condition-case nil
		  (read (current-buffer))
		(end-of-file
                 (throw 'eshell-incomplete "(")))))
	(if (eshell-arg-delimiter)
	    `(eshell-lisp-command (quote ,obj))
	  (ignore (goto-char here))))))