[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error installing the elisp code
From: |
tpeplt |
Subject: |
Re: Error installing the elisp code |
Date: |
Thu, 01 May 2025 11:11:05 -0400 |
> On Thu, 1 May 2025 at 14:29, badli al rashid
> <theothernighttheotherday@gmail.com> wrote:
>>
>> hi Yuri,
>>
>> all I did was run C-x C-e, it did not work.
>
> Again: C-x C-e takes the smallest expression before the point. If you
> put point before the final closing parenthesis, you’re limiting
> evaluation to only part of what you’re thinking of.
>
Here is a simple example that should illustrate Yuri’s
point. Copy the following expression to Emacs’s *scratch*
buffer, place the cursor ON the right-most closing
parenthesis, and then type C-x C-e:
(let ((n 0))
(+ 1 n))
;; ^-- cursor placed on this parenthesis
Emacs will enter the debugger with the same TYPE of error as
you saw. Exit the debugger and place the cursor AFTER the
right-most closing parenthesis, and then type C-x C-e:
(let ((n 0))
(+ 1 n))
;; ^-- cursor placed after this parenthesis
Emacs will respond with the result 1.
Remember that you can always switch to the *scratch* buffer
and evaluate Emacs Lisp expressions. Start with small
expressions so that you can test your understanding, and
build on those to create larger expressions.
--
The lyf so short, the craft so long to lerne.
- Geoffrey Chaucer, The Parliament of Birds.
- Re: Error installing the elisp code, Yuri Khan, 2025/05/01
- Re: Error installing the elisp code, badli al rashid, 2025/05/01
- Re: Error installing the elisp code, Yuri Khan, 2025/05/01
- Re: Error installing the elisp code, badli al rashid, 2025/05/01
- Re: Error installing the elisp code,
tpeplt <=
- Re: Error installing the elisp code, badli al rashid, 2025/05/01
- Re: Error installing the elisp code, tpeplt, 2025/05/01
- Re: Error installing the elisp code, badli al rashid, 2025/05/01
- Re: Error installing the elisp code, tpeplt, 2025/05/01
- Re: Error installing the elisp code, badli al rashid, 2025/05/01