diff options
| author | Theodor Thornhill | 2022-12-17 13:14:22 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2023-09-06 09:07:31 +0200 |
| commit | 4ac83ee105afd7bb53ce657ddf214c96c24c153b (patch) | |
| tree | e6a656b48d087e79002d6a657d2190e9f694337b | |
| parent | d1f916b046254086ed33247e97172c2710ca142a (diff) | |
| download | emacs-4ac83ee105afd7bb53ce657ddf214c96c24c153b.tar.gz emacs-4ac83ee105afd7bb53ce657ddf214c96c24c153b.zip | |
Use *p in interactive form in transpose-chars
* lisp/simple.el (transpose-chars): Use '*p' instead of '*P' like the
other transpose-* functions. (Bug#60157)
| -rw-r--r-- | lisp/simple.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 05a3c4b93d6..f4672b46b10 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -8566,12 +8566,12 @@ variables `truncate-lines' and `truncate-partial-width-windows'." | |||
| 8566 | "Interchange characters around point, moving forward one character. | 8566 | "Interchange characters around point, moving forward one character. |
| 8567 | With prefix arg ARG, effect is to take character before point | 8567 | With prefix arg ARG, effect is to take character before point |
| 8568 | and drag it forward past ARG other characters (backward if ARG negative). | 8568 | and drag it forward past ARG other characters (backward if ARG negative). |
| 8569 | If no argument and at end of line, the previous two chars are exchanged." | 8569 | If at end of line, the previous two chars are exchanged." |
| 8570 | (interactive "*P") | 8570 | (interactive "*p") |
| 8571 | (when (and (null arg) (eolp) (not (bobp)) | 8571 | (when (and (eolp) (not (bobp)) |
| 8572 | (not (get-text-property (1- (point)) 'read-only))) | 8572 | (not (get-text-property (1- (point)) 'read-only))) |
| 8573 | (forward-char -1)) | 8573 | (forward-char -1)) |
| 8574 | (transpose-subr 'forward-char (prefix-numeric-value arg))) | 8574 | (transpose-subr #'forward-char arg)) |
| 8575 | 8575 | ||
| 8576 | (defun transpose-words (arg) | 8576 | (defun transpose-words (arg) |
| 8577 | "Interchange words around point, leaving point at end of them. | 8577 | "Interchange words around point, leaving point at end of them. |