Subject: bug#27507: [PATCH] Make `cycle-spacing' allow 'negative-zero in place of an integer

From: [email-masked]
Date: Sat, 01 Jul 2017 14:15:42 -0400

Mekeor Melire <[email-masked]> writes:

> Well, the point is that delete-whitespace would mostly have the same
> logic as cycle-spacing. So, should we define a more general function
> then, which both delete-whitespace and cycle-spacing would be based
> upon?  So, currently `cycle-spacing' is used like this:
>
>     (cycle-spacing &optional N PRESERVE-NL-BACK MODE)
>
> And the problem is that the sign(ature) of N is used to determine
> whether to delete newlines as well. So, if N is zero, we have a
> problem.

I'm still a bit confused why you specfically want to use cycle-spacing
to delete newlines and spaces.  What logic of cycle-spacing would be
applicable when N is zero?  Can you give an example usage?