From: tmorioka Date: Mon, 24 Feb 1997 08:50:29 +0000 (+0000) Subject: (get-version-string): New inline-function; imported from tl-str.el. X-Git-Tag: Hokutetsu-Ishikawa-new~315 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=474b8048ef3b121da75ee640af199ff39e07fae1;p=elisp%2Fsemi.git (get-version-string): New inline-function; imported from tl-str.el. --- diff --git a/mime-def.el b/mime-def.el index 09fa769..de0a5a1 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.3 1997-02-24 01:56:02 tmorioka Exp $ +;; Version: $Id: mime-def.el,v 0.4 1997-02-24 08:50:29 tmorioka Exp $ ;; Keywords: definition, MIME, multimedia, mail, news ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces). @@ -382,6 +382,16 @@ ROT47 will be performed for Japanese text in any case." )) +;;; @ RCS version +;;; + +(defsubst get-version-string (id) + "Return a version-string from RCS ID." + (and (string-match ",v \\([0-9][0-9.][0-9.]+\\)" id) + (substring id (match-beginning 1)(match-end 1)) + )) + + ;;; @ end ;;;