diff options
author | Taylor R Campbell <campbell+paredit@mumble.net> | 2022-08-28 21:18:04 +0000 |
---|---|---|
committer | Taylor R Campbell <campbell+paredit@mumble.net> | 2022-08-28 21:30:35 +0000 |
commit | 52be50188ef8c49d8c1a5ef71cb0a963c6a05f09 (patch) | |
tree | 10351a887b08074e52ed6599a899c9ef6fe93e78 /test.el | |
parent | e4a67f4f23ba936b4bdc8d7e66bd8c6729064558 (diff) |
paredit-raise-sexp: Handle active mark in transient mark mode.
Diffstat (limited to 'test.el')
-rw-r--r-- | test.el | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1481,6 +1481,18 @@ Four arguments: the paredit command, the text of the buffer "(let ((x 5))\n |(foo bar\n baz)\n (wrong indent))") ("(define (f x #!optional\n (|wrong indent))\n (+ 1 2))" "(define (f x #!optional\n |wrong)\n (+ 1 2))"))) + +(let ((transient-mark-mode t)) + (paredit-test 'paredit-raise-sexp + '(("(a |b c_ d)" "|b c") + ("(a (b |c d_ e) f)" "(a |c d f)") + ("(a \"|b\" c_ d)" error)))) + +(let ((transient-mark-mode nil)) + (paredit-test 'paredit-raise-sexp + '(("(a |b c_ d)" "|b") + ("(a (b |c d_ e) f)" "(a |c f)") + ("(a \"|b\" c_ d)" "|\"b\"")))) (let ((paredit-comment-prefix-toplevel ";;;T ") (paredit-comment-prefix-code ";;C ") |