[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
eshell tag 'eshell-replace-command
From: |
Leo |
Subject: |
eshell tag 'eshell-replace-command |
Date: |
Fri, 30 Apr 2010 17:14:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Hello,
I am trying to wrap git in eshell/git. Here is a minimal example to
demonstrate the problem:
(defun eshell/git (&rest args)
(throw 'eshell-replace-command
(eshell-parse-command (eshell-search-path "git") args)))
when run 'git help' in eshell, I am getting:
No catch for tag: eshell-replace-command, (progn (eshell-trap-errors
(eshell-named-command "/usr/local/bin/git" (list "help"))))
A similar construct in eshell/cat (em-unix.el) works fine. Any idea
why eshell/git fails? Thank you in advance.
Leo
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- eshell tag 'eshell-replace-command,
Leo <=