emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 3539657 3/5: Remove dead code from rfc2047


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 3539657 3/5: Remove dead code from rfc2047
Date: Thu, 26 Jan 2017 22:12:40 +0000 (UTC)

branch: master
commit 3539657bb726b91f2bc475d4e1c5fe276feb064f
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Remove dead code from rfc2047
    
    * lisp/mail/rfc2047.el (rfc2047-fold-field): Remove dead code.
    
    It's been disabled since 2005, when I made the change with the
    following comment.
    
    (rfc2047-encode-message-header): Disabled header folding -- not
    all headers can be folded, and this should be done by the message
    composition mode.  Probably.  I think.
---
 lisp/mail/rfc2047.el |   12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/lisp/mail/rfc2047.el b/lisp/mail/rfc2047.el
index 2a81609..bcbdc17 100644
--- a/lisp/mail/rfc2047.el
+++ b/lisp/mail/rfc2047.el
@@ -281,17 +281,7 @@ Should be called narrowed to the head of the message."
                        (encode-coding-region
                         (point-min) (point-max)
                         (mm-charset-to-coding-system
-                         (car message-posting-charset))))
-                 ;; No encoding necessary, but folding is nice
-                 (when nil
-                   (rfc2047-fold-region
-                    (save-excursion
-                      (goto-char (point-min))
-                      (skip-chars-forward "^:")
-                      (when (looking-at ": ")
-                        (forward-char 2))
-                      (point))
-                    (point-max))))
+                         (car message-posting-charset)))))
              ;; We found something that may perhaps be encoded.
              (re-search-forward "^[^:]+: *" nil t)
              (cond



reply via email to

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