[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cycle Org Shift Select

From: Christopher Dimech
Subject: Re: Cycle Org Shift Select
Date: Mon, 9 Nov 2020 21:35:14 +0100

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.

> Sent: Monday, November 09, 2020 at 9:10 PM
> From: "Michael Heerdegen" <>
> To: "Christopher Dimech" <>
> Cc: "Help Gnu Emacs" <>
> Subject: Re: Cycle Org Shift Select
> Christopher Dimech <> writes:
> > I have this code to cycle the Shift Select option for Org Mode.
> >
> > I am a little concerned that (nconc Shftsel Shftsel) will continually
> > append, rather than just cycle through the list.
> >
> > Looking for a better way to this job.
> What behavior do you want to get?  Do you want to cycling to start
> always from the same point and cycle only for repeated commands
> invocations?
> Or do you want to have a state remembered by the command (I guess so)?
> Should this then really be a global or a per-buffer or per-window state?
> Regards,
> Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]