annotate lisp/tl/tl-atype.el @ 155:43dd3413c7c7 r20-3b4

Import from CVS: tag r20-3b4
author cvs
date Mon, 13 Aug 2007 09:39:39 +0200
parents c0c698873ce1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
1 ;;; tl-atype.el --- atype functions
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
2
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
3 ;; Copyright (C) 1994,1995,1996 Free Software Foundation, Inc.
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 76
diff changeset
4 ;; Copyright (C) 1997 MORIOKA Tomohiko
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
5
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
6 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 76
diff changeset
7 ;; Version: $Id: tl-atype.el,v 1.3 1997/06/06 00:57:42 steve Exp $
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
8 ;; Keywords: atype
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
9
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 76
diff changeset
10 ;; This file is part of XEmacs.
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
11
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
12 ;; This program is free software; you can redistribute it and/or
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
13 ;; modify it under the terms of the GNU General Public License as
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
14 ;; published by the Free Software Foundation; either version 2, or (at
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
15 ;; your option) any later version.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
16
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
17 ;; This program is distributed in the hope that it will be useful, but
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
20 ;; General Public License for more details.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
21
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
22 ;; You should have received a copy of the GNU General Public License
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
25 ;; Boston, MA 02111-1307, USA.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
26
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
27 ;;; Code:
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
28
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
29 (require 'tl-list)
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 76
diff changeset
30 (require 'atype)
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
31
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
32
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
33 ;;; @ field
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
34 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
35
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
36 (defalias 'fetch-field 'assoc)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
37 (defalias 'fetch-field-value 'assoc-value)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
38 (defalias 'put-field 'put-alist)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
39 (defalias 'delete-field 'del-alist)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
40
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
41 (defun put-fields (tp c)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
42 (catch 'tag
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
43 (let ((r tp) f ret)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
44 (while r
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
45 (setq f (car r))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
46 (if (not (if (setq ret (fetch-field (car f) c))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
47 (equal (cdr ret)(cdr f))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
48 (setq c (cons f c))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
49 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
50 (throw 'tag 'error))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
51 (setq r (cdr r))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
52 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
53 c))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
54
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
55
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
56 ;;; @ end
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
57 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
58
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
59 (provide 'tl-atype)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
60
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
61 ;;; tl-atype.el ends here