annotate src/energize.h @ 86:364816949b59 r20-0b93

Import from CVS: tag r20-0b93
author cvs
date Mon, 13 Aug 2007 09:09:02 +0200
parents 376386a54a3c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /****************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 ***
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 *** Copyright (c) 1990 by Sun/Lucid, All Rights Reserved.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 *** Copyright (c) 1991-1993 by Lucid, Inc. All Rights Reserved.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ***
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 *****************************************************************************/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 /* Synched up with: Not in FSF. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 #ifndef _XEMACS_ENERGIZE_H_
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 #define _XEMACS_ENERGIZE_H_
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 #ifndef ENERGIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ERROR! energize.h is an Energize-only file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 #include <connection.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 #include <editorreq.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 #include <editorconn.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 #include <editoption.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 #include <request.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 #include "hash.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 #include "extents.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 /* Product name... */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 #ifndef NCR486
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 # define IDENTITY_CRISIS "Energize"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 # define IDENTITY_CRISIS "C++ Workbench"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 /* This represents the emacs connection to the Energize server.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 typedef struct {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 Connection* conn; /* connection to Energize */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 Lisp_Object proc; /* Emacs process */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 c_hashtable binfo_hash; /* hashtable for buffers */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 Lisp_Object gc_save; /* Objects saved for GC */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 int major; /* protocol version number */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 int minor;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 c_hashtable image_table; /* glyphs table */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 } Editor;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 typedef BITS32 EId; /* Energize id */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 /* In general, we keep positions in Energize form in our data structures,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 and only convert to Emacs positions as needed for Emacs operations. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 typedef BITS32 EnergizePos; /* Energize position = (Emacs position-1) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 /* Generic extent data and classes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 This "seal" junk is a completely bogus data type system that should be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 replaced with something implemented using Lisp_Records.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 #define GDATA_CLASS_SEAL 0x12345678
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 #define GDATA_SEAL 0x67654321
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 #define EXTENT_SEAL 0x45612378
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 #define DUP_SEAL 0x13524768
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 #define BUF_INFO_SEAL 0x5F7F6F5F
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 #define OBJECT_SEAL_MASK 0x7FFFFFFF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 #define OBJECT_FREE_BIT 0x80000000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 #define OBJECT_SEAL(x) (((Energize_Extent_Data *)(x))->seal & OBJECT_SEAL_MASK)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 #define OBJECT_FREE(x) (((Energize_Extent_Data *)(x))->seal & OBJECT_FREE_BIT)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 #define SET_OBJECT_FREE(x) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 { \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 /* if (OBJECT_FREE (x)) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 error ("Free'ing already freed object 0x%x", x); \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 ((Energize_Extent_Data *)(x))->seal |= OBJECT_FREE_BIT; \ */ \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 xfree(x); \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 #define CHECK_OBJECT(x) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 { /* if (OBJECT_FREE (x)) error ("Using freed object 0x%x", x); */ }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 #define PUT_ABLE_OBJECT(x) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 ((OBJECT_SEAL(x) == BUF_INFO_SEAL) || (OBJECT_SEAL(x) == EXTENT_SEAL) || \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (OBJECT_SEAL(x) == GDATA_CLASS_SEAL) || (OBJECT_SEAL(x) == GDATA_SEAL))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 enum Energize_Object_Free_Type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 { OFT_MAPHASH, OFT_STANDALONE, OFT_GC };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 typedef struct
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 int seal; /* must be GDATA_CLASS_SEAL */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 EId id;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 short flags;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 GLYPH glyph;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 } GDataClass;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 typedef struct
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 int seal; /* must be GDATA_SEAL */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 EId id;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 GDataClass *cl;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 GLYPH glyph;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 short flags;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 short attribute; /* graphic attribute for extent chars */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 short modified_state;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 } GenericData;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 #ifdef I18N4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 typedef struct
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 Bufpos pos, endpos; /* emacs buffer start & end positions */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 int eucsize; /* number of EUC bytes to encode */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 } WCharMapRec;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 typedef struct
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 int valid; /* flag */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 int modiff_stamp; /* val of BUF_MODIFF(buffer) at last update */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 int mapsize; /* number of elements in wc_map */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 WCharMapRec *map; /* where's the beef? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 } WCharSizeTable;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 /* Internal, Energize-specific information about each Energize-created extent.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 typedef struct Energize_Extent_Data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 int seal; /* must be EXTENT_SEAL */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 EId id;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 int extentType; /* oneof CEAttribute, CEAbbreviation, etc. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 Lisp_Object extent; /* corresponding extent (never nil) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 struct x_pixmap *start_pixmap;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 struct x_pixmap *end_pixmap;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 int warn_modify;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 union
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 struct
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 { /* CEAttribute */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 int attrValue;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 } attr;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 struct
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 { /* CEAbbreviation */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 Boolean isOpened;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 } abbrev;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 struct
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 { /* CEGeneric */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 GenericData* gData;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 } generic;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 } u;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 } Energize_Extent_Data;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 /* Internal, Energize-specific information about each Energize-created buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 typedef struct
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 int seal; /* must be BUF_INFO_SEAL */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 EId id; /* Energize id for buffer */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 int flags; /* e.g. CBReadOnly or CBStandard */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 Editor *editor; /* corresponding editor structure */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 c_hashtable id_to_object; /* energize ids to extents, gdata & classes */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 Lisp_Object emacs_buffer; /* corresponding emacs buffer */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 char modified_state; /* modified state as notified to Energize */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 char editable; /* Energize authorized user to edit buffer */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 Lisp_Object output_mark; /* analog to process_mark (see process.c) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 char *buffer_type; /* string denoting buffer type; see below */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 int* p_sheet_ids; /* psheets associated with the buffer */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 int n_p_sheets; /* number of p_sheets */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 int* note_ids; /* id of opened postit notes */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 int n_notes; /* number of notes */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 Lisp_Object frame; /* frame that was created for the buffer */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 #ifdef I18N4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 WCharSizeTable wcmap; /* for char_offset <-> buffer_pos xlation */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 } BufferInfo;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 /* "Types" of buffers, according to the Energize server.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 Source files: SOURCE source_class, source_as_component_class
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 Projects: PROJECT project_class
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 Log Files: LOG_FILE log_file_class
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 Debugger log: DEBUGGER debugger_tool_class
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 Breakpoints: BREAKPOINT breaklist_class
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 Unix Man: UNIX_MANUAL unix_man_file_class (no longer used?)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 File: FILE lazy_file_class
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 Energize: ENERGIZE_BUFFER energize_class
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 Unspecified: UNINITIALIZED_BUFFER_TYPE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 Unknown: UNKNOWN_BUFFER_TYPE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 There should be a BROWSER type as well, but there isn't, so we have
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 a kludge to fake it up in lisp.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 struct buffer_type_struct
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 char *kernel_name;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 char *elisp_name;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 static struct buffer_type_struct
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 kernel_buffer_types_to_elisp_buffer_types_vector[] =
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 { "FILE", "energize-source-buffer" }, /* #### Is this necessary? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 { "SOURCE", "energize-source-buffer" },
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 { "PROJECT", "energize-project-buffer" },
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 { "LOG_FILE", "energize-log-file-buffer" },
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 { "DEBUGGER", "energize-debugger-buffer" },
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 { "BREAKPOINT", "energize-breakpoint-buffer" },
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 { "UNIX_MANUAL", "energize-unix-manual-buffer" },
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 { "ENERGIZE_BUFFER", "energize-top-level-buffer" },
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 /* { "CADILLAC_BUFFER", "energize-top-level-buffer" }, /* #### rename me */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 /* { "POSTIT", "energize-postit-buffer-type" }, */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 /* #### There needs to be a "browser" buffer type in here too */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 { 0 , 0 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 #define UNINITIALIZED_BUFFER_TYPE "energize-unspecified-buffer"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 #define UNKNOWN_BUFFER_TYPE "energize-unknown-buffer"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 Energize_Extent_Data *energize_extent_data (EXTENT);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 #endif /* _XEMACS_ENERGIZE_H_ */