From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: An Liu Newsgroups: gmane.emacs.help Subject: Re: Elisp - quoting or not? Date: Sat, 5 Dec 2020 07:12:59 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34406"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: David Masterson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 05 07:14:45 2020 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 1klQqD-0008rb-9h for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 07:14:45 +0100 Original-Received: from localhost ([::1]:44964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klQqC-0004Hv-8k for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 01:14:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klQoj-0004GS-DC for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 01:13:13 -0500 Original-Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]:34324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klQoh-00085g-Vs for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 01:13:13 -0500 Original-Received: by mail-io1-xd35.google.com with SMTP id i18so8113359ioa.1 for ; Fri, 04 Dec 2020 22:13:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3pHBuW8fDYyhzoSn56Y6GgyWQ2kPL4tUa58T21HGB6A=; b=FJMQZoOFHq8lsBusMPwcJP+bw6MJfBQEdJ+LH5rOxiRZYbbHyk3DPpS7Ga6BjTJCdV ZhuJcsD0EyeT6IKHWhQDR0rrGAXC2NADdQF1QWaKEldMFiJcHaizV/s7BLLa/Zj0g/w3 w6PUhwa1jN+I9KBs+5tCE6uFwT/659hG5T2d8vroBHfMSL86LdvNeenBEul/j9xjsrpk NviEjgr6JuO3Zk5g+S2VArzPKZmlmP/fFOrEtuC4H3ashyYfzV6CN+Qai+YHHKjkjCZS z2TruqYlZzA8i5IQBmhxJzRRTlpl9DemFMZ6A1DTYoUfn8zboA1PoHRDatXj9a9bSgH3 bPMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3pHBuW8fDYyhzoSn56Y6GgyWQ2kPL4tUa58T21HGB6A=; b=Ljglxmmr+sN4X99xNMTPhEDc95LieRHRtJ8pImsk0be6VieW3bUNNOwNYZt9rwes4H FsWcDpJqyIj10v8Z2LVOSHMQacDuUfRdfZjOV/8OxYU7z5oeIICEPi6Ij0OEsUwqz9jp xRlecNU1EPU6jvnV1kPJzL/wEuLSC4YbtdwfpEraP78fEREyv8kiDaaSMCTvDw14cQxR aZd6b8uhY8TAriYn5Fhz/HTZeyJ7TDOF9KBZBlUs1dWWDAP5ZsolrJltiUpTS75hEISs m9a1+MyysEUc4izrjkUJtJ+1d4mhokor/1KNqXqUzr/OG4eLMmwsFEAiy81OwR8ZNzAt p5rg== X-Gm-Message-State: AOAM533ghvTxhyReDctFtEi6U0oimE6AnZLQD69aJ3zck6JkwUtktAIC iJa3pidUcpP9ZENpQGiFkNLSCuyQjRHhSJRr2hE= X-Google-Smtp-Source: ABdhPJyRcI13CfHSzRb2Wl+HYv6WhO1Fj0vwPUXjONqfavvG4KX3LGLc6pK2fxE9f7apEH8zPkvWd8RK/U8KQcfuACI= X-Received: by 2002:a02:82cb:: with SMTP id u11mr10589569jag.0.1607148790653; Fri, 04 Dec 2020 22:13:10 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::d35; envelope-from=sourceonly@gmail.com; helo=mail-io1-xd35.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:126006 Archived-At: sorry, typo abcd `(ab cd) should be abcd `(,ab ,cd) On Sat, Dec 5, 2020 at 7:12 AM An Liu wrote: > Hi, > is it what you want? > > (setq ab '("a". "b") > cd '("c". "d") > abcd `(ab cd)) > > > On Sat, Dec 5, 2020 at 6:16 AM David Masterson < > dsmasterson92630@outlook.com> wrote: > >> I give up -- what's the proper way of doing this? >> >> (setq ab '("a" . "b") >> cd '("c" . "d") >> abcd '(ab cd)) >> >> What I want is a result for abcd to be '(("a" . "b") ("c" . "d")). I >> imagine I need to use cons/car/cdr, but I'm not sure how. >> >> -- >> David Masterson >> >> > > -- > Liu An > -- Liu An