help-gnu-emacs
[Top][All Lists]
Advanced

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

Make completing-read pick item after initial


From: Heime
Subject: Make completing-read pick item after initial
Date: Wed, 10 Apr 2024 23:14:59 +0000

How can I make completing-read start from an initial "Gramma", but rather than
starting from "Greek" as the next item, it continues with the next one, namely
"Flokki".  But I would like to retain the order of cseq as "Greek"  "Gramma"  
"Flokki" rather than changing it.

(defun avus-latex (seltr)
  "Display the full documentation of `avus-ams' tools."

  (interactive
    (list
      (let ( (cseq '("Greek"  "Gramma"  "Flokki")) )
        (completing-read "Doc: " cseq nil t "Gramma"))))

  (describe-function (pcase seltr
                       ("Greek"   'avus-latex-greek)
                       ("Gramma"  'avus-latex-gramma)
                       ("Flokki"  'avus-latex-flokki))) )



reply via email to

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