all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: uzibalqa <uzibalqa@proton.me>
To: uzibalqa via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Looping through arguments &rest
Date: Mon, 03 Jul 2023 20:32:25 +0000	[thread overview]
Message-ID: <JH8KodJy5ttJwSt_vYreSltI5ntEjQfZRn_QgGX-wb_yVc9er47PRgnVGcDqHgQRjJvt__02TLYhXujWuNYXIzryIB26vvobSKLhjlkzFsE=@proton.me> (raw)

Why does "attach" keep "chart" nil

(setq chart '())
(setq entry1 '("A" "B" "C"))
(setq entry2 '("D" "E" "F"))

(defun attach (chart &rest linsq)
  "TODO"
  (dolist (tbrow linsq)
    (push tbrow chart)))

I want to have the equivalent to

(push entry1 chart)
(push entry2 chart)





             reply	other threads:[~2023-07-03 20:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-03 20:32 uzibalqa [this message]
2023-07-03 21:40 ` Looping through arguments &rest Stephen Berman
2023-07-03 22:24   ` uzibalqa

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='JH8KodJy5ttJwSt_vYreSltI5ntEjQfZRn_QgGX-wb_yVc9er47PRgnVGcDqHgQRjJvt__02TLYhXujWuNYXIzryIB26vvobSKLhjlkzFsE=@proton.me' \
    --to=uzibalqa@proton.me \
    --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.