From: tmorioka Date: Sat, 1 Mar 1997 04:06:22 +0000 (+0000) Subject: (eliminate-top-spaces): New inline-function; copied from tl-str.el. X-Git-Tag: Hokutetsu-Ishikawa-new~211 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=3e1ce8804f239ce994eadd00e538c0ecc267ff21;p=elisp%2Fsemi.git (eliminate-top-spaces): New inline-function; copied from tl-str.el. --- diff --git a/mime-def.el b/mime-def.el index 28f7ef1..4cc7917 100644 --- a/mime-def.el +++ b/mime-def.el @@ -3,7 +3,7 @@ ;; Copyright (C) 1995,1996,1997 Free Software Foundation, Inc. ;; Author: MORIOKA Tomohiko -;; Version: $Id: mime-def.el,v 0.35 1997-02-28 06:46:48 tmorioka Exp $ +;; Version: $Id: mime-def.el,v 0.36 1997-03-01 04:06:22 tmorioka Exp $ ;; Keywords: definition, MIME, multimedia, mail, news ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces). @@ -548,6 +548,12 @@ ROT47 will be performed for Japanese text in any case." ;;; @ Other Utility ;;; +(defsubst eliminate-top-spaces (string) + "Eliminate top sequence of space or tab in STRING." + (if (string-match "^[ \t]+" string) + (substring string (match-end 0)) + string)) + (defun call-after-loaded (module func &optional hook-name) "If MODULE is provided, then FUNC is called. Otherwise func is set to MODULE-load-hook.