Mercurial > hg > xemacs-beta
annotate nt/installer/Wise/files.py @ 4506:bd28481bb0e1
Port #'window-buffer-height, #'fit-window-to-buffer, & window, buf, functions.
lisp/ChangeLog addition:
2008-08-31 Aidan Kehoe <kehoea@parhasard.net>
* window.el (only-window-p): New.
Check if WINDOW is the only window in some context, normally its
frame.
(one-window-p):
Implemented this in terms of #'only-window-p, calling it on the
selected window.
(window-buffer-height): Uncomment this, make it work.
(count-screen-lines): Support a BUFFER argument.
(fit-window-to-buffer): Uncomment this, correct its implementation
to work with XEmacs.
* help.el (temp-buffer-resize-mode): New. Name taken from GNU,
implementation our own.
* (resize-temp-buffer-window): New. GNU-compatible alias for
#'shrink-window-if-larger-than-buffer.
* dumped-lisp.el (preloaded-file-list): Move easy-mmode before
help, now that the latter uses #'define-minor-mode.
* frame.el: Point to #'temp-buffer-resize-mode in a comment.
Some of this code is from GNU; help.el CVS version 1.327 of
2007-03-21, window.el CVS version 1.122, of 2007-06-24. Both these
are GPLV2 or later.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 31 Aug 2008 12:26:46 +0200 |
parents | 74fd4e045ea6 |
children |
rev | line source |
---|---|
398 | 1 import os |
2 import dirs | |
3 | |
4 def listdir_recursive(basedir): | |
5 ret = [] | |
6 for f in os.listdir(basedir): | |
7 if os.path.isfile(basedir+"\\"+f): | |
8 ret.append(f) | |
9 elif os.path.isdir(basedir+"\\"+f): | |
10 for f1 in listdir_recursive(basedir+"\\"+f): | |
11 ret.append(f+"\\"+f1) | |
12 return ret | |
13 | |
14 install = [] | |
15 | |
16 for f in os.listdir(dirs.source+"\\lib-src"): | |
17 if f == "DOC" or f[-4:]==".exe": | |
18 install.append((f,dirs.source+"\\lib-src",dirs.bin_dst)) | |
19 | |
20 | |
21 for f in ['runemacs.exe', 'xemacs.exe']: | |
22 install.append((f,dirs.source+"\\src",dirs.bin_dst)) | |
23 | |
24 for f in listdir_recursive(dirs.source+"\\lisp"): | |
25 install.append((f,dirs.source+"\\lisp",dirs.lisp_dst)) | |
26 | |
27 for f in listdir_recursive(dirs.source+"\\etc"): | |
28 install.append((f,dirs.source+"\\etc",dirs.etc_dst)) | |
29 | |
30 | |
31 for f in os.listdir(dirs.source+"\\info"): | |
32 install.append((f,dirs.source+"\\info",dirs.info_dst)) | |
33 | |
34 | |
35 | |
36 |