Mercurial > hg > xemacs-beta
annotate lisp/gtk.el @ 2522:52dc9b940348
[xemacs-hg @ 2005-01-28 00:12:32 by ben]
cc-mode patch from Shyamal Prasad
xemacs/programs.texi: Updated it to reflect
current status of programming modes.
xemacs/programs.texi: New section introduces CC
Mode. Introduces customization with reference to CC Mode
manual. Also introduce C/AWK modes in prog-modes package
xemacs/programs.texi: Removed - it was
obsolete. prog-modes package documentation now contains
indentation description for old C mode
xemacs/major.texi: Add description of major mode
hooks. Cleaned up and updated programming mode descriptions.
xemacs/xemacs.texi: Updated Detailed Node listing for new
CC Mode section in programs.texi
author | ben |
---|---|
date | Fri, 28 Jan 2005 00:12:39 +0000 |
parents | 7039e6323819 |
children | b4f4e0cc90f1 |
rev | line source |
---|---|
502 | 1 (globally-declare-fboundp |
2 '(gtk-import-function-internal gtk-call-function gtk-type-name)) | |
3 | |
4 (globally-declare-boundp | |
5 '(gtk-enumeration-info)) | |
6 | |
462 | 7 (gtk-import-function nil "gdk_flush") |
8 | |
9 (defun gtk-describe-enumerations () | |
10 "Show a list of all GtkEnum or GtkFlags objects available from lisp." | |
11 (interactive) | |
12 (set-buffer (get-buffer-create "*GTK Enumerations*")) | |
13 (erase-buffer) | |
14 (let ((separator (make-string (- (window-width) 3) ?-))) | |
15 (maphash (lambda (key val) | |
16 (insert | |
17 separator "\n" | |
18 (if (stringp key) | |
19 key | |
20 (gtk-type-name key)) "\n") | |
21 (mapc (lambda (cell) | |
22 (insert (format "\t%40s == %d\n" (car cell) (cdr cell)))) val)) | |
23 gtk-enumeration-info)) | |
24 (goto-char (point-min)) | |
25 (display-buffer (current-buffer))) |