unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Continue cycling from a particular element in collection
@ 2023-08-22  7:39 Heime
  2023-08-22 16:04 ` [External] : " Drew Adams
  2023-08-22 21:20 ` Drew Adams
  0 siblings, 2 replies; 10+ messages in thread
From: Heime @ 2023-08-22  7:39 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor


I am using 'completing-read' with INITIAL-INPUT to prefill the minibuffer with
the first entry "alpha".  Hew can I then start at index k from collection as the 
next entry.

Thus, initially I have the minibuffer prefilled with "alpha", and after that I get the 
cycling continue from "gamma".

Thus the cycling would be "alpha" "gamma" "theta" "alpha" "beta" and so on.

  (interactive
    (let ( (csel '("alpha" "beta" "gamma" "theta"))
      (list
        (completing-read "Imprint: " csel nil t "alpha")) ))





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-08-22 21:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-22  7:39 Continue cycling from a particular element in collection Heime
2023-08-22 16:04 ` [External] : " Drew Adams
2023-08-22 20:41   ` Heime
2023-08-22 21:04     ` Drew Adams
2023-08-22 21:11       ` Heime
2023-08-22 21:21         ` Heime
2023-08-22 21:27           ` Drew Adams
2023-08-22 21:45             ` Heime
2023-08-22 21:23         ` Drew Adams
2023-08-22 21:20 ` Drew Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).