From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: key-binding for cycle-spacing Date: Wed, 29 Jan 2014 20:28:10 +0000 Message-ID: <20140129202810.GA3092@acm.acm> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1391027501 31402 80.91.229.3 (29 Jan 2014 20:31:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jan 2014 20:31:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 29 21:31:45 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 1W8bnU-0007rr-Oz for ged-emacs-devel@m.gmane.org; Wed, 29 Jan 2014 21:31:44 +0100 Original-Received: from localhost ([::1]:45215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8bnU-0006OD-B0 for ged-emacs-devel@m.gmane.org; Wed, 29 Jan 2014 15:31:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8bnK-0006Nx-TQ for emacs-devel@gnu.org; Wed, 29 Jan 2014 15:31:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8bnD-0008Qp-Ia for emacs-devel@gnu.org; Wed, 29 Jan 2014 15:31:34 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:13264 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8bnD-0008Pt-9z for emacs-devel@gnu.org; Wed, 29 Jan 2014 15:31:27 -0500 Original-Received: (qmail 70646 invoked by uid 3782); 29 Jan 2014 20:31:25 -0000 Original-Received: from acm.muc.de (pD95197D0.dip0.t-ipconnect.de [217.81.151.208]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 29 Jan 2014 21:31:24 +0100 Original-Received: (qmail 4189 invoked by uid 1000); 29 Jan 2014 20:28:10 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 193.149.48.1 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:169216 Archived-At: Hi, Glenn. On Wed, Jan 29, 2014 at 12:15:52PM -0500, Glenn Morris wrote: > The new command `cycle-spacing' has no key-binding. > If you have not used it, the first time you call it in a consecutive > sequence, it acts like `just-one-space'. Not quite. It's more complicated than that. > The next time, it removes all whitespace. The third time, it restores > the original whitespace. > On the other hand, `just-one-space' only does something the first time > you call it. `just-one-space' has a precisely defined and strong functionality. `cycle-spacing' has lots of complicated edge cases. > Therefore I suggest that `cycle-spacing' take the M-SPC binding > of `just-one-space', since it provides a superset of the latter's > functionality. Not quite. It's more complicated than that. > People who do not like this can simply rebind `just-one-space' to > M-SPC. > Objections? Yes. As Eli mentioned, it's late in the day. Also, why do we need this function? Surely somebody adjusting her whitespace at some place will know in advance whether she wants: (a) 1 space; (b) n spaces; (c) no space, and cycling through the possibilities to get there is an inefficient waste of time. There are already suitable commands and bindings for them to do each of the things done by `cycle-spacing', namely M-SPC, C-u n M-space, M-\, and C-_. I don't thing we need this function. I can't see a use case. It seems to violate the KISS principle. Please keep M-SPC bound to `just-one-space'. -- Alan Mackenzie (Nuremberg, Germany).