From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pierre Rouleau Newsgroups: gmane.emacs.help Subject: Re: Splitting a list with spaces and comments Date: Wed, 16 Aug 2023 21:01:25 -0400 Message-ID: References: <8keWxSvGIuVfCOdxTwjgegxipTC3qNBou-tu2B5oU0kKROx8jS1_4ljfqn-SxZvcBDPC6wrjpWCYBJnzM0QwuG5DRXL1H9FX8hkvq0uCNhA=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6369"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 17 03:02:22 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 1qWRP3-0001TK-Qj for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 17 Aug 2023 03:02:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWROT-0007sN-SO; Wed, 16 Aug 2023 21:01:45 -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 1qWROO-0007rq-L9 for help-gnu-emacs@gnu.org; Wed, 16 Aug 2023 21:01:40 -0400 Original-Received: from mail-vk1-xa2f.google.com ([2607:f8b0:4864:20::a2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qWROL-0002o2-TL for help-gnu-emacs@gnu.org; Wed, 16 Aug 2023 21:01:40 -0400 Original-Received: by mail-vk1-xa2f.google.com with SMTP id 71dfb90a1353d-48a6164cccdso495491e0c.3 for ; Wed, 16 Aug 2023 18:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692234096; x=1692838896; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5dyl60QWN50g+JHpBLuumzhJ2R1LWmfCz7hU4KrPyOs=; b=iNeLEu2+WPPvPJQ3wOQ+I+LsJaLPX0LR1RU3rfiLuWnQUU/uvegkrNebzSf0rd1KE6 eL6qIHpsiQNH94wyr6Obo/REbv8oXhQ9KOyZmdoYBnQjDzrh0DeOnR+YKH4NQTl/+4/f FHrVqWlr7iOOhV/jwmm88lllZl6HI6LtqUbQ0MYUeasHRBeBCM2CUdP8x9C2sWpd29tT n+w6OExHWxHEIhh/pa+g0lKOqKxViiKJgxugLAHNsg2NOYkwDTbpnjkRJPGeg5xrd3aK zOfdA/Hf1oOKzdcGy2oZgkl1j/S7Vz9B8Qo4cjskY2SKg+pnzYYzRNhrp+D6PDywZFqq 5Gpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692234096; x=1692838896; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5dyl60QWN50g+JHpBLuumzhJ2R1LWmfCz7hU4KrPyOs=; b=gmVrSoEiTnYy/n0gbSE15yM3priZSO0sxnGV5rVNZwlDPO0anzjdAq8pw+9WobaiIt ifBYuwAZWPUxbqZn+z62u2mTck/zyYDTRqoeFs8pf4wC0cvFVYWDNfYtF+JCJkOFkpdt GJ/c1rLzfnKycONj2uCsXv+a2gePBJe9a4VQ/+liBeX7jMT3YSjBxfClVIX1CbVYf2j9 hdENUXQfv4RW/xWuyVrXfsfP979BnqQ4aI/vL4pXz4vaM2mSSoI3AHtyXazyPi7RdkuR p4bkJEARP7rtA5AbwKagYvLmzwfvLSU0DO75bhtrcCmiLseEpy5aWMszD2ZPYFs6eHGC VPmg== X-Gm-Message-State: AOJu0YzMY476UBD14TzKQuuQ5pw6+0AonwpX7wM5kBsjqKmDULy2Ll2N pjFSSpDKQL9FI9HSVhT3YZ+gvsDhxXgoDRCdAB8= X-Google-Smtp-Source: AGHT+IGr11QtvWS+EPajBN6gpLewT+AiNlZdUrAgz9SRttEA28aSwVy47g/ddO6sZMY/HtWlj0pkEkDd9NnXyunc8L8= X-Received: by 2002:a67:fa4f:0:b0:44a:c014:dae9 with SMTP id j15-20020a67fa4f000000b0044ac014dae9mr2444341vsq.31.1692234096246; Wed, 16 Aug 2023 18:01:36 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::a2f; envelope-from=prouleau001@gmail.com; helo=mail-vk1-xa2f.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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.29 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:144842 Archived-At: On Wed, Aug 16, 2023 at 8:26=E2=80=AFPM Heime = wrote: > > Much appreciate showing me how to use ielm for this. > You're welcome. ielm, along with the help that comes with each EMacs Lisp function will help you a lot. You can request help for any function by typing 'C-h f' For example, if you want to see more information about the setq special form, you: - type: 'C-h f' - Emacs will prompt at the bottom of the screen: type 'setq' then hit retur= n - Emacs will then open a window with a help buffer showing this: setq is a special form in =E2=80=98C source code=E2=80=99. (setq [SYM VAL]...) Set each SYM to the value of its VAL. The symbols SYM are variables; they are literal (not evaluated). The values VAL are expressions; they are evaluated. Thus, (setq x (1+ y)) sets =E2=80=98x=E2=80=99 to the value of =E2=80=98(1+= y)=E2=80=99. The second VAL is not computed until after the first SYM is set, and so on; each VAL can use the new value of variables set earlier in the =E2=80=98set= q=E2=80=99. The return value of the =E2=80=98setq=E2=80=99 form is the value of the las= t VAL. You will also see some highlighted words. They are links that will show other info. If you have installed Emacs C source code, there will also be a link that will lead you to the C source code for this special form. If you request help for something implemented in Emacs Lisp the link will lead to the source code of that function. You can also request help for other things, like keys (C-h k), any symbol (C-h o) , the coding system (C-h C), etc... All of this information is in Emacs manual (internally to Emacs, or outside in the Web-based manual (ie: https://www.gnu.org/software/emacs/manual/html_node/emacs/Help.html#Help ). I also have built a set of PDF files with lots of links when I first learned Emacs (I find it helped me to remember things). The page describing help is here: https://raw.githubusercontent.com/pierre-rouleau/pel/master/doc/pdf/help.pd= f (access it with a browser that can render PDF if you want to use the links easily. I think it can be done within Emacs running in graphics mode, but I mostly use terminal-based Emacs for various reasons). It will help you a lot to go through the help. It will influence your design ideas for the better. --=20 /Pierre