diff options
| author | Richard M. Stallman | 1998-04-30 06:39:27 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-04-30 06:39:27 +0000 |
| commit | 36f41f1db0a14a31801c7f95118ab8fdbe1d8ddb (patch) | |
| tree | af05772d4cb232ad40ab3ebfb5f99b98c388ac7e | |
| parent | 5acd84d52d6c32ef19ff36d97957479f8ec672bb (diff) | |
| download | emacs-36f41f1db0a14a31801c7f95118ab8fdbe1d8ddb.tar.gz emacs-36f41f1db0a14a31801c7f95118ab8fdbe1d8ddb.zip | |
(ethio-sera-to-fidel-mail): Use rfc822-goto-eoh.
(ethio-fidel-to-sera-mail): Likewise.
| -rw-r--r-- | lisp/language/ethio-util.el | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/lisp/language/ethio-util.el b/lisp/language/ethio-util.el index 7566cc19f57..ec3bb538f8d 100644 --- a/lisp/language/ethio-util.el +++ b/lisp/language/ethio-util.el | |||
| @@ -832,14 +832,10 @@ and the body into FIDEL using `ethio-sera-to-fidel-region'." | |||
| 832 | border) | 832 | border) |
| 833 | (save-excursion | 833 | (save-excursion |
| 834 | 834 | ||
| 835 | ;; look for the header-body separator | 835 | ;; follow RFC822 rules instead of looking for a fixed separator |
| 836 | (goto-char (point-min)) | 836 | (rfc822-goto-eoh) |
| 837 | (if (search-forward | 837 | (forward-line 1) |
| 838 | (if (eq major-mode 'rmail-mode) | 838 | (setq border (point)) |
| 839 | "\n\n" (concat "\n" mail-header-separator "\n")) | ||
| 840 | nil t) | ||
| 841 | (setq border (point)) | ||
| 842 | (error "header separator not found")) | ||
| 843 | 839 | ||
| 844 | ;; note that the point is placed at the border | 840 | ;; note that the point is placed at the border |
| 845 | (if (or (re-search-forward "^<sera>$" nil t) | 841 | (if (or (re-search-forward "^<sera>$" nil t) |
| @@ -1225,15 +1221,11 @@ The very same procedure applies to the subject field, too." | |||
| 1225 | border) | 1221 | border) |
| 1226 | (save-excursion | 1222 | (save-excursion |
| 1227 | 1223 | ||
| 1228 | ;; look for the header-body separator | 1224 | ;; follow RFC822 rules instead of looking for a fixed separator |
| 1229 | (goto-char (point-min)) | 1225 | (rfc822-goto-eoh) |
| 1230 | (if (search-forward | 1226 | (forward-line 1) |
| 1231 | (if (eq major-mode 'rmail-mode) | 1227 | (setq border (point)) |
| 1232 | "\n\n" (concat "\n" mail-header-separator "\n")) | 1228 | |
| 1233 | nil t) | ||
| 1234 | (setq border (point)) | ||
| 1235 | (error "header separator not found")) | ||
| 1236 | |||
| 1237 | ;; process body first not to change the border | 1229 | ;; process body first not to change the border |
| 1238 | ;; note that the point is already at the border | 1230 | ;; note that the point is already at the border |
| 1239 | (if (re-search-forward "\\ce" nil t) | 1231 | (if (re-search-forward "\\ce" nil t) |