aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael J Gruber <git@grubix.eu>2024-06-17 21:28:25 +0200
committerDavid Bremner <david@tethera.net>2024-06-19 07:38:34 -0300
commit6b9fccb2e241156ec3f3fcfa334c73df3cb1fb1e (patch)
tree820af3392cc8cb80c7eaf54fbce410a332ac32db /test
parentb526c5ef0e1ae78380e68e5a24170542b884cbe3 (diff)
Replace `delete-line` with its definition
37c022ae ("Use `without-restriction` in `with-temporary-notmuch-message-buffer`", 2024-03-14) introduced `delete-line` in a test, but this is Emacs 29 and above only. Replace it with its (almost) definition.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T630-emacs-draft.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/T630-emacs-draft.sh b/test/T630-emacs-draft.sh
index 1fad58a8..7d0da21a 100755
--- a/test/T630-emacs-draft.sh
+++ b/test/T630-emacs-draft.sh
@@ -76,7 +76,7 @@ add_email_corpus attachment
test_begin_subtest "Saving a draft keeps hidden headers"
test_emacs '(notmuch-mua-new-reply "id:874llc2bkp.fsf@curie.anarc.at")
(message-goto-subject)
- (delete-line)
+ (delete-region (line-beginning-position) (line-beginning-position 2))
(insert "Subject: draft-test-reply\n")
(test-output "DRAFT")
(notmuch-draft-postpone)