unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Using completing-read efficiently
@ 2023-08-19  2:54 Heime
  2023-08-19 20:38 ` [External] : " Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Heime @ 2023-08-19  2:54 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor


Have been using completing-read in the following way.

I customarily cycle through the COLLECTION items by repeating <down>.
Having been pointed out to me that cycling is not an efficient
way to get to something, I would like to try new ways.

One suggestion has been to sort completion candidates to tame dumb cycling. 
Being able to filter them is another.

Would I need to change the code for sorting and filtering ? It would be good 
to have some instructions on how to use such things in practice.

Another aspect has been completion against the history. I know absolutely 
nothing about history, though.

  (interactive
   (list
    (let ( (cseq '("EXTEN" "DISAB" "TABTR")) )
      (completing-read " Changeling: " cseq nil t "TABTR"))))





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

end of thread, other threads:[~2023-08-19 20:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-19  2:54 Using completing-read efficiently Heime
2023-08-19 20:38 ` [External] : " 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).