;;;
-;;; $Id: mel-q.el,v 1.5 1995/06/26 05:56:39 morioka Exp $
+;;; $Id: mel-q.el,v 1.8 1995/08/27 19:29:17 morioka Exp $
;;;
;;; @ constants
(setq b (match-beginning 0))
(setq e (match-end 0))
(setq str (buffer-substring b e))
- (replace-match (quoted-printable-decode-string str))
+ (delete-region b e)
+ (insert (quoted-printable-decode-string str))
))
)))
(defun q-encoding-encode-string-for-phrase (str)
(mapconcat (function
(lambda (chr)
- (cond ((or (and (<= ?A chr)(<= chr ?Z))
+ (cond ((eq chr 32) "_")
+ ((or (and (<= ?A chr)(<= chr ?Z))
(and (<= ?a chr)(<= chr ?z))
(and (<= ?0 chr)(<= chr ?9))
(memq chr '(?! ?* ?+ ?- ?/))
((eq mode 'comment)
(q-encoding-encode-string-for-comment str)
)
- ((eq mode 'phrase)
+ (t
(q-encoding-encode-string-for-phrase str)
- )
- (t (quoted-printable-encode-string str))
- ))
+ )))
(defun q-encoding-decode-string (str)
(let (q h l)
;;; @ end
;;;
-(provide 'qprint)
+(provide 'mel-q)