Mercurial > hg > xemacs-beta
annotate lib-src/update-custom.sh @ 5632:bd80d9103fc8
Integrate CL code better into core, remove obsolete compatibility code.
lisp/ChangeLog addition:
2011-12-30 Aidan Kehoe <kehoea@parhasard.net>
* bytecomp.el:
Call #'cl-compile-time-init explicitly here, don't rely on
bytecomp-load-hook for what is core functionality.
* cl-extra.el:
* cl-extra.el (require):
* cl-extra.el (make-random-state):
* cl-extra.el (random-state-p):
* cl-extra.el (make-hashtable): Removed.
* cl-extra.el (make-weak-hashtable): Removed.
* cl-extra.el (make-key-weak-hashtable): Removed.
* cl-extra.el (make-value-weak-hashtable): Removed.
* cl-extra.el ('hashtablep): Removed.
* cl-extra.el ('hashtable-fullness): Removed.
* cl-extra.el ('hashtable-test-function): Removed.
* cl-extra.el ('hashtable-type): Removed.
* cl-extra.el ('hashtable-size): Removed.
* cl-extra.el ('copy-hashtable): Removed.
* cl-extra.el (cl-builtin-gethash): Removed.
* cl-extra.el (cl-builtin-remhash): Removed.
* cl-extra.el (cl-builtin-clrhash): Removed.
* cl-extra.el (cl-builtin-maphash): Removed.
* cl-extra.el ('cl-gethash): Removed.
* cl-extra.el ('cl-puthash): Removed.
* cl-extra.el ('cl-remhash): Removed.
* cl-extra.el ('cl-clrhash): Removed.
* cl-extra.el ('cl-maphash): Removed.
* cl-extra.el ('cl-make-hash-table): Removed.
* cl-extra.el ('cl-hash-table-p): Removed.
* cl-extra.el ('cl-hash-table-count): Removed.
* cl-extra.el (cl-prettyexpand):
* cl-extra.el (names):
Remove compatibility aliases from this file.
In #'cl-prettyexpand, if FULL is nil, don't expand return-from
either, for symmetry with not expanding block.
Drop cl-extra-load-hook, it's useless when cl-extra is dumped
(since third-party code can't use it, and dumped code shouldn't
use it.)
* cl-macs.el:
* cl-macs.el (cl-pop2):
* cl-macs.el (defun*):
* cl-macs.el (cl-parse-loop-clause):
Remove some no-longer-needed compatibility kludges.
* cl.el:
* cl.el ('cl-map-extents): Removed.
* cl.el (cl-random-time):
* cl.el (list*): New, moved back from subr.el, given a shorter
implementation.
* cl.el ('cl-member): Removed.
* cl.el ('cl-floor): Removed.
* cl.el ('cl-ceiling): Removed.
* cl.el ('cl-truncate): Removed.
* cl.el ('cl-round): Removed.
* cl.el ('cl-mod): Removed.
Remove some compatibility aliases; these may conflict with
package usage, in which case the packages need to be updated, the
new names are available in 21.4, and that's the most recent
version we support.
* cl.el (cl-hacked-flag): Removed.
* cl.el (cl-hack-byte-compiler): Removed.
* subr.el:
* subr.el (list*): Moved back to cl.el.
* update-elc-2.el (batch-update-elc-2):
* update-elc.el (do-autoload-commands):
Add an autoload for cl-compile-time-init in these two files, they
run on bare temacs, auto-autoload isn't available to them, and now
bytecomp calls cl-compile-time-init explicitly.
* cl-compat.el: Removed. This file was long obsolete.
man/ChangeLog addition:
2011-12-30 Aidan Kehoe <kehoea@parhasard.net>
* cl.texi (Top):
* cl.texi (Usage):
* cl.texi (Organization):
* cl.texi (Efficiency Concerns):
* cl.texi (Common Lisp Compatibility):
Remove documentation of cl-compat, now it's deleted.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Fri, 30 Dec 2011 16:05:31 +0000 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
428 | 1 #!/bin/sh |
2 ### update-custom.sh --- update Customize group dependencies | |
3 | |
4 # Author: Hrvoje Niksic, based on update-autoloads.el by | |
5 # Jamie Zawinski, Ben Wing, Martin Buchholz, and Steve Baur | |
6 # Maintainer: Hrvoje Niksic | |
7 # Keywords: internal | |
8 | |
9 # This file is part of XEmacs. | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
10 # |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
11 # XEmacs is free software: you can redistribute it and/or modify it |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
12 # under the terms of the GNU General Public License as published by the |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
13 # Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
14 # option) any later version. |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
15 # |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
16 # XEmacs is distributed in the hope that it will be useful, but WITHOUT |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
17 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
18 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
19 # for more details. |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
20 # |
428 | 21 # You should have received a copy of the GNU General Public License |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
22 # along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
428 | 23 |
24 ### Commentary: | |
25 | |
26 # This is much simpler than update-autoloads.el. All we need to do is | |
27 # compute a list of directories we want to use, and feed it to | |
28 # Custom-make-dependencies. End of story. | |
29 | |
30 ### Code: | |
31 | |
32 set -eu | |
33 | |
34 # get to the right directory | |
35 test ! -d ./lisp -a -d ../lisp && cd .. | |
36 if test ! -d ./lisp ; then | |
37 echo $0: neither ./lisp/ nor ../lisp/ exist | |
38 exit 1 | |
39 fi | |
40 | |
41 test -z "$EMACS" && EMACS="./src/xemacs" | |
42 echo " (using $EMACS)" | |
43 | |
44 export EMACS | |
45 | |
46 EMACS_DIR=`cd \`dirname $EMACS\` && pwd`; | |
47 # Account for various system automounter configurations | |
48 if test -d "/net"; then | |
49 if test -d "/tmp_mnt/net"; then tdir="/tmp_mnt/net"; else tdir="/tmp_mnt"; fi | |
50 EMACS_DIR=`echo "$EMACS_DIR" | \ | |
51 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"` | |
52 fi | |
53 REAL="$EMACS_DIR/`basename $EMACS`" | |
54 | |
55 echo "Rebuilding custom-loads with $REAL..." | |
56 | |
57 if [ "`uname -r | sed 's/\(.\).*/\1/'`" -gt 4 ]; then | |
58 echon() | |
59 { | |
60 /bin/echo $* '\c' | |
61 } | |
62 else | |
63 echon() | |
64 { | |
65 echo -n $* | |
66 } | |
67 fi | |
68 | |
69 # Compute patterns to ignore when searching for files | |
70 ignore_dirs="" | |
71 | |
72 # Only use Mule XEmacs to build Mule-specific autoloads & custom-loads. | |
73 echon "Checking for Mule support..." | |
74 lisp_prog='(princ (featurep (quote mule)))' | |
75 mule_p="`$EMACS -batch -q -no-site-file -eval \"$lisp_prog\"`" | |
76 if test "$mule_p" = nil ; then | |
77 echo No | |
78 ignore_dirs="$ignore_dirs mule" | |
79 else | |
80 echo Yes | |
81 fi | |
82 | |
83 echon "Checking directories..." | |
84 dirs=lisp/ | |
85 for dir in lisp/*; do | |
86 if test -d $dir \ | |
87 -a $dir != lisp/CVS \ | |
88 -a $dir != lisp/SCCS; then | |
89 for ignore in $ignore_dirs; do | |
90 if test $dir = lisp/$ignore; then | |
91 continue 2 | |
92 fi | |
93 done | |
94 rm -f "$dir/custom-load.elc" | |
95 dirs="$dirs $dir" | |
96 fi | |
97 done | |
98 echo done | |
99 | |
100 $EMACS -batch -q -no-site-file -l cus-dep -f Custom-make-dependencies $dirs |