Mercurial > hg > xemacs-beta
annotate etc/tests/external-widget/Makefile @ 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 | ac2d302a0011 |
children | 4b173ad71786 03ab78e48ef6 |
rev | line source |
---|---|
2 | 1 CFLAGS += -Xc -g -DTOOLTALK |
2 EMACSHOME = ../../.. | |
3 EMACSLIBDIR = $(EMACSHOME)/editor/src | |
4 EMACSINCLUDEDIR = $(EMACSHOME)/editor/src | |
5 MOTIFHOME = /opt/SUNWmotif | |
6 | |
7 CPPFLAGS += -I$(OPENWINHOME)/include | |
8 LDFLAGS += -L$(OPENWINHOME)/lib -R$(OPENWINHOME)/lib | |
9 | |
10 CPPFLAGS += -I$(MOTIFHOME)/include | |
11 LDFLAGS += -L$(MOTIFHOME)/lib -R$(MOTIFHOME)/lib | |
12 | |
13 CPPFLAGS += -I$(EMACSINCLUDEDIR) | |
14 LDFLAGS += -L$(EMACSLIBDIR) | |
15 | |
16 LDFLAGS += -R$(OPENWINHOME)/lib:$(EMACSLIBDIR) -g | |
17 | |
18 TM_OBJS = test-ew-motif.o | |
19 TXL_OBJS = test-ew-xlib.o | |
20 MOTIF_LIBS = -Bstatic -lextcli_Xm -Bdynamic -lXm -lXt -ltt -lX11 -lgen -lm | |
21 XLIB_LIBS = -Bstatic -lextcli_Xlib -Bdynamic -ltt -lX11 -lgen -lm | |
22 | |
23 all: test-ew-motif | |
24 | |
25 test-ew-motif: $(TM_OBJS) | |
26 $(CC) -o $@ $(LDFLAGS) $(TM_OBJS) $(MOTIF_LIBS) | |
27 | |
28 test-ew-xlib: $(TXL_OBJS) | |
29 $(CC) -o $@ $(LDFLAGS) $(TXL_OBJS) $(XLIB_LIBS) | |
30 |