diff options
Diffstat (limited to 'lisp/eshell')
| -rw-r--r-- | lisp/eshell/esh-cmd.el | 10 | ||||
| -rw-r--r-- | lisp/eshell/esh-mode.el | 2 |
2 files changed, 2 insertions, 10 deletions
diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el index 69dc6c76b41..ef8a53f3c0b 100644 --- a/lisp/eshell/esh-cmd.el +++ b/lisp/eshell/esh-cmd.el | |||
| @@ -993,14 +993,6 @@ at the moment are: | |||
| 993 | ,@commands | 993 | ,@commands |
| 994 | (eshell-debug-command ,(concat "done " (eval tag)) form)))) | 994 | (eshell-debug-command ,(concat "done " (eval tag)) form)))) |
| 995 | 995 | ||
| 996 | (defsubst eshell-macrop (object) | ||
| 997 | "Return t if OBJECT is a macro or nil otherwise." | ||
| 998 | (and (symbolp object) (fboundp object) | ||
| 999 | (setq object (indirect-function object)) | ||
| 1000 | (listp object) | ||
| 1001 | (eq 'macro (car object)) | ||
| 1002 | (functionp (cdr object)))) | ||
| 1003 | |||
| 1004 | (defun eshell-do-eval (form &optional synchronous-p) | 996 | (defun eshell-do-eval (form &optional synchronous-p) |
| 1005 | "Evaluate form, simplifying it as we go. | 997 | "Evaluate form, simplifying it as we go. |
| 1006 | Unless SYNCHRONOUS-P is non-nil, throws `eshell-defer' if it needs to | 998 | Unless SYNCHRONOUS-P is non-nil, throws `eshell-defer' if it needs to |
| @@ -1016,7 +1008,7 @@ be finished later after the completion of an asynchronous subprocess." | |||
| 1016 | (setq form (cadr (cadr form)))) | 1008 | (setq form (cadr (cadr form)))) |
| 1017 | ;; expand any macros directly into the form. This is done so that | 1009 | ;; expand any macros directly into the form. This is done so that |
| 1018 | ;; we can modify any `let' forms to evaluate only once. | 1010 | ;; we can modify any `let' forms to evaluate only once. |
| 1019 | (if (eshell-macrop (car form)) | 1011 | (if (macrop (car form)) |
| 1020 | (let ((exp (eshell-copy-tree (macroexpand form)))) | 1012 | (let ((exp (eshell-copy-tree (macroexpand form)))) |
| 1021 | (eshell-manipulate (format "expanding macro `%s'" | 1013 | (eshell-manipulate (format "expanding macro `%s'" |
| 1022 | (symbol-name (car form))) | 1014 | (symbol-name (car form))) |
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el index 5346bd16fd2..ed5fecf09ff 100644 --- a/lisp/eshell/esh-mode.el +++ b/lisp/eshell/esh-mode.el | |||
| @@ -740,7 +740,7 @@ This is done after all necessary filtering has been done." | |||
| 740 | (if (<= (point) oend) | 740 | (if (<= (point) oend) |
| 741 | (setq oend (+ oend nchars))) | 741 | (setq oend (+ oend nchars))) |
| 742 | (insert-before-markers string) | 742 | (insert-before-markers string) |
| 743 | (if (= (window-start (selected-window)) (point)) | 743 | (if (= (window-start) (point)) |
| 744 | (set-window-start (selected-window) | 744 | (set-window-start (selected-window) |
| 745 | (- (point) nchars))) | 745 | (- (point) nchars))) |
| 746 | (if (= (point) eshell-last-input-end) | 746 | (if (= (point) eshell-last-input-end) |