[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Elisp - quoting or not?
From: |
An Liu |
Subject: |
Re: Elisp - quoting or not? |
Date: |
Sat, 5 Dec 2020 07:12:59 +0100 |
sorry, typo
abcd `(ab cd) should be
abcd `(,ab ,cd)
On Sat, Dec 5, 2020 at 7:12 AM An Liu <sourceonly@gmail.com> 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