Mercurial > hg > xemacs-beta
annotate src/gtk-xemacs.h @ 4502:8748a3f7ceb4
Handle varalias chains, custom variables in #'user-variable-p.
src/ChangeLog addition:
2008-08-23 Aidan Kehoe <kehoea@parhasard.net>
* eval.c (Fuser_variable_p): Moved to symbols.c
* symbols.c (Fcustom_variable_p): Moved here from custom.el.
(user_variable_alias_check_fun): Mapper function used in
`user-variable-p'.
(Fuser_variable_p): Moved here from eval.c, to allow it to examine
the variable alias chain. Expanded to check each entry in the
variable alias chain for signs of being a user variable;
documentation updated, noting the differences between GNU's
behaviour and ours (ours is a little more sensible)
(map_varalias_chain): New.
Given a C function, call it at least once for each symbol in a
symbol's varalias chain, signalling an error if there's a cycle,
and returning immediately if the function returns something other
than Qzero.
(Fdefvaralias): Correct the use of the word "alias" in the
docstring and in the argument name. Motivate this in a
comment. Add support for a DOCSTRING argument, something GNU has
too, and document this
* gc.c (vars_of_gc): Start the docstring of
`garbage-collection-messages' with an asterisk, to indicate that
it's a user variable.
lisp/ChangeLog addition:
2008-08-23 Aidan Kehoe <kehoea@parhasard.net>
* custom.el: Move #'custom-variable-p to C, since it's now called
from #'user-variable-p.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 23 Aug 2008 16:38:51 +0200 |
parents | 543769b89fed |
children | db7068430402 |
rev | line source |
---|---|
462 | 1 /* gtk-xemacs.h |
2 ** | |
3 ** Description: A widget to encapsulate a XEmacs 'text widget' | |
4 ** | |
5 ** Created by: William M. Perry | |
6 ** Copyright (c) 2000 William M. Perry <wmperry@gnu.org> | |
7 ** | |
8 */ | |
9 | |
10 #ifndef __GTK_XEMACS_H__ | |
11 #define __GTK_XEMACS_H__ | |
12 | |
13 #include <config.h> | |
14 #include "frame.h" | |
15 #include <gdk/gdk.h> | |
16 #include <gtk/gtkfixed.h> | |
17 | |
1743 | 18 BEGIN_C_DECLS |
462 | 19 |
20 #define GTK_XEMACS(obj) GTK_CHECK_CAST (obj, gtk_xemacs_get_type (), GtkXEmacs) | |
21 #define GTK_XEMACS_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_xemacs_get_type (), GtkXEmacsClass) | |
22 #define GTK_IS_XEMACS(obj) GTK_CHECK_TYPE (obj, gtk_xemacs_get_type ()) | |
23 #define GTK_XEMACS_FRAME(obj) GTK_XEMACS (obj)->f | |
24 | |
25 typedef struct _GtkXEmacs GtkXEmacs; | |
26 typedef struct _GtkXEmacsClass GtkXEmacsClass; | |
27 | |
28 struct _GtkXEmacs | |
29 { | |
30 GtkFixed fixed; | |
31 struct frame *f; | |
32 }; | |
33 | |
34 struct _GtkXEmacsClass | |
35 { | |
36 GtkFixedClass parent_class; | |
37 }; | |
38 | |
39 guint gtk_xemacs_get_type (void); | |
40 GtkWidget *gtk_xemacs_new (struct frame *f); | |
41 | |
1743 | 42 END_C_DECLS |
462 | 43 |
44 #endif /* __GTK_XEMACS_H__ */ |