annotate lisp/prim/cus-load.el @ 192:9d35321dd38c

Added tag r20-3b22 for changeset ecf6ba7b0a10
author cvs
date Mon, 13 Aug 2007 09:57:40 +0200
parents 489f57a838ef
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
1 ;;; cus-load.el --- Batch load all available cus-load files
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
2
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
3 ;; Copyright (C) 1997 by Free Software Foundation, Inc.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
4
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
5 ;; Author: Steven L Baur <steve@altair.xemacs.org>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
6 ;; Keywords: internal, help, faces
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
7
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
8 ;; This file is part of XEmacs.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
9
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
10 ;; XEmacs is free software; you can redistribute it and/or modify it
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
11 ;; under the terms of the GNU General Public License as published by
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
13 ;; any later version.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
14
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
15 ;; XEmacs is distributed in the hope that it will be useful, but
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
18 ;; General Public License for more details.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
19
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
20 ;; You should have received a copy of the GNU General Public License
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
21 ;; along with XEmacs; see the file COPYING. If not, write to the Free
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
22 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
23 ;; 02111-1307, USA.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
24
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
25 ;;; Synched up with: Not in FSF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
26
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
27 ;;; Commentary:
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
28
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 185
diff changeset
29 ;; In FSF all of the custom loads are in a single `cus-load' file.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 185
diff changeset
30 ;; However, we have them distributed across directories, with optional
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 185
diff changeset
31 ;; incremental loading. Here we simply collect the whole set.
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
32
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 185
diff changeset
33
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
34 ;;; Code:
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
35
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 185
diff changeset
36 (defun custom-put (symbol property list)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 185
diff changeset
37 (let ((loads (get symbol property)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 185
diff changeset
38 (dolist (el list)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 185
diff changeset
39 (unless (member el loads)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 185
diff changeset
40 (setq loads (nconc loads (list el)))))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 185
diff changeset
41 (put symbol property loads)))
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
42
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 185
diff changeset
43 (mapc (lambda (dir)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 185
diff changeset
44 (load (expand-file-name "custom-load" dir) t))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 185
diff changeset
45 load-path)
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
46
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
47 (provide 'cus-load)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
48
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 161
diff changeset
49 ;;; cus-load.el ends here