;; Copyright (C) 1995,1996,1997 Free Software Foundation, Inc.
;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
-;; Version: $Revision: 0.7 $
+;; Version: $Revision: 0.8 $
;; Keywords: encoded-word, MIME, multilingual, header, mail, news
;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
(require 'mel)
(require 'std11)
(require 'mime-def)
-(require 'tl-list)
+(require 'cl)
;;; @ version
;;;
(defconst eword-encode-RCS-ID
- "$Id: eword-encode.el,v 0.7 1997-02-24 02:36:07 tmorioka Exp $")
+ "$Id: eword-encode.el,v 0.8 1997-02-24 09:57:03 tmorioka Exp $")
(defconst eword-encode-version (get-version-string eword-encode-RCS-ID))
(setq field-name (buffer-substring beg (1- (match-end 0))))
(setq end (std11-field-end))
(and (find-non-ascii-charset-region beg end)
- (let ((ret (or (ASSOC (downcase field-name)
- eword-field-encoding-method-alist
- :test (function
- (lambda (str1 str2)
- (and (stringp str2)
- (string= str1
- (downcase str2))
- ))))
+ (let ((ret (or (let ((fname (downcase field-name)))
+ (assoc-if
+ (function
+ (lambda (str)
+ (and (stringp str)
+ (string= fname (downcase str2))
+ )))
+ eword-field-encoding-method-alist))
(assq t eword-field-encoding-method-alist)
)))
(if ret
(setq str
(encode-mime-charset-string
str
- (or (cdr (ASSOC
- "x-nsubject"
- eword-field-encoding-method-alist
- :test
+ (or (cdr (assoc-if
(function
- (lambda (str1 str2)
- (and (stringp str2)
- (string= str1
+ (lambda (str)
+ (and (stringp str)
+ (string= "x-nsubject"
(downcase str2))
- )))))
+ )))
+ eword-field-encoding-method-alist))
'iso-2022-jp-2)))
)
(insert (concat "\nX-Nsubject: " str))