Mercurial > hg > xemacs-beta
annotate tests/frame.el @ 1123:37bdd24225ef
[xemacs-hg @ 2002-11-27 07:15:02 by ben]
bug fixes, profiling debugging improvements
configure.in: Check for GCC version and only use -Wpacked in v3.
.cvsignore: Add .idb, .ilk for MS Windows VC++.
cl-macs.el: Document better.
cmdloop.el: Removed.
Remove nonworking breakpoint-on-error now that debug-on-error
works as documented.
help.el: Extract out with-displaying-help-buffer into a more general
mechanism.
lib-complete.el: Support thunks in find-library-source-path.
startup.el: Don't catch errors when noninteractive, because that makes
stack traces from stack-trace-on-error useless.
.cvsignore: Windows shit.
alloc.c: Better redisplay-related assert.
elhash.c: Comment change.
eval.c: Don't generate large warning strings (e.g. backtraces) when they will
be discarded.
Implement debug-on-error as documented -- it will enter the
debugger and crash when an uncaught signal happens noninteractively
and we are --debug.
Better redisplay-related asserts.
frame-msw.c, frame.c, lisp.h, redisplay.c, scrollbar-gtk.c, scrollbar-x.c, signal.c, sysdep.c: Fix up documentation related to QUIT (which CANNOT garbage-collect
under any circumstances), and to redisplay critical sections.
lread.c: Add load-ignore-out-of-date-elc-files,
load-always-display-messages, load-show-full-path-in-messages for
more robust package compilation and debugging.
profile.c: Overhaul profile code. Change format to include call count and be
extensible for further info. Remove call-count-profile-table.
Add set-profiling-info. See related profile.el changes (which
SHOULD ABSOLUTELY be in the core! Get rid of xemacs-devel and
xemacs-base packages *yesterday*!).
author | ben |
---|---|
date | Wed, 27 Nov 2002 07:15:36 +0000 |
parents | 360340f9fd5f |
children | 931aaa7a6b37 |
rev | line source |
---|---|
108 | 1 ;;; Test geometry settings for frames |
2 (defmacro check-frame-geometry (xx yy) | |
3 `(loop for frame in (list nil (selected-frame)) | |
4 do | |
5 (assert (eq (frame-property frame 'top) ,yy)) | |
6 (assert (eq (frame-property frame 'left) ,xx)) | |
7 (assert (eq (frame-property frame 'top) ,yy)) | |
8 (assert (eq (frame-property frame 'left) ,xx)) | |
9 (loop for plist in | |
10 (list (frame-properties) | |
11 (frame-properties nil) | |
12 (frame-properties (selected-frame))) | |
13 do | |
14 (assert (eq (plist-get plist 'top) ,yy)) | |
15 (assert (eq (plist-get plist 'left) ,xx))))) | |
16 | |
17 (loop for (x y) in '((0 0) (1 1) (3 3) (9 9) (10 20) (20 40) (40 80) (100 200)) | |
18 do | |
19 (loop for frame in (list nil (selected-frame)) | |
20 do | |
21 (set-frame-properties frame `(left ,x top ,y)) | |
22 (check-frame-geometry x y) | |
23 (set-frame-property frame 'top (+ y 3)) | |
24 (check-frame-geometry x (+ y 3)) | |
25 (set-frame-property frame 'left (+ x 3)) | |
26 (check-frame-geometry (+ x 3) (+ y 3)))) | |
27 |