]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Wrong type argument: consp, nil error
authorBill Wohler <wohler@newt.com>
Tue, 11 Jul 2023 03:46:58 +0000 (20:46 -0700)
committerBill Wohler <wohler@newt.com>
Tue, 11 Jul 2023 03:50:59 +0000 (20:50 -0700)
* lisp/mh-e/mh-folder.el (mh-update-sequences): Add cur sequence when
missing

lisp/mh-e/mh-folder.el

index dbed3c8399441d1f197d602c11d79636baf5f45c..68f72a6e0cf6582aba0b5dfa9d7f7302d1ff7799 100644 (file)
@@ -1293,8 +1293,9 @@ The message at the cursor is used for \"cur\"."
     (if new-cur
         (let ((seq-entry (mh-find-seq 'cur)))
           (mh-remove-cur-notation)
-          (setcdr seq-entry
-                  (list new-cur))       ;delete-seq-locally, add-msgs-to-seq
+          (if seq-entry
+              (setcdr seq-entry (list new-cur))
+            (mh-add-msgs-to-seq (list new-cur) 'cur))
           (mh-define-sequence 'cur (list new-cur))
           (beginning-of-line)
           (if (looking-at mh-scan-good-msg-regexp)