Mercurial > hg > xemacs-beta
annotate lisp/gtk.el @ 4415:bceb3e285ae7
case-tests.el: fix it on non-DEBUG_XEMACS; save standard-case-table, use it
2008-01-30 Aidan Kehoe <kehoea@parhasard.net>
* automated/case-tests.el (pristine-case-table):
New var, reflecting the standard case table before case-table.el
messes with it.
* automated/case-tests.el:
Call Skip-Test-Unless correctly, following Vin's report of
20a807210801300635v7533d26rdb32a8d82fb4239b@mail.gmail.com .
Use pristine-case-table, add in a couple more tests.
* automated/test-harness.el (test-harness-from-buffer):
Update the error message in the light of tests skipped for other
reasons (not to do with absent packages). In this case, because
we're exposing diagnostics in a DEBUG_XEMACS build that are no
appropriate to expose to non-DEBUG_XEMACS builds.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Wed, 30 Jan 2008 22:33:29 +0100 |
parents | b4f4e0cc90f1 |
children | db7068430402 |
rev | line source |
---|---|
502 | 1 (globally-declare-fboundp |
4103 | 2 '(gtk-import-function-internal |
3 gtk-call-function | |
4 gtk-type-name | |
5 gtk-import-function)) | |
502 | 6 |
7 (globally-declare-boundp | |
8 '(gtk-enumeration-info)) | |
9 | |
462 | 10 (gtk-import-function nil "gdk_flush") |
11 | |
12 (defun gtk-describe-enumerations () | |
13 "Show a list of all GtkEnum or GtkFlags objects available from lisp." | |
14 (interactive) | |
15 (set-buffer (get-buffer-create "*GTK Enumerations*")) | |
16 (erase-buffer) | |
17 (let ((separator (make-string (- (window-width) 3) ?-))) | |
18 (maphash (lambda (key val) | |
19 (insert | |
20 separator "\n" | |
21 (if (stringp key) | |
22 key | |
23 (gtk-type-name key)) "\n") | |
24 (mapc (lambda (cell) | |
25 (insert (format "\t%40s == %d\n" (car cell) (cdr cell)))) val)) | |
26 gtk-enumeration-info)) | |
27 (goto-char (point-min)) | |
28 (display-buffer (current-buffer))) |