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

Previous Next

Package: emacs;

Reported by: Mekeor Melire <mekeor.melire <at> gmail.com>

Date: Tue, 27 Jun 2017 16:55:03 UTC

Severity: wishlist

Tags: moreinfo, patch

Done: Mekeor Melire <mekeor.melire <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 27507 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: Mekeor Melire <mekeor.melire <at> gmail.com>
Cc: 27507 <at> debbugs.gnu.org
Subject: Re: bug#27507: [PATCH] Make `cycle-spacing' allow 'negative-zero in
 place of an integer
Date: Sat, 01 Jul 2017 14:15:42 -0400
Mekeor Melire <mekeor.melire <at> 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?




This bug report was last modified 7 years and 199 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.