Mercurial > hg > xemacs-beta
annotate lisp/gtk.el @ 4619:75e7ab37b6c8
Fix query-coding-tests.el failures, non-mule ELCs, mule build.
lisp/ChangeLog addition:
2009-02-17 Aidan Kehoe <kehoea@parhasard.net>
* unicode.el (unicode-query-coding-region):
Avoid eval-when-compile where that gives incorrect results when
compiled on a non-Mule XEmacs but run on a Mule XEmacs. Fixes
problems seen by
20a807210902131835o2f25930apaffabb6b62a95e5f@mail.gmail.com ,
thank you Vin!
(An equivalent way to get the efficiency of the eval-when-compile
would be to provide two defvars, evaluated at dump time, but this
code will be in C soon enough, and we can use the relevant
preprocessor constants there.)
| author | Aidan Kehoe <kehoea@parhasard.net> |
|---|---|
| date | Tue, 17 Feb 2009 08:35:13 +0000 |
| 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))) |
