aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-02-04 03:38:26 +0000
committerGlenn Morris2009-02-04 03:38:26 +0000
commita4e80191c29f1db98eb859cfcb33f6224fb51347 (patch)
tree7c9f1f9a40e95d8934dcd120cea8b87e932587f1
parent20bc68dd308b25fcdf8661a355e3c703405d56a8 (diff)
downloademacs-a4e80191c29f1db98eb859cfcb33f6224fb51347.tar.gz
emacs-a4e80191c29f1db98eb859cfcb33f6224fb51347.zip
No need for mule-util when compiling.
(rmail-first-message): Unbreak it.
-rw-r--r--lisp/mail/rmail.el66
1 files changed, 33 insertions, 33 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 8e03dad5807..af0f66f0312 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -39,7 +39,6 @@
39;; 39;;
40 40
41(require 'mail-utils) 41(require 'mail-utils)
42(eval-when-compile (require 'mule-util)) ; for detect-coding-with-priority
43 42
44(defconst rmail-attribute-header "X-RMAIL-ATTRIBUTES" 43(defconst rmail-attribute-header "X-RMAIL-ATTRIBUTES"
45 "The header that stores the Rmail attribute data.") 44 "The header that stores the Rmail attribute data.")
@@ -1576,39 +1575,40 @@ It returns t if it got any new messages."
1576 (rmail-enable-multibyte (default-value 'enable-multibyte-characters)) 1575 (rmail-enable-multibyte (default-value 'enable-multibyte-characters))
1577 found) 1576 found)
1578 (unwind-protect 1577 (unwind-protect
1579 (progn 1578 (progn
1580 ;; This loops if any members of the inbox list have the same 1579 ;; This loops if any members of the inbox list have the same
1581 ;; basename (see "name conflict" below). 1580 ;; basename (see "name conflict" below).
1582 (while all-files 1581 (while all-files
1583 (let ((opoint (point)) 1582 (let ((opoint (point))
1584 ;; If buffer has not changed yet, and has not been 1583 ;; If buffer has not changed yet, and has not been
1585 ;; saved yet, don't replace the old backup file now. 1584 ;; saved yet, don't replace the old backup file now.
1586 (make-backup-files (and make-backup-files (buffer-modified-p))) 1585 (make-backup-files (and make-backup-files (buffer-modified-p)))
1587 (buffer-read-only nil) 1586 (buffer-read-only nil)
1588 ;; Don't make undo records while getting mail. 1587 ;; Don't make undo records while getting mail.
1589 (buffer-undo-list t) 1588 (buffer-undo-list t)
1590 delete-files success files file-last-names) 1589 delete-files success files file-last-names)
1591 ;; Pull files off all-files onto files as long as there is 1590 ;; Pull files off all-files onto files as long as there is
1592 ;; no name conflict. A conflict happens when two inbox 1591 ;; no name conflict. A conflict happens when two inbox
1593 ;; file names have the same last component. 1592 ;; file names have the same last component.
1594 ;; FIXME why does this "conflict" need kid gloves? 1593 ;; The reason this careful handling is necessary seems
1594 ;; to be that rmail-insert-inbox-text uses .newmail-BASENAME.
1595 (while (and all-files 1595 (while (and all-files
1596 (not (member (file-name-nondirectory (car all-files)) 1596 (not (member (file-name-nondirectory (car all-files))
1597 file-last-names))) 1597 file-last-names)))
1598 (setq files (cons (car all-files) files) 1598 (setq files (cons (car all-files) files)
1599 file-last-names 1599 file-last-names
1600 (cons (file-name-nondirectory (car all-files)) files)) 1600 (cons (file-name-nondirectory (car all-files)) files))
1601 (setq all-files (cdr all-files))) 1601 (setq all-files (cdr all-files)))
1602 ;; Put them back in their original order. 1602 ;; Put them back in their original order.
1603 (setq files (nreverse files)) 1603 (setq files (nreverse files))
1604 (goto-char (point-max)) 1604 (goto-char (point-max))
1605 (skip-chars-backward " \t\n") ; just in case of brain damage 1605 (skip-chars-backward " \t\n") ; just in case of brain damage
1606 (delete-region (point) (point-max)) ; caused by require-final-newline 1606 (delete-region (point) (point-max)) ; caused by require-final-newline
1607 (setq found (or 1607 (setq found (or
1608 (rmail-get-new-mail-1 file-name files delete-files) 1608 (rmail-get-new-mail-1 file-name files delete-files)
1609 found)))) 1609 found))))
1610 ;; Move to the first new message unless we have other unseen 1610 ;; Move to the first new message unless we have other unseen
1611 ;; messages before it. 1611 ;; messages before it.
1612 (if found (rmail-show-message-maybe (rmail-first-unseen-message))) 1612 (if found (rmail-show-message-maybe (rmail-first-unseen-message)))
1613 (run-hooks 'rmail-after-get-new-mail-hook) 1613 (run-hooks 'rmail-after-get-new-mail-hook)
1614 found) 1614 found)
@@ -2884,7 +2884,7 @@ or forward if N is negative."
2884 "Show first message in file." 2884 "Show first message in file."
2885 (interactive) 2885 (interactive)
2886 (rmail-maybe-set-message-counters) 2886 (rmail-maybe-set-message-counters)
2887 (rmail-show-message-maybe (< 1 rmail-total-messages))) 2887 (rmail-show-message-maybe 1))
2888 2888
2889(defun rmail-last-message () 2889(defun rmail-last-message ()
2890 "Show last message in file." 2890 "Show last message in file."