]> git.notmuchmail.org Git - notmuch/commitdiff
Replace `delete-line` with its definition master
authorMichael J Gruber <git@grubix.eu>
Mon, 17 Jun 2024 19:28:25 +0000 (21:28 +0200)
committerDavid Bremner <david@tethera.net>
Wed, 19 Jun 2024 10:38:34 +0000 (07:38 -0300)
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.

test/T630-emacs-draft.sh

index 1fad58a813bd3a151f3a617397d64c46358aec63..7d0da21a18bc0babde0107cfa05113f46929c209 100755 (executable)
@@ -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)
 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)
             (insert "Subject: draft-test-reply\n")
            (test-output "DRAFT")
            (notmuch-draft-postpone)