emacs hg-histedit and an alias
Uwe Brauer
oub at mat.ucm.es
Tue Oct 8 20:21:04 UTC 2024
Hi
I use histedit quite a bit, but use the following alias (not sure where
I obtainted it from)
histed = !TMP=$($HG root) $HG histedit "$@"
hg histed
Starts histedit but from the directory I start the command, so the
editor (gnuclient my case) acts in that directory and not in /tmp which
is the default
So my simple question is, what would be the command line aquivalent of
that command
hg !TMP=$($HG root) $HG histedit "$@"
Does not work
Rationale:
I use hg-histedit an emacs package that allows me to run hg histedit
from emacs.
The corresponding lisp code is
(defcustom hg-histedit-executable "hg"
"Executable for hg."
:type 'string
:group 'hg-histedit)
And then:
`(,hg-histedit-executable "histedit" "--rev" ,changeset)
`(,hg-histedit-executable "histedit"))))
So I tried to use
`(,hg-histedit-executable "!TMP=$($HG root) $HG histedit \"$@\"" "--rev" ,changeset)
`(,hg-histedit-executable "!TMP=$($HG root) $HG histedit \"$@\""))))
But this did not works since
hg !TMP=$($HG root) $HG histedit "$@"
Doe not work neither
But also my alias was ignored:
`(,hg-histedit-executable "histed" "--rev" ,changeset)
`(,hg-histedit-executable "histed"))))
So how can I run the alias directly from the command line?
--
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military.
I support the EU and NATO membership of Ukraine.
More information about the Mercurial
mailing list