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 #8 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: Thu, 29 Jun 2017 21:29:02 -0400
Mekeor Melire <mekeor.melire <at> gmail.com> writes:

> * lisp/simple.el (cycle-spacing): beside accepting an integer as first
> argument N, also allow N to be 'negative-zero. This allows to delete
> all spaces including newlines with (cycle-spacing 'negative-zero).

This behaviour can't be used interactively right?  If you want a
function to delete all space including newlines, I think it's better to
add one instead of adding yet another mode to cycle-spacing which won't
even be used by interactive callers.

That is, instead of (cycle-spacing 'negative-zero) something like
(delete-whitespace).

> +  (letrec

You only need let* here, I think.




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.