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: Tassilo Horn
Subject: bug#19267: 25.0.50; Enhance cycle-spacing with a state where only whitespace after point is deleted
Date: Mon, 16 May 2022 14:28:29 +0200
User-agent: mu4e 1.7.21; emacs 29.0.50

Lars Ingebrigtsen <larsi@gnus.org> writes:

Hi Lars,

>> It's pushed.  And obviously I've seen that I've forgotten the
>> "perform action as if M-- was given" modifier in the defcustom
>> afterwards which is now also added in another commit.
>
> Thanks; works great.  I now have
>
> (setq cycle-spacing-actions '((just-one-space -) delete-all-space restore))
>
> which makes `M-SPC' do exactly what I want.

Perfect!

> With "emacs -Q', though, and:
>
> `C-u M-SPC'
>
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p (4))
>   cycle-spacing((4))
>   funcall-interactively(cycle-spacing (4))
>   call-interactively(cycle-spacing nil nil)
>   command-execute(cycle-spacing)
>
> `C-u 4 M-SPC' works fine.

Ah, yes, (repeated) C-us with no number hasn't been handled properly.
I've just pushed a change fixing that.

Bye,
Tassilo





reply via email to

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