[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting last-command with arguments
From: |
Nicolas Richard |
Subject: |
Re: Getting last-command with arguments |
Date: |
Fri, 13 Sep 2013 13:34:04 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
> I am conditionally repeating the last command from inside an elisp
> function. So I look at `last-command' and decide. But now I want to
> see the original arguments: say the command was, M-2 M-x my-command RET,
> then I want to know 2 was passed to `my-command'. I am not sure how I
> can do that.
The variable current-prefix-arg has that information.
hth,
--
Nicolas.