emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/mail/rmailsum.el [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/mail/rmailsum.el [lexbind]
Date: Tue, 14 Oct 2003 19:39:44 -0400

Index: emacs/lisp/mail/rmailsum.el
diff -c emacs/lisp/mail/rmailsum.el:1.124.4.1 
emacs/lisp/mail/rmailsum.el:1.124.4.2
*** emacs/lisp/mail/rmailsum.el:1.124.4.1       Fri Apr  4 01:20:27 2003
--- emacs/lisp/mail/rmailsum.el Tue Oct 14 19:39:25 2003
***************
*** 51,57 ****
      ("^.....-.*" . font-lock-type-face)                               ; 
Unread.
      ;; Neither of the below will be highlighted if either of the above are:
      ("^.....[^D-] \\(......\\)" 1 font-lock-keyword-face)     ; Date.
!     ("{ \\([^\n}]+\\),}" 1 font-lock-comment-face))           ; Labels.
    "Additional expressions to highlight in Rmail Summary mode.")
  
  ;; Entry points for making a summary buffer.
--- 51,57 ----
      ("^.....-.*" . font-lock-type-face)                               ; 
Unread.
      ;; Neither of the below will be highlighted if either of the above are:
      ("^.....[^D-] \\(......\\)" 1 font-lock-keyword-face)     ; Date.
!     ("{ \\([^\n}]+\\) }" 1 font-lock-comment-face))           ; Labels.
    "Additional expressions to highlight in Rmail Summary mode.")
  
  ;; Entry points for making a summary buffer.
***************
*** 300,307 ****
                 ""
               (concat "{"
                       (buffer-substring (point)
!                                        (progn (end-of-line) (point)))
!                      "} ")))))
         (line
          (progn
            (forward-line 1)
--- 300,311 ----
                 ""
               (concat "{"
                       (buffer-substring (point)
!                                        (progn (end-of-line)
!                                               (backward-char)
!                                               (if (looking-at ",")
!                                                   (point)
!                                                 (1+ (point)))))
!                      " } ")))))
         (line
          (progn
            (forward-line 1)
***************
*** 396,444 ****
                    (t "??????"))))
          "  "
          (save-excursion
!           (if (not (re-search-forward "^From:[ \t]*" nil t))
!               "                         "
!             (let* ((from (mail-strip-quoted-names
!                           (buffer-substring
!                            (1- (point))
!                            ;; Get all the lines of the From field
!                            ;; so that we get a whole comment if there is one,
!                            ;; so that mail-strip-quoted-names can discard it.
!                            (let ((opoint (point)))
!                              (while (progn (forward-line 1)
!                                            (looking-at "[ \t]")))
!                              ;; Back up over newline, then trailing spaces or 
tabs
!                              (forward-char -1)
!                              (skip-chars-backward " \t")
!                              (point)))))
!                      len mch lo)
!               (if (string-match
!                    (or rmail-user-mail-address-regexp
!                        (concat "^\\("
!                                (regexp-quote (user-login-name))
!                                "\\($\\|@\\)\\|"
!                                (regexp-quote
!                                 ;; Don't lose if run from init file
!                                 ;; where user-mail-address is not
!                                 ;; set yet.
!                                 (or user-mail-address
!                                     (concat (user-login-name) "@"
!                                             (or mail-host-address
!                                                 (system-name)))))
!                                "\\>\\)"))
!                    from)
!                   (save-excursion
!                     (goto-char (point-min))
!                     (if (not (re-search-forward "^To:[ \t]*" nil t))
!                         nil
!                       (setq from
!                             (concat "to: "
!                                     (mail-strip-quoted-names
!                                      (buffer-substring
!                                       (point)
!                                       (progn (end-of-line)
!                                              (skip-chars-backward " \t")
!                                              (point)))))))))
                (setq len (length from))
                (setq mch (string-match "address@hidden" from))
                (format "%25s"
--- 400,451 ----
                    (t "??????"))))
          "  "
          (save-excursion
!           (let* ((from (and (re-search-forward "^From:[ \t]*" nil t)
!                             (mail-strip-quoted-names
!                              (buffer-substring
!                               (1- (point))
!                               ;; Get all the lines of the From field
!                               ;; so that we get a whole comment if there is 
one,
!                               ;; so that mail-strip-quoted-names can discard 
it.
!                               (let ((opoint (point)))
!                                 (while (progn (forward-line 1)
!                                               (looking-at "[ \t]")))
!                                 ;; Back up over newline, then trailing spaces 
or tabs
!                                 (forward-char -1)
!                                 (skip-chars-backward " \t")
!                                 (point))))))
!                  len mch lo)
!             (if (or (null from)
!                     (string-match
!                      (or rmail-user-mail-address-regexp
!                          (concat "^\\("
!                                  (regexp-quote (user-login-name))
!                                  "\\($\\|@\\)\\|"
!                                  (regexp-quote
!                                   ;; Don't lose if run from init file
!                                   ;; where user-mail-address is not
!                                   ;; set yet.
!                                   (or user-mail-address
!                                       (concat (user-login-name) "@"
!                                               (or mail-host-address
!                                                   (system-name)))))
!                                  "\\>\\)"))
!                      from))
!                 ;; No From field, or it's this user.
!                 (save-excursion
!                   (goto-char (point-min))
!                   (if (not (re-search-forward "^To:[ \t]*" nil t))
!                       nil
!                     (setq from
!                           (concat "to: "
!                                   (mail-strip-quoted-names
!                                    (buffer-substring
!                                     (point)
!                                     (progn (end-of-line)
!                                            (skip-chars-backward " \t")
!                                            (point)))))))))
!             (if (null from)
!                 "                         "
                (setq len (length from))
                (setq mch (string-match "address@hidden" from))
                (format "%25s"
***************
*** 1647,1650 ****
--- 1654,1658 ----
  
  (provide 'rmailsum)
  
+ ;;; arch-tag: 556079ee-75c1-47f5-9884-2e0a0bc6c5a1
  ;;; rmailsum.el ends here




reply via email to

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