all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Heime <heimeborgia@protonmail.com>
To: Jean Louis <bugs@gnu.support>
Cc: Heime via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Re: Making table structure based on values in numeric array
Date: Sun, 06 Nov 2022 08:48:00 +0000	[thread overview]
Message-ID: <KLiIzUOAyllu9mVBFKN4xFCKQ8Gn257LmmdUGbP1kiTSV0XGtWHtACByCx8u50wpNBO1uXNqlAZBfapKl1SYRhnGCGbNxQY1DzJrsNCqQgU=@protonmail.com> (raw)
In-Reply-To: <Y2da18TD3wOd9sKL@protected.localdomain>

------- Original Message -------
On Sunday, November 6th, 2022 at 6:57 AM, Jean Louis <bugs@gnu.support> wrote:


> * Heime heimeborgia@protonmail.com [2022-11-06 07:57]:
> 
> > 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.
> 
> 
> I gave you full set of functions on the Org mailing list.  

Right.  I liked it very much.

I want to do something more sophisticated with it.  One of these sophistications 
is  to make a row depend on some parameters (on an array in one case).

> The above i can't understand.

I have three columns after the description in each of the first column.
 
> The number "xxxxx" is number as string?

No, it is just something to fill the cell.  Can be "######", "----------", or
any other cell filler. 
 
> How does "xxxxx" depend on array?

First array number means fill first row.  Then use number to fill number of cells in row.
Second array number means fill second row. Then use number to fill number of cells in row.

For instance (setq selectr [3 2 2 1 0]) means

On first row, fill three cells with "xxxxx" to get

("icomplt-horz" "xxxxx" "xxxxx" "xxxx")  ; using (nth 0 selectr)

On second row, fill two cells with "xxxxx" to get

("icompt-vert" "xxxxx" "xxxxx" "")    ; using (nth 1 selectr)


> Sorry, for me, I can't understand the above.
> 
> --
> Jean
> 
> Take action in Free Software Foundation campaigns:
> https://www.fsf.org/campaigns
> 
> In support of Richard M. Stallman
> https://stallmansupport.org/



      reply	other threads:[~2022-11-06  8:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-06  4:55 Making table structure based on values in numeric array Heime
2022-11-06  6:57 ` Jean Louis
2022-11-06  8:48   ` Heime [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='KLiIzUOAyllu9mVBFKN4xFCKQ8Gn257LmmdUGbP1kiTSV0XGtWHtACByCx8u50wpNBO1uXNqlAZBfapKl1SYRhnGCGbNxQY1DzJrsNCqQgU=@protonmail.com' \
    --to=heimeborgia@protonmail.com \
    --cc=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.