diff options
| author | Philip Kaludercic <philipk@posteo.net> | 2024-05-29 23:04:40 +0200 |
|---|---|---|
| committer | Philip Kaludercic <philipk@posteo.net> | 2024-05-29 23:04:40 +0200 |
| commit | 0ddf6edb44913c170fbe23aea2ccd9ed677391db (patch) | |
| tree | 61a8e9052b9b422cccc1dae302be792836bebaf9 | |
| parent | 5a5053aee60ce09991b6542a9c130759723de925 (diff) | |
Pass the prefix arg to the transpose actions
| -rw-r--r-- | do-at-point.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/do-at-point.el b/do-at-point.el index dcd3fb2..9b47770 100644 --- a/do-at-point.el +++ b/do-at-point.el @@ -130,19 +130,19 @@ of this variable.") (word (?$ "Spell check" ,(lambda () (ispell-word))) (?d "Dictionary" ,#'dictionary-search) - (?t "Transpose" ,(lambda () (transpose-words 1)))) + (?t "Transpose" ,(lambda () (transpose-words (or current-prefix-arg 1))))) (symbol (?. "Xref" ,#'xref-find-definitions) (?o "Occur" ,(lambda (str) (occur (concat "\\_<\\(" (regexp-quote str) "\\)\\_>"))))) (string) (sexp - (?t "Transpose" ,(lambda () (transpose-sexps 1)))) + (?t "Transpose" ,(lambda () (transpose-sexps (or current-prefix-arg 1))))) (line - (?t "Transpose" ,(lambda () (transpose-lines 1)))) + (?t "Transpose" ,(lambda () (transpose-lines (or current-prefix-arg 1))))) (paragraph (?$) - (?t "Transpose" ,(lambda () (transpose-paragraphs 1)))) + (?t "Transpose" ,(lambda () (transpose-paragraphs (or current-prefix-arg 1))))) (defun (?e "Evaluate" ,(lambda () (eval-defun nil))))) "Association of things and their respective actions. |
