From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: naming functions [was: Ibuffer: w and B default to buffer at current line] Date: Mon, 19 Sep 2016 19:35:04 +0300 Message-ID: <83zin3hmpz.fsf@gnu.org> References: >>>> <83intw5our.fsf@gnu.org>> <3dbc0c03-56f9-4b6f-bd3b-258458967665@default> >>> <83zin630i9.fsf@gnu.org>> <024f1fd0-80ee-4780-bebb-c935959851bc@default>> <83vaxuib1p.fsf@gnu.org>>> > <83poo1i8nf.fsf@gnu.org>> <054178e6-00ee-48ec-8799-3845c79675cd@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1474302971 22508 195.159.176.226 (19 Sep 2016 16:36:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Sep 2016 16:36:11 +0000 (UTC) Cc: emacs-devel@gnu.org, drew.adams@oracle.com, tino.calancha@gmail.com To: John Wiegley Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 19 18:36:07 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bm1Xu-0003ye-WD for ged-emacs-devel@m.gmane.org; Mon, 19 Sep 2016 18:35:55 +0200 Original-Received: from localhost ([::1]:56752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm1Xt-0002Fh-9L for ged-emacs-devel@m.gmane.org; Mon, 19 Sep 2016 12:35:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm1X1-0002Bq-GV for emacs-devel@gnu.org; Mon, 19 Sep 2016 12:35:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bm1Wx-0003qu-Fk for emacs-devel@gnu.org; Mon, 19 Sep 2016 12:34:59 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm1Wx-0003pm-DC; Mon, 19 Sep 2016 12:34:55 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1315 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bm1Wt-0004lZ-Dk; Mon, 19 Sep 2016 12:34:53 -0400 In-reply-to: (message from John Wiegley on Sun, 18 Sep 2016 12:23:33 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:207613 Archived-At: > From: John Wiegley > Cc: Eli Zaretskii , tino.calancha@gmail.com, emacs-devel@gnu.org > Date: Sun, 18 Sep 2016 12:23:33 -0700 > > I *think* that your point about "every command is also a function" is just a > bit orthogonal to whether we should be multiplying the semantics of our > functions -- be they commands or not. Clearly "string-append" should not start > logging to disk, or "current-time" suddenly gain the ability to compute the > volumes of spheres based on special arguments. > > If your point is that this is vague, and can only be decided on a case-by-case > basis, then yes, you've convinced me of that. I'll speak up whenever I see it > happen, and we can discuss again in the context of particular issues. Yes, my point is that where exactly to draw the line in the sand is a judgment call in each particular case. Some of the cases are crystal clear either way, but that's rare. Plus, we've been lumping together similar or related behaviors in a single function since day one; in particular every forward-SOMETHING function will do the equivalent of backward-SOMETHING when invoked with a negative argument; that's a very frequent paradigm in Emacs. And there are others. It's more-or-less the distinct flavor of our programming, "the Emacsy way" of doing things, if you want.