bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19267: 25.0.50; Enhance cycle-spacing with a state where only whites


From: Lars Ingebrigtsen
Subject: bug#19267: 25.0.50; Enhance cycle-spacing with a state where only whitespace after point is deleted
Date: Sat, 14 May 2022 04:24:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Tassilo Horn <tsdh@gnu.org> writes:

> Would it be ok for you to define it in your init file?  I've documented
> the positive arg = tabs/spaces, negative arg = tabs/spaces/newlines as a
> general contract of all predefined actions (see new patch below) and
> your favorite action would immediately violate it...

I think the newline-including variations would be as popular as the
non-newline ones, so I think we should have those variations for all of
the actions.

Perhaps `M--' could work as a toggle -- if the action doesn't include
newlines, `M--' switches on, and if it does, `M--' switches it off.

> No, at least not yet. But if they did, you would need to always give an
> explicit prefix arg when you really want to delete all spaces
> before/after point because the default value of a numerical prefix arg
> is 1.

But it doesn't have to be, surely?  No prefix for
delete-space-after-point could mean exactly that, but a prefix of four
could mean leave four.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]