aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mail
diff options
context:
space:
mode:
authorRichard Stallman2015-04-05 08:36:56 -0400
committerRichard Stallman2015-04-05 08:42:43 -0400
commit4e23cd0ccde4ad1e14fe2870ccf140487af649b2 (patch)
treeb709ac1e92a892f6ec1faa85eb59a9e5960c25dd /lisp/mail
parentdca743f0941909a80e3f28c023977120b6203e20 (diff)
parent16eec6fc55dcc05d1d819f18998e84a9580b2521 (diff)
downloademacs-4e23cd0ccde4ad1e14fe2870ccf140487af649b2.tar.gz
emacs-4e23cd0ccde4ad1e14fe2870ccf140487af649b2.zip
* mail/rmail.el (rmail-show-message-1): When displaying a mime message,
indicate start and finish in the echo area. * mail/rmail.el (rmail-epa-decrypt): Disregard <pre> before armor. Ignore more kinds of whitespace in mime headers. Modify the decrypted mime part's mime type so it will be displayed by default when visiting this message again. * net/browse-url.el (browse-url-firefox-program): Prefer IceCat, doc. (browse-url-firefox-arguments) (browse-url-firefox-startup-arguments): Doc fix.
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/rmail.el4
-rw-r--r--lisp/mail/rmailmm.el17
-rw-r--r--lisp/mail/rmailsum.el17
-rw-r--r--lisp/mail/sendmail.el8
4 files changed, 30 insertions, 16 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 790254a6312..d150324fc79 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -4744,7 +4744,7 @@ With prefix argument N moves forward N messages with these labels.
4744 4744
4745;;;*** 4745;;;***
4746 4746
4747;;;### (autoloads nil "rmailmm" "rmailmm.el" "43e0b9f680c4d2581640b286bd4b3107") 4747;;;### (autoloads nil "rmailmm" "rmailmm.el" "a17df5ef8968113c8f6a78cf85c82da4")
4748;;; Generated autoloads from rmailmm.el 4748;;; Generated autoloads from rmailmm.el
4749 4749
4750(autoload 'rmail-mime "rmailmm" "\ 4750(autoload 'rmail-mime "rmailmm" "\
@@ -4841,7 +4841,7 @@ If prefix argument REVERSE is non-nil, sorts in reverse order.
4841 4841
4842;;;*** 4842;;;***
4843 4843
4844;;;### (autoloads nil "rmailsum" "rmailsum.el" "e3943ef45946f10b9b5cab8097d7f271") 4844;;;### (autoloads nil "rmailsum" "rmailsum.el" "3203e61425330fc20f3154b559f8b539")
4845;;; Generated autoloads from rmailsum.el 4845;;; Generated autoloads from rmailsum.el
4846 4846
4847(autoload 'rmail-summary "rmailsum" "\ 4847(autoload 'rmail-summary "rmailsum" "\
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el
index 120d517f55c..00fc25dd440 100644
--- a/lisp/mail/rmailmm.el
+++ b/lisp/mail/rmailmm.el
@@ -661,6 +661,7 @@ HEADER is a header component of a MIME-entity object (see
661 (transfer-encoding (rmail-mime-entity-transfer-encoding entity)) 661 (transfer-encoding (rmail-mime-entity-transfer-encoding entity))
662 (charset (cdr (assq 'charset (cdr (rmail-mime-entity-type entity))))) 662 (charset (cdr (assq 'charset (cdr (rmail-mime-entity-type entity)))))
663 (buffer (current-buffer)) 663 (buffer (current-buffer))
664 (case-fold-search t)
664 coding-system) 665 coding-system)
665 (if charset (setq coding-system (coding-system-from-name charset))) 666 (if charset (setq coding-system (coding-system-from-name charset)))
666 (or (and coding-system (coding-system-p coding-system)) 667 (or (and coding-system (coding-system-p coding-system))
@@ -674,6 +675,22 @@ HEADER is a header component of a MIME-entity object (see
674 (ignore-errors (base64-decode-region (point-min) (point-max)))) 675 (ignore-errors (base64-decode-region (point-min) (point-max))))
675 ((string= transfer-encoding "quoted-printable") 676 ((string= transfer-encoding "quoted-printable")
676 (quoted-printable-decode-region (point-min) (point-max)))) 677 (quoted-printable-decode-region (point-min) (point-max))))
678 ;; Some broken MUAs state the charset only in the HTML <head>,
679 ;; so if we don't have a non-trivial coding-system at this
680 ;; point, make one last attempt to find it there.
681 (if (eq coding-system 'undecided)
682 (save-excursion
683 (goto-char (point-min))
684 (when (re-search-forward
685 "^<html><head><meta[^;]*; charset=\\([-a-zA-Z0-9]+\\)"
686 nil t)
687 (setq coding-system (coding-system-from-name (match-string 1)))
688 (or (and coding-system (coding-system-p coding-system))
689 (setq coding-system 'undecided)))
690 ;; Finally, let them manually force decoding if they know it.
691 (if (and (eq coding-system 'undecided)
692 (not (null coding-system-for-read)))
693 (setq coding-system coding-system-for-read))))
677 (decode-coding-region (point-min) (point) coding-system) 694 (decode-coding-region (point-min) (point) coding-system)
678 (if (and 695 (if (and
679 (or (not rmail-mime-coding-system) (consp rmail-mime-coding-system)) 696 (or (not rmail-mime-coding-system) (consp rmail-mime-coding-system))
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 7ac147b87d7..7144e43d301 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -1,7 +1,6 @@
1;;; rmailsum.el --- make summary buffers for the mail reader 1;;; rmailsum.el --- make summary buffers for the mail reader
2 2
3;; Copyright (C) 1985, 1993-1996, 2000-2015 Free Software Foundation, 3;; Copyright (C) 1985, 1993-1996, 2000-2015 Free Software Foundation, Inc.
4;; Inc.
5 4
6;; Maintainer: emacs-devel@gnu.org 5;; Maintainer: emacs-devel@gnu.org
7;; Keywords: mail 6;; Keywords: mail
@@ -791,7 +790,7 @@ the message being processed."
791 (forward-line 1) 790 (forward-line 1)
792 (setq str (buffer-substring pos (1- (point)))) 791 (setq str (buffer-substring pos (1- (point))))
793 (while (looking-at "[ \t]") 792 (while (looking-at "[ \t]")
794 (setq str (concat str " " 793 (setq str (concat str " "
795 (buffer-substring (match-end 0) 794 (buffer-substring (match-end 0)
796 (line-end-position)))) 795 (line-end-position))))
797 (forward-line 1)) 796 (forward-line 1))
@@ -804,7 +803,8 @@ the message being processed."
804 803
805(defun rmail-summary-next-all (&optional number) 804(defun rmail-summary-next-all (&optional number)
806 (interactive "p") 805 (interactive "p")
807 (forward-line (if number number 1)) 806 (or number (setq number 1))
807 (forward-line number)
808 ;; It doesn't look nice to move forward past the last message line. 808 ;; It doesn't look nice to move forward past the last message line.
809 (and (eobp) (> number 0) 809 (and (eobp) (> number 0)
810 (forward-line -1)) 810 (forward-line -1))
@@ -812,17 +812,14 @@ the message being processed."
812 812
813(defun rmail-summary-previous-all (&optional number) 813(defun rmail-summary-previous-all (&optional number)
814 (interactive "p") 814 (interactive "p")
815 (forward-line (- (if number number 1))) 815 (rmail-summary-next-all (- (or number 1))))
816 ;; It doesn't look nice to move forward past the last message line.
817 (and (eobp) (< number 0)
818 (forward-line -1))
819 (display-buffer rmail-buffer))
820 816
821(defun rmail-summary-next-msg (&optional number) 817(defun rmail-summary-next-msg (&optional number)
822 "Display next non-deleted msg from rmail file. 818 "Display next non-deleted msg from rmail file.
823With optional prefix argument NUMBER, moves forward this number of non-deleted 819With optional prefix argument NUMBER, moves forward this number of non-deleted
824messages, or backward if NUMBER is negative." 820messages, or backward if NUMBER is negative."
825 (interactive "p") 821 (interactive "p")
822 (or number (setq number 1))
826 (forward-line 0) 823 (forward-line 0)
827 (and (> number 0) (end-of-line)) 824 (and (> number 0) (end-of-line))
828 (let ((count (if (< number 0) (- number) number)) 825 (let ((count (if (< number 0) (- number) number))
@@ -840,7 +837,7 @@ messages, or backward if NUMBER is negative."
840With optional prefix argument NUMBER, moves backward this number of 837With optional prefix argument NUMBER, moves backward this number of
841non-deleted messages." 838non-deleted messages."
842 (interactive "p") 839 (interactive "p")
843 (rmail-summary-next-msg (- (if number number 1)))) 840 (rmail-summary-next-msg (- (or number 1))))
844 841
845(defun rmail-summary-next-labeled-message (n labels) 842(defun rmail-summary-next-labeled-message (n labels)
846 "Show next message with LABELS. Defaults to last labels used. 843 "Show next message with LABELS. Defaults to last labels used.
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 7e9bd5bca2f..9fa7aa5a6f2 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -1299,10 +1299,10 @@ external program defined by `sendmail-program'."
1299 (error "Sending...failed to %s" 1299 (error "Sending...failed to %s"
1300 (buffer-substring (point-min) (point-max))))))) 1300 (buffer-substring (point-min) (point-max)))))))
1301 (kill-buffer tembuf) 1301 (kill-buffer tembuf)
1302 (if (and (bufferp errbuf) 1302 (when (buffer-live-p errbuf)
1303 (not error)) 1303 (if error
1304 (kill-buffer errbuf) 1304 (switch-to-buffer-other-window errbuf)
1305 (switch-to-buffer-other-window errbuf))))) 1305 (kill-buffer errbuf))))))
1306 1306
1307(autoload 'rmail-output-to-rmail-buffer "rmailout") 1307(autoload 'rmail-output-to-rmail-buffer "rmailout")
1308 1308