Mercurial > hg > xemacs-beta
annotate lisp/gtk.el @ 4445:1d41b9bcf74f
Add `set-window-configuration/mapping' and `save-window-excursion/mapping'.
2008-04-13 Henry S. Thompson <ht@inf.ed.ac.uk>, Mike Sperber <mike@xemacs.org>
* window-xemacs.el (save-window-excursion/mapping,
set-window-configuration/mapping): Add. These function return an
alist mapping the window objects from the original window
configuration to the window objects corresponding to them in the
restored configuration.
(set-window-configuration):
(saved-window):
(root-window->saved-window):
(really-set-window-configuration):
(restore-saved-window): Record the mapping for above functions.
author | Mike Sperber <sperber@deinprogramm.de> |
---|---|
date | Sun, 13 Apr 2008 11:18:00 +0200 |
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))) |