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

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

Making table structure based on values in numeric array


From: Heime
Subject: Making table structure based on values in numeric array
Date: Sun, 06 Nov 2022 04:55:18 +0000

I want to make a table structure in the following manner.

(setq my-table
      '(("Feature"      ""  ""  "")  ; header
        ("icomplt-horz" "xxxxx" "xxxxx" "xxxx")
        ("icompt-vert"  "xxxxx" "xxxxx" "")
        ("ivy"          "xxxxx" "xxxxx" "")
        ("vertico"      "xxxxx" "" "")
        ("helm"         "" "" "")))

But the number of "xxxxx" sections depends on an array "(setq selecrt [3 2 2 1 
0])".
each number associated with the completion framework starting with 
"icomplt-horz".

3 means three sets of "xxxxx", 2 means two sets of "xxxxx", and so on.





reply via email to

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