all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ielm not described in: An Introduction to Programming in Emacs Lisp
@ 2020-12-17  2:13 steve-humphreys
  2020-12-18 10:18 ` Philip K.
  0 siblings, 1 reply; 6+ messages in thread
From: steve-humphreys @ 2020-12-17  2:13 UTC (permalink / raw)
  To: Help Gnu Emacs


ielm not described in: An Introduction to Programming in Emacs Lisp.

Yet there are many reasons for beginners to use ielm.  Have some
examples and beginners will get more productive using it as they
delve into new things.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ielm not described in: An Introduction to Programming in Emacs Lisp
  2020-12-17  2:13 ielm not described in: An Introduction to Programming in Emacs Lisp steve-humphreys
@ 2020-12-18 10:18 ` Philip K.
  2020-12-18 10:30   ` steve-humphreys
  2020-12-18 10:39   ` steve-humphreys
  0 siblings, 2 replies; 6+ messages in thread
From: Philip K. @ 2020-12-18 10:18 UTC (permalink / raw)
  To: steve-humphreys; +Cc: Help Gnu Emacs

steve-humphreys@gmx.com writes:

> ielm not described in: An Introduction to Programming in Emacs Lisp.
>
> Yet there are many reasons for beginners to use ielm.  Have some
> examples and beginners will get more productive using it as they
> delve into new things.

I guess it's not mentioned, because it is not necessary, and at least to
my knowledge, most people will be using C-x C-e (eval-last-sexp) and
C-M-x (eval-defun) in the *scratch* buffer. Using a REPL, when you can
evaluate any part of a buffer seems like a step back to me.

But I guess there would be no harm in mentioning it.

-- 
	Philip K.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ielm not described in: An Introduction to Programming in Emacs Lisp
  2020-12-18 10:18 ` Philip K.
@ 2020-12-18 10:30   ` steve-humphreys
  2020-12-18 10:52     ` Robert Pluim
  2020-12-18 10:39   ` steve-humphreys
  1 sibling, 1 reply; 6+ messages in thread
From: steve-humphreys @ 2020-12-18 10:30 UTC (permalink / raw)
  To: Philip K.; +Cc: Help Gnu Emacs

> Sent: Friday, December 18, 2020 at 11:18 AM
> From: "Philip K." <philipk@posteo.net>
> To: steve-humphreys@gmx.com
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: ielm not described in: An Introduction to Programming in Emacs Lisp
>
> steve-humphreys@gmx.com writes:
>
> > ielm not described in: An Introduction to Programming in Emacs Lisp.
> >
> > Yet there are many reasons for beginners to use ielm.  Have some
> > examples and beginners will get more productive using it as they
> > delve into new things.
>
> I guess it's not mentioned, because it is not necessary, and at least to
> my knowledge, most people will be using C-x C-e (eval-last-sexp) and
> C-M-x (eval-defun) in the *scratch* buffer. Using a REPL, when you can
> evaluate any part of a buffer seems like a step back to me.

I think ielm has more features than just plain evaluation.

> But I guess there would be no harm in mentioning it.

But also show a couple of actual examples with real code.

> --
> 	Philip K.
>
>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ielm not described in: An Introduction to Programming in Emacs Lisp
  2020-12-18 10:18 ` Philip K.
  2020-12-18 10:30   ` steve-humphreys
@ 2020-12-18 10:39   ` steve-humphreys
  1 sibling, 0 replies; 6+ messages in thread
From: steve-humphreys @ 2020-12-18 10:39 UTC (permalink / raw)
  To: Philip K.; +Cc: Help Gnu Emacs



> Sent: Friday, December 18, 2020 at 11:18 AM
> From: "Philip K." <philipk@posteo.net>
> To: steve-humphreys@gmx.com
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: ielm not described in: An Introduction to Programming in Emacs Lisp
>
> steve-humphreys@gmx.com writes:
> 
> > ielm not described in: An Introduction to Programming in Emacs Lisp.
> >
> > Yet there are many reasons for beginners to use ielm.  Have some
> > examples and beginners will get more productive using it as they
> > delve into new things.
> 
> I guess it's not mentioned, because it is not necessary, and at least to
> my knowledge, most people will be using C-x C-e (eval-last-sexp) and
> C-M-x (eval-defun) in the *scratch* buffer. Using a REPL, when you can
> evaluate any part of a buffer seems like a step back to me.

I don't know the details, but someone mentioned it to me whilst I was 
learning about defvar, setq, and setq within a "let" construct.

Do you plan to continue suporting ielm?  If yes, include it in the Intro,
as I know a few people who did not know about it.  
 
If you type C-c C-b you can change ielm’s working buffer to one
of your choosing and then all the code you evaluate thereafter
will be treated as if you executed it in the context of that
buffer. This functionality comes in handy if you are dealing with
buffer-local variables or changes that’re specific to one buffer
only. Very, very powerful.

> But I guess there would be no harm in mentioning it.
> 
> -- 
> 	Philip K.
> 
>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ielm not described in: An Introduction to Programming in Emacs Lisp
  2020-12-18 10:30   ` steve-humphreys
@ 2020-12-18 10:52     ` Robert Pluim
  2020-12-18 11:03       ` steve-humphreys
  0 siblings, 1 reply; 6+ messages in thread
From: Robert Pluim @ 2020-12-18 10:52 UTC (permalink / raw)
  To: steve-humphreys; +Cc: Philip K., Help Gnu Emacs

steve-humphreys@gmx.com writes:

>> Sent: Friday, December 18, 2020 at 11:18 AM
>> From: "Philip K." <philipk@posteo.net>
>> To: steve-humphreys@gmx.com
>> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
>> Subject: Re: ielm not described in: An Introduction to Programming in Emacs Lisp
>>
>> steve-humphreys@gmx.com writes:
>>
>> > ielm not described in: An Introduction to Programming in Emacs Lisp.
>> >
>> > Yet there are many reasons for beginners to use ielm.  Have some
>> > examples and beginners will get more productive using it as they
>> > delve into new things.
>>
>> I guess it's not mentioned, because it is not necessary, and at least to
>> my knowledge, most people will be using C-x C-e (eval-last-sexp) and
>> C-M-x (eval-defun) in the *scratch* buffer. Using a REPL, when you can
>> evaluate any part of a buffer seems like a step back to me.
>
> I think ielm has more features than just plain evaluation.
>

The one I use most is `ielm-change-working-buffer', which is massively
convenient, and not documented anywhere I can see.

Robert



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ielm not described in: An Introduction to Programming in Emacs Lisp
  2020-12-18 10:52     ` Robert Pluim
@ 2020-12-18 11:03       ` steve-humphreys
  0 siblings, 0 replies; 6+ messages in thread
From: steve-humphreys @ 2020-12-18 11:03 UTC (permalink / raw)
  To: Robert Pluim; +Cc: Philip K., Help Gnu Emacs



> Sent: Friday, December 18, 2020 at 11:52 AM
> From: "Robert Pluim" <rpluim@gmail.com>
> To: steve-humphreys@gmx.com
> Cc: "Philip K." <philipk@posteo.net>, "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: ielm not described in: An Introduction to Programming in Emacs Lisp
>
> steve-humphreys@gmx.com writes:
>
> >> Sent: Friday, December 18, 2020 at 11:18 AM
> >> From: "Philip K." <philipk@posteo.net>
> >> To: steve-humphreys@gmx.com
> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> Subject: Re: ielm not described in: An Introduction to Programming in Emacs Lisp
> >>
> >> steve-humphreys@gmx.com writes:
> >>
> >> > ielm not described in: An Introduction to Programming in Emacs Lisp.
> >> >
> >> > Yet there are many reasons for beginners to use ielm.  Have some
> >> > examples and beginners will get more productive using it as they
> >> > delve into new things.
> >>
> >> I guess it's not mentioned, because it is not necessary, and at least to
> >> my knowledge, most people will be using C-x C-e (eval-last-sexp) and
> >> C-M-x (eval-defun) in the *scratch* buffer. Using a REPL, when you can
> >> evaluate any part of a buffer seems like a step back to me.
> >
> > I think ielm has more features than just plain evaluation.
> >
>
> The one I use most is `ielm-change-working-buffer', which is massively
> convenient, and not documented anywhere I can see.

Seems there exists a need to document it, because people do like to use it.

> Robert
>



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-18 11:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-17  2:13 ielm not described in: An Introduction to Programming in Emacs Lisp steve-humphreys
2020-12-18 10:18 ` Philip K.
2020-12-18 10:30   ` steve-humphreys
2020-12-18 10:52     ` Robert Pluim
2020-12-18 11:03       ` steve-humphreys
2020-12-18 10:39   ` steve-humphreys

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.