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

[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: Stefan Monnier
Subject: bug#60157: 30.0.50; [PATCH]: Change interactive form in transpose-chars
Date: Sat, 24 Dec 2022 08:40:58 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

>>  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?

>> +  (transpose-subr 'forward-char arg))

Please use #' to quote function names.


        Stefan






reply via email to

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