The following message is a courtesy copy of an article
that has been posted to comp.emacs.xemacs as well.
>>>> "Klaus" == Klaus Berndl
<klaus.berndl(a)sdm.de> writes:
Klaus> Regardless which interactive command XXX i call via M-x XXX
Klaus> RET i always get `minibuffer-complete-and-exit' as content
Klaus> of `this-command' in the `pre-command-hook' direct before
Klaus> running XXX.
Klaus> Sure, this is not against the documentation of
Klaus> `this-command' but now I'm wondering how can i get the name
Klaus> "XXX" in the `pre-command-hook' direct before XXX runs?
Klaus> Seems that `this-command' is not what i need ;-)
Try `last-command'. However, it's possible that what should really
happen is that `minibuffer-complete-and-exit' should be fixed to setq
this-command last-command. So make sure you comment this work-around
well.
Cc'ing xemacs-beta to get (maybe) more-informed opinions.
MFT xemacs-beta(a)xemacs.org.
--
Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Ask not how you can "do" free software business;
ask what your business can "do for" free software.