From 3e1ce8804f239ce994eadd00e538c0ecc267ff21 Mon Sep 17 00:00:00 2001 From: tmorioka Date: Sat, 1 Mar 1997 04:06:22 +0000 Subject: [PATCH] (eliminate-top-spaces): New inline-function; copied from tl-str.el. --- mime-def.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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. -- 1.7.10.4