[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60157: 30.0.50; [PATCH]: Change interactive form in transpose-chars
From: |
Theodor Thornhill |
Subject: |
bug#60157: 30.0.50; [PATCH]: Change interactive form in transpose-chars |
Date: |
Sat, 24 Dec 2022 20:11:41 +0100 |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> If no argument and at end of line, the previous two chars are exchanged."
>>> - (interactive "*P")
>>> - (when (and (null arg) (eolp) (not (bobp))
>>> - (not (get-text-property (1- (point)) 'read-only)))
>>> - (forward-char -1))
>
> Hmm... If you remove this, does it still behave as described on the last
> line of the docstring?
>
You're right. It does not. I fixed that in the latest patch.
>>> + (transpose-subr 'forward-char arg))
>
> Please use #' to quote function names.
>
Sure!
Is this okay?
Theo
0001-Use-p-in-interactive-form-in-transpose-chars.patch
Description: Text Data