aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorAndrew G Cohen2020-09-10 20:23:34 +0800
committerAndrew G Cohen2020-09-10 20:23:34 +0800
commitbe64c36dd465efd3230b9201f82afbd005a1f412 (patch)
tree4dd5c9fcd6e5a3a0ed2921f55b5ac0a65395342c /lisp
parent931b9f5953013c1e8844d0c723411b87ccfedb1a (diff)
downloademacs-be64c36dd465efd3230b9201f82afbd005a1f412.tar.gz
emacs-be64c36dd465efd3230b9201f82afbd005a1f412.zip
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.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/gnus-sum.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 45397b518c6..2f0ea0c58f8 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -10708,6 +10708,7 @@ groups."
10708 ;; We only have to update this line. 10708 ;; We only have to update this line.
10709 (save-excursion 10709 (save-excursion
10710 (save-restriction 10710 (save-restriction
10711 (nnheader-ms-strip-cr)
10711 (message-narrow-to-head) 10712 (message-narrow-to-head)
10712 (let ((head (buffer-substring-no-properties 10713 (let ((head (buffer-substring-no-properties
10713 (point-min) (point-max))) 10714 (point-min) (point-max)))