emacs-devel
[Top][All Lists]
Advanced

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

Re: Proposing elisp-eval-target for eval-last-sexp and related commands


From: Stefan Monnier
Subject: Re: Proposing elisp-eval-target for eval-last-sexp and related commands
Date: Tue, 17 Aug 2021 14:10:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Psionic K [2021-08-18 00:11:01] wrote:
> Proposing to patch the eslip module so that if a buffer-local
> `elisp-eval-target` has been set, `eval-last-sexp` and similar commands
> will execute lisp in the context of another buffer.
>
> The use case is when developing elisp to operate on non-elisp buffers,
> interacting with functionality for other languages such as when using LSP.

`M-x ielm` lets you do just that.

Having a dedicated buffer also lets it print the result more comfortably
and show the "target buffer" in the mode line.


        Stefan




reply via email to

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