From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Miele Newsgroups: gmane.emacs.help Subject: Re: Making a list of lists Date: Mon, 03 Jul 2023 18:44:04 +0200 Message-ID: <87v8f1c544.fsf@whxvd.name> References: <87jzvhdkkz.fsf@whxvd.name> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37402"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: uzibalqa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 03 18:49:55 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qGMkM-0009UP-P4 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 03 Jul 2023 18:49:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGMk8-0001Gd-1d; Mon, 03 Jul 2023 12:49:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGMk6-0001GT-Fz for help-gnu-emacs@gnu.org; Mon, 03 Jul 2023 12:49:38 -0400 Original-Received: from mout-p-102.mailbox.org ([80.241.56.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qGMk4-0001Va-PA for help-gnu-emacs@gnu.org; Mon, 03 Jul 2023 12:49:38 -0400 Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4QvsMw6Sj2z9sby; Mon, 3 Jul 2023 18:49:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whxvd.name; s=MBO0001; t=1688402972; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+O6jc5C3t+BuJDNIvWqmPjy9NSXy+k0NSM2WyASgKMs=; b=zDfzxr4vxzpLl6MecTTJdaEBtOHqTZBRWee5RAF3O6dE+gRiciyQSH4hq/XzMt4HMaL3FW ZhO5P4Eum9HYXu7QmbFeBXAQmKrLFUy2e0xykHS6P36WYMZ/94tssIE9wFCZHwB+p8QM5v SOOe44jTBjq/Bsl8jAf5ytnzd3OBbmiHjsBjXuGSSnwvVsMA/6Iz0CRT5q3y7JL8D85+sQ 3lwZO3VuHqTR45N6zX5tIbDapQYbxJrerliVOrqchbtA+qoUnDZcQIj+4nSlDUH51ITmhA IyZyOOr/XL0N07zhKe2cvR4Q5ILU2zUPcmE1x+9a1I/7S4xLJ+04O9Djiwkx+Q== In-reply-to: X-Rspamd-Queue-Id: 4QvsMw6Sj2z9sby Received-SPF: pass client-ip=80.241.56.152; envelope-from=iota@whxvd.name; helo=mout-p-102.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144097 Archived-At: > From: uzibalqa > Date: Mon, 2023-07-03 16:41 +0000 > > Suppose I have mylist, with a number of lists constructed as follows > > (setq mylist '()) > (setq entry1 (linseq "A" "B" "C")) > (setq entry2 (linseq "D" "E" "F")) > > Then how do I add entry1 and entry2, to mylist ? Examples: (setq mylist (cons entry1 (cons entry2 mylist))) (push entry2 mylist) (push entry1 mylist) (add-to-list 'mylist entry2) (add-to-list 'mylist entry1) (setq mylist `(,entry1 ,entry2 ,@mylist))