comparison lisp/mail/sendmail.el @ 89483:2f877ed80fa6

*** empty log message ***
author Kenichi Handa <handa@m17n.org>
date Mon, 08 Sep 2003 12:53:41 +0000
parents 375f2633d815 df76808e99c0
children 68c22ea6027c
comparison
equal deleted inserted replaced
88123:375f2633d815 89483:2f877ed80fa6
964 (not (re-search-forward "^MIME-version:" delimline t)) 964 (not (re-search-forward "^MIME-version:" delimline t))
965 (progn (skip-chars-forward "\0-\177") 965 (progn (skip-chars-forward "\0-\177")
966 (/= (point) (point-max))) 966 (/= (point) (point-max)))
967 selected-coding 967 selected-coding
968 (setq charset 968 (setq charset
969 (coding-system-get selected-coding 'mime-charset)) 969 (coding-system-get selected-coding :mime-charset))
970 (goto-char delimline) 970 (goto-char delimline)
971 (insert "MIME-version: 1.0\n" 971 (insert "MIME-version: 1.0\n"
972 "Content-type: text/plain; charset=" 972 "Content-type: text/plain; charset="
973 (symbol-name charset) "\n" 973 (symbol-name charset) "\n"
974 "Content-Transfer-Encoding: 8bit\n"))) 974 "Content-Transfer-Encoding: 8bit\n")))
1623 (set-keymap-parent map (current-local-map)) 1623 (set-keymap-parent map (current-local-map))
1624 map)) 1624 map))
1625 (define-key (current-local-map) "v" 1625 (define-key (current-local-map) "v"
1626 (lambda () 1626 (lambda ()
1627 (interactive) 1627 (interactive)
1628 (let ((coding-system-for-read 'emacs-mule-unix)) 1628 (let ((coding-system-for-read 'utf-8-emacs-unix))
1629 (dired-view-file)))) 1629 (dired-view-file))))
1630 (define-key (current-local-map) "\C-c\C-c" 1630 (define-key (current-local-map) "\C-c\C-c"
1631 (lambda () 1631 (lambda ()
1632 (interactive) 1632 (interactive)
1633 (let ((fname (dired-get-filename)) 1633 (let ((fname (dired-get-filename))
1634 ;; Auto-saved files are written in the internal 1634 ;; Auto-saved files are written in the internal
1635 ;; representation, so they should be read accordingly. 1635 ;; representation, so they should be read accordingly.
1636 (coding-system-for-read 'emacs-mule-unix)) 1636 (coding-system-for-read 'utf-8-emacs-unix))
1637 (switch-to-buffer-other-window "*mail*") 1637 (switch-to-buffer-other-window "*mail*")
1638 (let ((buffer-read-only nil)) 1638 (let ((buffer-read-only nil))
1639 (erase-buffer) 1639 (erase-buffer)
1640 (insert-file-contents fname nil) 1640 (insert-file-contents fname nil)
1641 ;; insert-file-contents will set buffer-file-coding-system 1641 ;; insert-file-contents will set buffer-file-coding-system
1642 ;; to emacs-mule, which is probably not what they want to 1642 ;; to utf-8-emacs, which is probably not what they want to
1643 ;; use for sending the message. But we don't know what 1643 ;; use for sending the message. But we don't know what
1644 ;; was its value before the buffer was killed or Emacs 1644 ;; was its value before the buffer was killed or Emacs
1645 ;; crashed. We therefore reset buffer-file-coding-system 1645 ;; crashed. We therefore reset buffer-file-coding-system
1646 ;; to the default value, so that either the default does 1646 ;; to the default value, so that either the default does
1647 ;; TRT, or the user will get prompted for the right 1647 ;; TRT, or the user will get prompted for the right
1688 (error "mail-recover cancelled") 1688 (error "mail-recover cancelled")
1689 (let ((buffer-read-only nil) 1689 (let ((buffer-read-only nil)
1690 (buffer-coding buffer-file-coding-system) 1690 (buffer-coding buffer-file-coding-system)
1691 ;; Auto-save files are written in internal 1691 ;; Auto-save files are written in internal
1692 ;; representation of non-ASCII characters. 1692 ;; representation of non-ASCII characters.
1693 (coding-system-for-read 'emacs-mule-unix)) 1693 (coding-system-for-read 'utf-8-emacs-unix))
1694 (erase-buffer) 1694 (erase-buffer)
1695 (insert-file-contents file-name nil) 1695 (insert-file-contents file-name nil)
1696 (setq buffer-file-coding-system buffer-coding))))) 1696 (setq buffer-file-coding-system buffer-coding)))))
1697 (t (mail-recover-1))))) 1697 (t (mail-recover-1)))))
1698 1698