diff options
| author | Glenn Morris | 2010-03-17 23:13:45 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-03-17 23:13:45 -0700 |
| commit | 88b8d18e9219635a84c3a3668927ebb7ba32e432 (patch) | |
| tree | a7e02d35ceb405130a3d3bcccc6b55779052acfa /lisp | |
| parent | fa61430f7d80d823c84215f2788f5bf7120b2bb2 (diff) | |
| download | emacs-88b8d18e9219635a84c3a3668927ebb7ba32e432.tar.gz emacs-88b8d18e9219635a84c3a3668927ebb7ba32e432.zip | |
Remove supercite.el's need for sendmail.el.
* mail/supercite.el: Don't require sendmail.
(mh-in-header-p): Declare rather than using with-no-warnings.
(sc-no-blank-line-or-header): Use rfc822-goto-eoh rather than
mail-header-end. Don't bind mysterious variable `kill-lines-magic'.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/supercite.el | 27 |
2 files changed, 20 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 407d700c289..5dab389647d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2010-03-18 Glenn Morris <rgm@gnu.org> | 1 | 2010-03-18 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * mail/supercite.el: Don't require sendmail. | ||
| 4 | (mh-in-header-p): Declare rather than using with-no-warnings. | ||
| 5 | (sc-no-blank-line-or-header): Use rfc822-goto-eoh rather than | ||
| 6 | mail-header-end. Don't bind mysterious variable `kill-lines-magic'. | ||
| 7 | |||
| 3 | * calendar/cal-french.el: Convert to utf-8. | 8 | * calendar/cal-french.el: Convert to utf-8. |
| 4 | 9 | ||
| 5 | * files.el (interpreter-mode-alist): Use emacs-lisp-mode for | 10 | * files.el (interpreter-mode-alist): Use emacs-lisp-mode for |
diff --git a/lisp/mail/supercite.el b/lisp/mail/supercite.el index f3636c6504f..9144be89e96 100644 --- a/lisp/mail/supercite.el +++ b/lisp/mail/supercite.el | |||
| @@ -34,7 +34,6 @@ | |||
| 34 | 34 | ||
| 35 | 35 | ||
| 36 | (require 'regi) | 36 | (require 'regi) |
| 37 | (require 'sendmail) ;; For mail-header-end. | ||
| 38 | 37 | ||
| 39 | ;; start user configuration variables | 38 | ;; start user configuration variables |
| 40 | ;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | 39 | ;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv |
| @@ -1484,18 +1483,22 @@ non-nil." | |||
| 1484 | "Does nothing. Use this instead of nil to get a blank header." | 1483 | "Does nothing. Use this instead of nil to get a blank header." |
| 1485 | ()) | 1484 | ()) |
| 1486 | 1485 | ||
| 1487 | (defun sc-no-blank-line-or-header() | 1486 | (declare-function mh-in-header-p "mh-utils" ()) |
| 1487 | |||
| 1488 | (defun sc-no-blank-line-or-header () | ||
| 1488 | "Similar to `sc-no-header' except it removes the preceding blank line." | 1489 | "Similar to `sc-no-header' except it removes the preceding blank line." |
| 1489 | (if (not (bobp)) | 1490 | (and (not (bobp)) |
| 1490 | (if (and (eolp) | 1491 | (eolp) |
| 1491 | (progn (forward-line -1) | 1492 | (progn (forward-line -1) |
| 1492 | (or (= (point) (mail-header-end)) | 1493 | (or (= (point) |
| 1493 | (and (eq major-mode 'mh-letter-mode) | 1494 | (save-excursion |
| 1494 | (with-no-warnings | 1495 | (rfc822-goto-eoh) |
| 1495 | (mh-in-header-p)))))) | 1496 | (line-beginning-position 2))) |
| 1496 | (progn (forward-line) | 1497 | (and (eq major-mode 'mh-letter-mode) |
| 1497 | (let ((kill-lines-magic t)) | 1498 | (mh-in-header-p)))) |
| 1498 | (kill-line)))))) | 1499 | (progn |
| 1500 | (forward-line) | ||
| 1501 | (kill-line)))) | ||
| 1499 | 1502 | ||
| 1500 | (defun sc-header-on-said () | 1503 | (defun sc-header-on-said () |
| 1501 | "\"On <date>, <from> said:\" unless: | 1504 | "\"On <date>, <from> said:\" unless: |