From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Proposing elisp-eval-target for eval-last-sexp and related commands Date: Tue, 17 Aug 2021 14:10:57 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33004"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Psionic K Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 17 20:13:57 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mG3b3-0008Ka-2I for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Aug 2021 20:13:57 +0200 Original-Received: from localhost ([::1]:47394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mG3b2-0002ac-1q for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Aug 2021 14:13:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mG3YS-000062-Ol for emacs-devel@gnu.org; Tue, 17 Aug 2021 14:11:19 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:11017) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mG3YK-0005hU-QJ for emacs-devel@gnu.org; Tue, 17 Aug 2021 14:11:10 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id DC5FC1001FB; Tue, 17 Aug 2021 14:11:04 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id EB6B710008C; Tue, 17 Aug 2021 14:10:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1629223859; bh=z46C7cj9NdRiOjlzbBgld0rIcEnfnb+q1BrKM+W4gjs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TYNhDx6IrBUl2l+qGfHTIrXwvr6h2gpiUqSebHZLM2Y9Lo+W8BjpFhFx4kOu2NdOd BBAsdY4nh9HwOdQ6xWshdEMFft1bNtA3NcCMuS6t2O9NluFu+gfamHOklFASOVfpgb OLJjc/37faYX683Y2fDhLejwCFk0ilKE5lWJ1EFdigPckWiR2MUI04ulNd0auAOUry Teqsmikw6OzQmAyp4qcNthbZ0xyUf4+wJ0aDCfTeqQg5C3uVAd/rERKuYA0m4p0hN/ ADV2K8p3UOQsrXhoKeOY9s8aqZz4wLKFb+1C+8c7ixgfhOx2OQ/nAFghrljKYNkVvH iEdzMH9bYz6zQ== Original-Received: from alfajor (unknown [104.247.244.135]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BC4B1120330; Tue, 17 Aug 2021 14:10:58 -0400 (EDT) In-Reply-To: (Psionic K.'s message of "Wed, 18 Aug 2021 00:11:01 +0800") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272509 Archived-At: 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