From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorgen Schaefer Newsgroups: gmane.emacs.devel Subject: Re: over-engineered (and under-standardized) inferior interfaces Date: Fri, 22 Aug 2014 13:41:13 +0200 Message-ID: <20140822134113.04a5d6c3@forcix> References: <20140821232158.3d0aea56@forcix> <87oavcvlo3.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1408707738 26117 80.91.229.3 (22 Aug 2014 11:42:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2014 11:42:18 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: phillip.lord@newcastle.ac.uk (Phillip Lord) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 22 13:42:11 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XKnEP-0005NL-WC for ged-emacs-devel@m.gmane.org; Fri, 22 Aug 2014 13:42:10 +0200 Original-Received: from localhost ([::1]:36436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKnEP-00088a-81 for ged-emacs-devel@m.gmane.org; Fri, 22 Aug 2014 07:42:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKnE8-00084V-Li for emacs-devel@gnu.org; Fri, 22 Aug 2014 07:41:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKnE3-0001on-CC for emacs-devel@gnu.org; Fri, 22 Aug 2014 07:41:52 -0400 Original-Received: from loki.jorgenschaefer.de ([87.230.15.51]:35252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKnE3-0001oU-5j for emacs-devel@gnu.org; Fri, 22 Aug 2014 07:41:47 -0400 Original-Received: by loki.jorgenschaefer.de (Postfix, from userid 998) id 871E5204137; Fri, 22 Aug 2014 13:41:15 +0200 (CEST) Original-Received: from forcix (port-32689.pppoe.wtnet.de [46.59.178.130]) by loki.jorgenschaefer.de (Postfix) with ESMTPSA id 57AE1204134; Fri, 22 Aug 2014 13:41:14 +0200 (CEST) In-Reply-To: <87oavcvlo3.fsf@newcastle.ac.uk> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.24; i486-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 87.230.15.51 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173807 Archived-At: On Fri, 22 Aug 2014 11:55:08 +0100 phillip.lord@newcastle.ac.uk (Phillip Lord) wrote: > Stefan Monnier writes: > >> So I'd suggest using C-c C-c for a new > >> prog-proc-send-region-or-buffer. > > > > I think "send the current buffer" is not good enough, except for > > those rare systems where a single file is all you need. > > There is a subtly here, I think, depending on whether "send current > buffer" really sends the current buffer, or loads the file. > > For example, clojure-cider binds C-c C-r to cider-eval-region, while > C-c C-k is cider-load-current-buffer (which actually loads the file > of the buffer). It doesn't actually have a keybinding for > cider-eval-buffer (other than mark-whole-buffer, cider-eval-region) > because this nearly always gives inferior (sorry) results. Indeed. Python is similar, in that it actually would not work in just sending the buffer or even the region (because interactively, empty lines terminate a block) - the python mode creates a temporary file in either case and loads that in the interactive process. So the semantics are quite regularly not "use the current buffer/region as input", but rather "update the interactive process with stuff from the current buffer/file/region in whatever fashion that fits". Jorgen