diff options
| author | Glenn Morris | 2009-02-21 03:14:04 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-02-21 03:14:04 +0000 |
| commit | a8d4467bf84361b154adb68f864e233063982e5d (patch) | |
| tree | 58113cebca6c9830d5593abdd0a11febf8a621da | |
| parent | 3ba6d4ed56d9d9b6d4c570d057ad9ce11e3ae0ff (diff) | |
| download | emacs-a8d4467bf84361b154adb68f864e233063982e5d.tar.gz emacs-a8d4467bf84361b154adb68f864e233063982e5d.zip | |
(sc-mail-glom-frame): Handle a "From " line at the start of the headers.
(sc-mail-check-from): New function.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/mail/supercite.el | 16 |
2 files changed, 20 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 478544f77ff..0c3db1833d8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-02-21 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mail/supercite.el (sc-mail-glom-frame): Handle a "From " line | ||
| 4 | at the start of the headers. | ||
| 5 | (sc-mail-check-from): New function. | ||
| 6 | |||
| 1 | 2009-02-20 Martin Rudalics <rudalics@gmx.at> | 7 | 2009-02-20 Martin Rudalics <rudalics@gmx.at> |
| 2 | 8 | ||
| 3 | * progmodes/python.el (python-shift-left, python-shift-right): | 9 | * progmodes/python.el (python-shift-left, python-shift-right): |
diff --git a/lisp/mail/supercite.el b/lisp/mail/supercite.el index d31f73b17a1..a37821fbefa 100644 --- a/lisp/mail/supercite.el +++ b/lisp/mail/supercite.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; supercite.el --- minor mode for citing mail and news replies | 1 | ;;; supercite.el --- minor mode for citing mail and news replies |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1997, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1993, 1997, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 4 | ;; 2008, 2009 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: 1993 Barry A. Warsaw <bwarsaw@python.org> | 6 | ;; Author: 1993 Barry A. Warsaw <bwarsaw@python.org> |
| 7 | ;; Maintainer: Glenn Morris <rgm@gnu.org> | 7 | ;; Maintainer: Glenn Morris <rgm@gnu.org> |
| @@ -700,6 +700,7 @@ the list should be unique." | |||
| 700 | "For minibuffer completion on mail field modifications.") | 700 | "For minibuffer completion on mail field modifications.") |
| 701 | (defvar sc-mail-glom-frame | 701 | (defvar sc-mail-glom-frame |
| 702 | '((begin (setq sc-mail-headers-start (point))) | 702 | '((begin (setq sc-mail-headers-start (point))) |
| 703 | ("^From " (sc-mail-check-from) nil nil) | ||
| 703 | ("^x-attribution:[ \t]+.*$" (sc-mail-fetch-field t) nil t) | 704 | ("^x-attribution:[ \t]+.*$" (sc-mail-fetch-field t) nil t) |
| 704 | ("^\\S +:.*$" (sc-mail-fetch-field) nil t) | 705 | ("^\\S +:.*$" (sc-mail-fetch-field) nil t) |
| 705 | ("^$" (list 'abort '(step . 0))) | 706 | ("^$" (list 'abort '(step . 0))) |
| @@ -712,6 +713,17 @@ the list should be unique." | |||
| 712 | (defvar curline) ; dynamic bondage | 713 | (defvar curline) ; dynamic bondage |
| 713 | 714 | ||
| 714 | ;; regi functions | 715 | ;; regi functions |
| 716 | |||
| 717 | ;; http://lists.gnu.org/archive/html/emacs-devel/2009-02/msg00691.html | ||
| 718 | ;; When rmail replies to a message with full headers visible, the "From " | ||
| 719 | ;; line can be included. | ||
| 720 | (defun sc-mail-check-from () | ||
| 721 | "Deal with a \"From \" line in the header. | ||
| 722 | Such a line should only occur at the very start of the headers." | ||
| 723 | (and sc-mail-warn-if-non-rfc822-p | ||
| 724 | (not (= (point) sc-mail-headers-start)) | ||
| 725 | (sc-mail-error-in-mail-field))) | ||
| 726 | |||
| 715 | (defun sc-mail-fetch-field (&optional attribs-p) | 727 | (defun sc-mail-fetch-field (&optional attribs-p) |
| 716 | "Insert a key and value into `sc-mail-info' alist. | 728 | "Insert a key and value into `sc-mail-info' alist. |
| 717 | If optional ATTRIBS-P is non-nil, the key/value pair is placed in | 729 | If optional ATTRIBS-P is non-nil, the key/value pair is placed in |