From: tmorioka Date: Sat, 1 Mar 1997 02:12:48 +0000 (+0000) Subject: (replace-space-with-underline): New inline function; copied from X-Git-Tag: Hokutetsu-Ishikawa-new~215 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a6c15420516a88708f3e1f0faf6118983e0f888;p=elisp%2Fsemi.git (replace-space-with-underline): New inline function; copied from tl-str.el. --- diff --git a/mime-edit.el b/mime-edit.el index 1e06b02..ff450db 100644 --- a/mime-edit.el +++ b/mime-edit.el @@ -7,7 +7,7 @@ ;; Maintainer: MORIOKA Tomohiko ;; Created: 1994/08/21 renamed from mime.el ;; Renamed: 1997/2/21 from tm-edit.el -;; Version: $Revision: 0.49 $ +;; Version: $Revision: 0.50 $ ;; Keywords: MIME, multimedia, multilingual, mail, news ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces). @@ -121,7 +121,7 @@ ;;; (defconst mime-edit-RCS-ID - "$Id: mime-edit.el,v 0.49 1997-02-28 02:20:47 tmorioka Exp $") + "$Id: mime-edit.el,v 0.50 1997-03-01 02:12:48 tmorioka Exp $") (defconst mime-edit-version (get-version-string mime-edit-RCS-ID)) @@ -522,6 +522,7 @@ Tspecials means any character that matches with it in header must be quoted.") (defconst mime-edit-mime-map (make-sparse-keymap) "Keymap for MIME commands.") + ;;; @ keymap and menu ;;; @@ -1721,6 +1722,15 @@ Content-Transfer-Encoding: 7bit )) ))) +(defsubst replace-space-with-underline (str) + (mapconcat (function + (lambda (arg) + (char-to-string + (if (eq arg ?\ ) + ?_ + arg)))) str "") + ) + (defun mime-edit-translate-body () "Encode the tagged MIME body in current buffer in MIME compliant message." (interactive)