help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Splitting a list with spaces and comments


From: Pierre Rouleau
Subject: Re: Splitting a list with spaces and comments
Date: Wed, 16 Aug 2023 21:01:25 -0400

On Wed, Aug 16, 2023 at 8:26 PM Heime <heimeborgia@protonmail.com> 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 return
- Emacs will then open a window with a help buffer showing this:

setq is a special form in ‘C source code’.

(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 ‘x’ to the value of ‘(1+ y)’.
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 ‘setq’.
The return value of the ‘setq’ form is the value of the last 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.pdf
(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.

-- 
/Pierre


reply via email to

[Prev in Thread] Current Thread [Next in Thread]