all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: key-binding for cycle-spacing
Date: Wed, 29 Jan 2014 20:28:10 +0000	[thread overview]
Message-ID: <20140129202810.GA3092@acm.acm> (raw)
In-Reply-To: <a91tzqogjb.fsf@fencepost.gnu.org>

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).



  parent reply	other threads:[~2014-01-29 20:28 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-29 17:15 key-binding for cycle-spacing Glenn Morris
2014-01-29 17:21 ` Bastien
2014-01-29 17:44 ` Eli Zaretskii
2014-01-29 18:35   ` Glenn Morris
2014-01-29 18:46     ` Glenn Morris
2014-01-29 18:49     ` Eli Zaretskii
2014-01-30  2:33       ` Glenn Morris
2014-01-31 22:36       ` Tassilo Horn
2014-01-29 19:18 ` Teemu Likonen
2014-01-29 19:53   ` David Kastrup
2014-01-29 20:28 ` Alan Mackenzie [this message]
2014-01-30  2:37   ` Glenn Morris
2014-01-30  6:11     ` Alan Mackenzie
2014-01-31 22:40   ` Tassilo Horn
2014-01-31 22:55     ` Alan Mackenzie
2014-01-31 23:35       ` Tassilo Horn
2014-02-10 13:45   ` Michal Nazarewicz
2014-02-10 12:19     ` [PATCH] Make `cycle-spacing' behave more like `just-one-space' if called once Michal Nazarewicz
2014-03-27 14:27       ` Stefan Monnier
2014-03-28 16:29         ` Michal Nazarewicz
2014-01-29 20:30 ` key-binding for cycle-spacing Johan Bockgård
2014-01-30  2:32   ` Glenn Morris
2014-01-30 14:09 ` Richard Stallman
2014-01-30 15:21   ` Stefan Monnier
2014-01-30 23:23     ` Richard Stallman
2014-02-10 13:09     ` Michal Nazarewicz
2014-02-10 13:06 ` [PATCH] Make `cycle-spacing' behave more like `just-one-space' if colled once Michal Nazarewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140129202810.GA3092@acm.acm \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.