emacs-diffs
[Top][All Lists]
Advanced

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

master be64c36: Fix new summary-line after editing an article in Gnus


From: Andrew G Cohen
Subject: master be64c36: Fix new summary-line after editing an article in Gnus
Date: Thu, 10 Sep 2020 08:52:56 -0400 (EDT)

branch: master
commit be64c36dd465efd3230b9201f82afbd005a1f412
Author: Andrew G Cohen <cohen@andy.bu.edu>
Commit: Andrew G Cohen <cohen@andy.bu.edu>

    Fix new summary-line after editing an article in Gnus
    
    * lisp/gnus/gnus-sum.el (gnus-summary-edit-article-done): Strip ^M
    from the ends of lines after saving an edited article. Otherwise the
    new header isn't always parsed properly, resulting in an incorrect
    subject line in the summary buffer.
---
 lisp/gnus/gnus-sum.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 45397b5..2f0ea0c 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -10708,6 +10708,7 @@ groups."
            ;; We only have to update this line.
            (save-excursion
              (save-restriction
+               (nnheader-ms-strip-cr)
                (message-narrow-to-head)
                (let ((head (buffer-substring-no-properties
                             (point-min) (point-max)))



reply via email to

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