Mercurial > hg > xemacs-beta
annotate lisp/gtk.el @ 4347:6b571dc4ba3f
Rework init-file migration.
2007-12-19 Mike Sperber <mike@xemacs.org>
* startup.el (user-init-file-migration-in-order-p): Factored out
check.
(maybe-migrate-user-init-file):
(migrate-user-init-file): Don't do a backup of ~/.emacs anymore.
Instead, make only a manual adjustment of the file, if at all,
i.e. don't go through customize magic anymore.
(unmigrate-user-init-file): Don't use customize to set
`load-home-init-file' anymore.
(set-load-home-init-file): Add; performs the modification
previously done through customize.
(unmigrate-user-init-file): Use `set-load-home-init-file' instead
of customize.
(command-line-1): Only wait for the first event if we're not going
to ask about migration.
author | Mike Sperber <sperber@deinprogramm.de> |
---|---|
date | Fri, 21 Dec 2007 16:51:30 +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))) |