[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27507: [PATCH] Make `cycle-spacing' allow 'negative-zero in place of
From: |
npostavs |
Subject: |
bug#27507: [PATCH] Make `cycle-spacing' allow 'negative-zero in place of an integer |
Date: |
Sat, 01 Jul 2017 14:15:42 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) |
Mekeor Melire <mekeor.melire@gmail.com> 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?