X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=eword-decode.el;h=3fca9eda88f03cfc760e679786044ac9490ca955;hb=e9b4524fd90a96d74a0ab0b352b61e59c348a768;hp=90d0196626be4df57e6a4ed2b1cd0c8670017146;hpb=93f8d4d327d42b848ed949aa9a077fa89ef355f5;p=elisp%2Fsemi.git diff --git a/eword-decode.el b/eword-decode.el index 90d0196..3fca9ed 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.9 $ +;; Version: $Revision: 0.14 $ ;; Keywords: encoded-word, MIME, multilingual, header, mail, news ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces). @@ -41,7 +41,7 @@ ;;; (defconst eword-decode-RCS-ID - "$Id: eword-decode.el,v 0.9 1997-02-25 06:35:29 tmorioka Exp $") + "$Id: eword-decode.el,v 0.14 1997-02-27 08:56:45 tmorioka Exp $") (defconst eword-decode-version (get-version-string eword-decode-RCS-ID)) @@ -167,14 +167,13 @@ such as a version of Net$cape)." (replace-match "\\1\\6") (goto-char (point-min)) ) - (let (charset encoding text) - (while (re-search-forward eword-encoded-word-regexp nil t) - (insert (eword-decode-encoded-word - (prog1 - (buffer-substring (match-beginning 0) (match-end 0)) - (delete-region (match-beginning 0) (match-end 0)) - ) must-unfold)) - )) + (while (re-search-forward eword-encoded-word-regexp nil t) + (insert (eword-decode-encoded-word + (prog1 + (buffer-substring (match-beginning 0) (match-end 0)) + (delete-region (match-beginning 0) (match-end 0)) + ) must-unfold)) + ) ))) @@ -212,7 +211,7 @@ If SEPARATOR is not nil, it is used as header separator." ;;; @ encoded-word decoder ;;; -(defvar tm:warning-face nil "Face used for invalid encoded-word.") +(defvar eword-warning-face nil "Face used for invalid encoded-word.") (defun eword-decode-encoded-word (word &optional must-unfold) "Decode WORD if it is an encoded-word. @@ -237,11 +236,12 @@ as a version of Net$cape)." (condition-case err (eword-decode-encoded-text charset encoding text must-unfold) (error - (and (tl:add-text-properties 0 (length word) - (and tm:warning-face - (list 'face tm:warning-face)) - word) - word))) + (and + (add-text-properties 0 (length word) + (and eword-warning-face + (list 'face eword-warning-face)) + word) + word))) )) word))