comparison lisp/mail/rmail.el @ 88235:07d147da81f8

(rmail-show-message): Minor changes: comments.
author Alex Schroeder <alex@gnu.org>
date Fri, 20 Jan 2006 16:26:14 +0000
parents 0e6d3b2196c4
children 7f3a04aaac5e
comparison
equal deleted inserted replaced
88234:76be5e1eba7d 88235:07d147da81f8
2133 (setq n rmail-total-messages 2133 (setq n rmail-total-messages
2134 rmail-current-message rmail-total-messages 2134 rmail-current-message rmail-total-messages
2135 blurb "No following message")) 2135 blurb "No following message"))
2136 (t 2136 (t
2137 (setq rmail-current-message n)))) 2137 (setq rmail-current-message n))))
2138
2139 ;; Index into the Rmail message vector.
2140 (let ((beg (rmail-desc-get-start n)) 2138 (let ((beg (rmail-desc-get-start n))
2141 (end (rmail-desc-get-end n))) 2139 (end (rmail-desc-get-end n)))
2142
2143 ;; Narrow the region to message N and display the headers
2144 ;; appropriately.
2145 (rmail-header-show-headers) 2140 (rmail-header-show-headers)
2146 (widen) 2141 (widen)
2147 (narrow-to-region beg end) 2142 (narrow-to-region beg end)
2148 (goto-char (point-min)) 2143 (goto-char (point-min))
2149
2150 ;; Do something here with the coding system, I'm not sure what. -pmr
2151 (if (re-search-forward "^X-Coding-System: *\\(.*\\)$" nil t) 2144 (if (re-search-forward "^X-Coding-System: *\\(.*\\)$" nil t)
2152 (let ((coding-system (intern (match-string 1)))) 2145 (let ((coding-system (intern (match-string 1))))
2153 (condition-case nil 2146 (condition-case nil
2154 (progn 2147 (progn
2155 (check-coding-system coding-system) 2148 (check-coding-system coding-system)
2156 (setq buffer-file-coding-system coding-system)) 2149 (setq buffer-file-coding-system coding-system))
2157 (error 2150 (error
2158 (setq buffer-file-coding-system nil)))) 2151 (setq buffer-file-coding-system nil))))
2159 (setq buffer-file-coding-system nil)) 2152 (setq buffer-file-coding-system nil))
2160
2161 ;; Clear the "unseen" attribute when we show a message, unless 2153 ;; Clear the "unseen" attribute when we show a message, unless
2162 ;; it is already cleared. 2154 ;; it is already cleared.
2163 (when (rmail-desc-attr-p rmail-desc-unseen-index n) 2155 (when (rmail-desc-attr-p rmail-desc-unseen-index n)
2164 (rmail-desc-set-attribute rmail-desc-unseen-index nil n)) 2156 (rmail-desc-set-attribute rmail-desc-unseen-index nil n))
2165
2166 ;; More code that has been added that I ill understand.
2167 ;; (walk-windows
2168 ;; (function (lambda (window)
2169 ;; (if (eq (window-buffer window) (current-buffer))
2170 ;; (set-window-point window (point)))))
2171 ;; nil t)
2172
2173 (rmail-display-labels) 2157 (rmail-display-labels)
2174 ;; Deal with MIME 2158 ;; Deal with MIME
2175 (if (eq rmail-enable-mime t) 2159 (if (eq rmail-enable-mime t)
2176 (funcall rmail-show-mime-function) 2160 (funcall rmail-show-mime-function)
2177 ;; Deal with the message headers and URLs.. 2161 ;; Deal with the message headers and URLs..