* eshell tag 'eshell-replace-command
@ 2010-04-30 16:14 Leo
0 siblings, 0 replies; only message in thread
From: Leo @ 2010-04-30 16:14 UTC (permalink / raw
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-04-30 16:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-30 16:14 eshell tag 'eshell-replace-command Leo
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.