From 474b8048ef3b121da75ee640af199ff39e07fae1 Mon Sep 17 00:00:00 2001 From: tmorioka Date: Mon, 24 Feb 1997 08:50:29 +0000 Subject: [PATCH] (get-version-string): New inline-function; imported from tl-str.el. --- mime-def.el | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 ;;; -- 1.7.10.4