emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 90ce2b8 1/2: rmail-summary-mark-deleted optional argument fix


From: Lars Ingebrigtsen
Subject: master 90ce2b8 1/2: rmail-summary-mark-deleted optional argument fix
Date: Sat, 30 Jan 2021 01:47:57 -0500 (EST)

branch: master
commit 90ce2b80342299ef4c6c2f6b08cca55e20ffa06b
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    rmail-summary-mark-deleted optional argument fix
    
    * lisp/mail/rmailsum.el (rmail-summary-mark-deleted): Argument N
    is optional, so don't assume that it's a number (bug#39076).
---
 lisp/mail/rmailsum.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index d29115a..7f99ecd 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -974,8 +974,9 @@ a negative argument means to delete and move forward."
          (delete-char 1)
          (insert "D"))
        ;; Discard cached new summary line.
-       (with-current-buffer rmail-buffer
-         (aset rmail-summary-vector (1- n) nil))))
+        (when n
+         (with-current-buffer rmail-buffer
+           (aset rmail-summary-vector (1- n) nil)))))
   (beginning-of-line))
 
 (defun rmail-summary-update-line (n)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]