[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cycle Org Shift Select
From: |
Michael Heerdegen |
Subject: |
Re: Cycle Org Shift Select |
Date: |
Mon, 09 Nov 2020 22:18:48 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Christopher Dimech <dimech@gmx.com> writes:
> It can always start from the first item in the list. Then I can
> check if (eq last-command this-command). That is, if the user calls
> same command it will cycle. Can start with the first item in the list,
> and when I get to the last, get back to the beginning.
I would just use a special variable (defined globally with `defvar') to
store your cyclic list.
Then your command can just `pop' to get the next state. If you want the
command can reinitialize the variable if (not (eq last-command
this-command)).
Michael.
RE: Cycle Org Shift Select, Drew Adams, 2020/11/10
Re: Cycle Org Shift Select, Michael Heerdegen, 2020/11/09