From 3b3ffd605835446de240b6d2c1c5ad03ff85fa07 Mon Sep 17 00:00:00 2001 From: tmorioka Date: Mon, 24 Feb 1997 02:26:02 +0000 Subject: [PATCH] (eword-decode-header): New optional argument `SEPARATOR'; Use function `std11-narrow-to-header'. --- eword-decode.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eword-decode.el b/eword-decode.el index 4766709..69cc972 100644 --- a/eword-decode.el +++ b/eword-decode.el @@ -10,7 +10,7 @@ ;; Renamed: 1993/06/03 to tiny-mime.el ;; Renamed: 1995/10/03 from tiny-mime.el (split off encoder) ;; Renamed: 1997/02/22 from tm-ew-d.el -;; Version: $Revision: 0.2 $ +;; Version: $Revision: 0.3 $ ;; Keywords: encoded-word, MIME, multilingual, header, mail, news ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces). @@ -43,7 +43,7 @@ ;;; (defconst eword-decode-RCS-ID - "$Id: eword-decode.el,v 0.2 1997-02-24 02:19:57 tmorioka Exp $") + "$Id: eword-decode.el,v 0.3 1997-02-24 02:26:02 tmorioka Exp $") (defconst eword-decode-version (get-version-string eword-decode-RCS-ID)) @@ -146,13 +146,13 @@ such as a version of Net$cape)." ;;; @ for message header ;;; -(defun eword-decode-header () - "Decode MIME encoded-words in header fields." +(defun eword-decode-header (&optional separator) + "Decode MIME encoded-words in header fields. +If SEPARATOR is not nil, it is used as header separator." (interactive "*") (save-excursion (save-restriction - (narrow-to-region (goto-char (point-min)) - (progn (re-search-forward "^$" nil t) (point))) + (std11-narrow-to-header separator) (eword-decode-region (point-min) (point-max) t) ))) -- 1.7.10.4