aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-06-20 02:29:20 +0200
committerLars Ingebrigtsen2019-06-20 12:51:39 +0200
commite383aade0f215b3829600f8c2cb045aa81511042 (patch)
tree20adf76dff338bd374b5b0271ec74c5c712ca7dc /lisp
parent86c3d9280e13f72af1b353a473dea48b06cc8c6f (diff)
downloademacs-e383aade0f215b3829600f8c2cb045aa81511042.tar.gz
emacs-e383aade0f215b3829600f8c2cb045aa81511042.zip
Remove XEmacs compat code from cedet
* lisp/cedet/srecode/mode.el (srecode-menu-bar): * lisp/cedet/semantic/wisent/comp.el (wisent-debug-flag) (wisent-print-results): * lisp/cedet/semantic/util-modes.el (semantic-stickyfunc-indent-string) (semantic-stickyfunc-header-line-format) (semantic-highlight-func-mode-map): * lisp/cedet/semantic/symref/list.el (semantic-symref-list-menu-entries): * lisp/cedet/semantic/idle.el () (semantic-idle-breadcrumbs-popup-menu): * lisp/cedet/semantic/grammar.el (semantic-grammar-item-value) (semantic-grammar-create-package) (semantic-grammar-batch-build-packages) (semantic-grammar-setup-menu): * lisp/cedet/semantic/fw.el (semantic-overlay-live-p) (semantic-event-window, semantic-make-local-hook) (semantic-run-mode-hooks, semantic-subst-char-in-string) (semantic-menu-item, semantic-find-file-noselect): * lisp/cedet/semantic/format.el (semantic-format-face-alist) (semantic--format-colorize-merge-text): * lisp/cedet/semantic/decorate/include.el () (semantic-decoration-on-include-menu) (semantic-decoration-on-unknown-include-menu) (semantic-decoration-on-fileless-include-menu) (semantic-decoration-on-unparsed-include-menu): * lisp/cedet/semantic/decorate.el (semantic-set-tag-read-only) (semantic-tag-read-only-p): * lisp/cedet/mode-local.el (activate-mode-local-bindings): * lisp/cedet/data-debug.el (data-debug-overlay-properties): Remove XEmacs compat code.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/cedet/data-debug.el22
-rw-r--r--lisp/cedet/mode-local.el3
-rw-r--r--lisp/cedet/semantic/decorate.el16
-rw-r--r--lisp/cedet/semantic/decorate/include.el261
-rw-r--r--lisp/cedet/semantic/format.el45
-rw-r--r--lisp/cedet/semantic/fw.el162
-rw-r--r--lisp/cedet/semantic/grammar.el22
-rw-r--r--lisp/cedet/semantic/idle.el110
-rw-r--r--lisp/cedet/semantic/symref/list.el42
-rw-r--r--lisp/cedet/semantic/util-modes.el19
-rw-r--r--lisp/cedet/semantic/wisent/comp.el8
-rw-r--r--lisp/cedet/srecode/mode.el82
12 files changed, 292 insertions, 500 deletions
diff --git a/lisp/cedet/data-debug.el b/lisp/cedet/data-debug.el
index ffdd9e8cdb3..0debbef54b5 100644
--- a/lisp/cedet/data-debug.el
+++ b/lisp/cedet/data-debug.el
@@ -49,25 +49,9 @@
49 49
50;;; Compatibility 50;;; Compatibility
51;; 51;;
52(if (featurep 'xemacs) 52(defalias 'data-debug-overlay-properties 'overlay-properties)
53 (eval-and-compile 53(defalias 'data-debug-overlay-p 'overlayp)
54 (defalias 'data-debug-overlay-properties 'extent-properties) 54(defalias 'dd-propertize 'propertize)
55 (defalias 'data-debug-overlay-p 'extentp)
56 (if (not (fboundp 'propertize))
57 (defun dd-propertize (string &rest properties)
58 "Mimic `propertize' in from Emacs 23."
59 (add-text-properties 0 (length string) properties string)
60 string
61 )
62 (defalias 'dd-propertize 'propertize))
63 )
64 ;; Regular Emacs
65 (eval-and-compile
66 (defalias 'data-debug-overlay-properties 'overlay-properties)
67 (defalias 'data-debug-overlay-p 'overlayp)
68 (defalias 'dd-propertize 'propertize)
69 )
70 )
71 55
72;;; GENERIC STUFF 56;;; GENERIC STUFF
73;; 57;;
diff --git a/lisp/cedet/mode-local.el b/lisp/cedet/mode-local.el
index fe87d1ae4b2..3d2fe45fcb1 100644
--- a/lisp/cedet/mode-local.el
+++ b/lisp/cedet/mode-local.el
@@ -296,8 +296,7 @@ Elements are (SYMBOL . PREVIOUS-VALUE), describing one variable."
296 ;; Hack - 296 ;; Hack -
297 ;; do not do this if we are inside set-auto-mode as we may be in 297 ;; do not do this if we are inside set-auto-mode as we may be in
298 ;; an initialization race condition. 298 ;; an initialization race condition.
299 (if (or (and (featurep 'emacs) (boundp 'keep-mode-if-same)) 299 (if (boundp 'keep-mode-if-same)
300 (and (featurep 'xemacs) (boundp 'just-from-file-name)))
301 ;; We are inside set-auto-mode, as this is an argument that is 300 ;; We are inside set-auto-mode, as this is an argument that is
302 ;; vaguely unique. 301 ;; vaguely unique.
303 302
diff --git a/lisp/cedet/semantic/decorate.el b/lisp/cedet/semantic/decorate.el
index 07e393fec59..1368c63739d 100644
--- a/lisp/cedet/semantic/decorate.el
+++ b/lisp/cedet/semantic/decorate.el
@@ -105,21 +105,15 @@ Optional argument WRITABLE should be non-nil to make the text writable
105instead of read-only." 105instead of read-only."
106 (let ((o (semantic-tag-overlay tag)) 106 (let ((o (semantic-tag-overlay tag))
107 (hook (if writable nil '(semantic-overlay-signal-read-only)))) 107 (hook (if writable nil '(semantic-overlay-signal-read-only))))
108 (if (featurep 'xemacs) 108 (semantic-overlay-put o 'modification-hooks hook)
109 ;; XEmacs extents have a 'read-only' property. 109 (semantic-overlay-put o 'insert-in-front-hooks hook)
110 (semantic-overlay-put o 'read-only (not writable)) 110 (semantic-overlay-put o 'insert-behind-hooks hook)))
111 (semantic-overlay-put o 'modification-hooks hook)
112 (semantic-overlay-put o 'insert-in-front-hooks hook)
113 (semantic-overlay-put o 'insert-behind-hooks hook))))
114 111
115(defun semantic-tag-read-only-p (tag) 112(defun semantic-tag-read-only-p (tag)
116 "Return non-nil if the current TAG is marked read only." 113 "Return non-nil if the current TAG is marked read only."
117 (let ((o (semantic-tag-overlay tag))) 114 (let ((o (semantic-tag-overlay tag)))
118 (if (featurep 'xemacs) 115 (member 'semantic-overlay-signal-read-only
119 ;; XEmacs extents have a 'read-only' property. 116 (semantic-overlay-get o 'modification-hooks))))
120 (semantic-overlay-get o 'read-only)
121 (member 'semantic-overlay-signal-read-only
122 (semantic-overlay-get o 'modification-hooks)))))
123 117
124;;; Secondary overlays 118;;; Secondary overlays
125;; 119;;
diff --git a/lisp/cedet/semantic/decorate/include.el b/lisp/cedet/semantic/decorate/include.el
index 8a356fc2932..82dc887ef3e 100644
--- a/lisp/cedet/semantic/decorate/include.el
+++ b/lisp/cedet/semantic/decorate/include.el
@@ -42,7 +42,7 @@
42;;; Code: 42;;; Code:
43 43
44;;; FACES AND KEYMAPS 44;;; FACES AND KEYMAPS
45(defvar semantic-decoration-mouse-3 (if (featurep 'xemacs) [ button3 ] [ mouse-3 ]) 45(defvar semantic-decoration-mouse-3 [ mouse-3 ]
46 "The keybinding Lisp object to use for binding the right mouse button.") 46 "The keybinding Lisp object to use for binding the right mouse button.")
47 47
48;;; Includes that are in a happy state! 48;;; Includes that are in a happy state!
@@ -69,47 +69,35 @@ Used by the decoration style: `semantic-decoration-on-includes'."
69 "Include Menu" 69 "Include Menu"
70 (list 70 (list
71 "Include" 71 "Include"
72 (semantic-menu-item 72 ["What Is This?" semantic-decoration-include-describe
73 ["What Is This?" semantic-decoration-include-describe 73 :active t
74 :active t 74 :help "Describe why this include has been marked this way." ]
75 :help "Describe why this include has been marked this way." ]) 75 ["Visit This Include" semantic-decoration-include-visit
76 (semantic-menu-item 76 :active t
77 ["Visit This Include" semantic-decoration-include-visit 77 :help "Visit this include file." ]
78 :active t
79 :help "Visit this include file." ])
80 "---" 78 "---"
81 (semantic-menu-item 79 ["Summarize includes current buffer" semantic-decoration-all-include-summary
82 ["Summarize includes current buffer" semantic-decoration-all-include-summary 80 :active t
83 :active t 81 :help "Show a summary for the current buffer containing this include." ]
84 :help "Show a summary for the current buffer containing this include." ]) 82 ["List found includes (load unparsed)" semanticdb-find-test-translate-path
85 (semantic-menu-item 83 :active t
86 ["List found includes (load unparsed)" semanticdb-find-test-translate-path 84 :help "List all includes found for this file, and parse unparsed files." ]
87 :active t 85 ["List found includes (no loading)" semanticdb-find-test-translate-path-no-loading
88 :help "List all includes found for this file, and parse unparsed files." ]) 86 :active t
89 (semantic-menu-item 87 :help "List all includes found for this file, do not parse unparsed files." ]
90 ["List found includes (no loading)" semanticdb-find-test-translate-path-no-loading 88 ["List all unknown includes" semanticdb-find-adebug-lost-includes
91 :active t 89 :active t
92 :help "List all includes found for this file, do not parse unparsed files." ]) 90 :help "Show a list of all includes semantic cannot find for this file." ]
93 (semantic-menu-item
94 ["List all unknown includes" semanticdb-find-adebug-lost-includes
95 :active t
96 :help "Show a list of all includes semantic cannot find for this file." ])
97 "---" 91 "---"
98 (semantic-menu-item 92 ["Customize System Include Path" semantic-customize-system-include-path
99 ["Customize System Include Path" semantic-customize-system-include-path 93 :active (get 'semantic-dependency-system-include-path major-mode)
100 :active (get 'semantic-dependency-system-include-path major-mode) 94 :help "Run customize for the system include path for this major mode." ]
101 :help "Run customize for the system include path for this major mode." ]) 95 ["Add a System Include Path" semantic-add-system-include
102 (semantic-menu-item 96 :active t
103 ["Add a System Include Path" semantic-add-system-include 97 :help "Add an include path for this session." ]
104 :active t 98 ["Remove a System Include Path" semantic-remove-system-include
105 :help "Add an include path for this session." ]) 99 :active t
106 (semantic-menu-item 100 :help "Add an include path for this session." ]
107 ["Remove a System Include Path" semantic-remove-system-include
108 :active t
109 :help "Add an include path for this session." ])
110 ;;["" semantic-decoration-include-
111 ;; :active t
112 ;; :help "" ]
113 )) 101 ))
114 102
115;;; Unknown Includes! 103;;; Unknown Includes!
@@ -139,40 +127,32 @@ Used by the decoration style: `semantic-decoration-on-unknown-includes'."
139 "Unknown Include Menu" 127 "Unknown Include Menu"
140 (list 128 (list
141 "Unknown Include" 129 "Unknown Include"
142 (semantic-menu-item 130 ["What Is This?" semantic-decoration-unknown-include-describe
143 ["What Is This?" semantic-decoration-unknown-include-describe 131 :active t
144 :active t 132 :help "Describe why this include has been marked this way." ]
145 :help "Describe why this include has been marked this way." ]) 133 ["List all unknown includes" semanticdb-find-adebug-lost-includes
146 (semantic-menu-item 134 :active t
147 ["List all unknown includes" semanticdb-find-adebug-lost-includes 135 :help "Show a list of all includes semantic cannot find for this file." ]
148 :active t
149 :help "Show a list of all includes semantic cannot find for this file." ])
150 "---" 136 "---"
151 (semantic-menu-item 137 ["Summarize includes current buffer" semantic-decoration-all-include-summary
152 ["Summarize includes current buffer" semantic-decoration-all-include-summary 138 :active t
153 :active t 139 :help "Show a summary for the current buffer containing this include." ]
154 :help "Show a summary for the current buffer containing this include." ]) 140 ["List found includes (load unparsed)" semanticdb-find-test-translate-path
155 (semantic-menu-item 141 :active t
156 ["List found includes (load unparsed)" semanticdb-find-test-translate-path 142 :help "List all includes found for this file, and parse unparsed files." ]
157 :active t 143 ["List found includes (no loading)" semanticdb-find-test-translate-path-no-loading
158 :help "List all includes found for this file, and parse unparsed files." ]) 144 :active t
159 (semantic-menu-item 145 :help "List all includes found for this file, do not parse unparsed files." ]
160 ["List found includes (no loading)" semanticdb-find-test-translate-path-no-loading
161 :active t
162 :help "List all includes found for this file, do not parse unparsed files." ])
163 "---" 146 "---"
164 (semantic-menu-item 147 ["Customize System Include Path" semantic-customize-system-include-path
165 ["Customize System Include Path" semantic-customize-system-include-path 148 :active (get 'semantic-dependency-system-include-path major-mode)
166 :active (get 'semantic-dependency-system-include-path major-mode) 149 :help "Run customize for the system include path for this major mode." ]
167 :help "Run customize for the system include path for this major mode." ]) 150 ["Add a System Include Path" semantic-add-system-include
168 (semantic-menu-item 151 :active t
169 ["Add a System Include Path" semantic-add-system-include 152 :help "Add an include path for this session." ]
170 :active t 153 ["Remove a System Include Path" semantic-remove-system-include
171 :help "Add an include path for this session." ]) 154 :active t
172 (semantic-menu-item 155 :help "Add an include path for this session." ]
173 ["Remove a System Include Path" semantic-remove-system-include
174 :active t
175 :help "Add an include path for this session." ])
176 )) 156 ))
177 157
178;;; Includes with no file, but a table 158;;; Includes with no file, but a table
@@ -202,40 +182,32 @@ Used by the decoration style: `semantic-decoration-on-fileless-includes'."
202 "Fileless Include Menu" 182 "Fileless Include Menu"
203 (list 183 (list
204 "Fileless Include" 184 "Fileless Include"
205 (semantic-menu-item 185 ["What Is This?" semantic-decoration-fileless-include-describe
206 ["What Is This?" semantic-decoration-fileless-include-describe 186 :active t
207 :active t 187 :help "Describe why this include has been marked this way." ]
208 :help "Describe why this include has been marked this way." ]) 188 ["List all unknown includes" semanticdb-find-adebug-lost-includes
209 (semantic-menu-item 189 :active t
210 ["List all unknown includes" semanticdb-find-adebug-lost-includes 190 :help "Show a list of all includes semantic cannot find for this file." ]
211 :active t
212 :help "Show a list of all includes semantic cannot find for this file." ])
213 "---" 191 "---"
214 (semantic-menu-item 192 ["Summarize includes current buffer" semantic-decoration-all-include-summary
215 ["Summarize includes current buffer" semantic-decoration-all-include-summary 193 :active t
216 :active t 194 :help "Show a summary for the current buffer containing this include." ]
217 :help "Show a summary for the current buffer containing this include." ]) 195 ["List found includes (load unparsed)" semanticdb-find-test-translate-path
218 (semantic-menu-item 196 :active t
219 ["List found includes (load unparsed)" semanticdb-find-test-translate-path 197 :help "List all includes found for this file, and parse unparsed files." ]
220 :active t 198 ["List found includes (no loading)" semanticdb-find-test-translate-path-no-loading
221 :help "List all includes found for this file, and parse unparsed files." ]) 199 :active t
222 (semantic-menu-item 200 :help "List all includes found for this file, do not parse unparsed files." ]
223 ["List found includes (no loading)" semanticdb-find-test-translate-path-no-loading
224 :active t
225 :help "List all includes found for this file, do not parse unparsed files." ])
226 "---" 201 "---"
227 (semantic-menu-item 202 ["Customize System Include Path" semantic-customize-system-include-path
228 ["Customize System Include Path" semantic-customize-system-include-path 203 :active (get 'semantic-dependency-system-include-path major-mode)
229 :active (get 'semantic-dependency-system-include-path major-mode) 204 :help "Run customize for the system include path for this major mode." ]
230 :help "Run customize for the system include path for this major mode." ]) 205 ["Add a System Include Path" semantic-add-system-include
231 (semantic-menu-item 206 :active t
232 ["Add a System Include Path" semantic-add-system-include 207 :help "Add an include path for this session." ]
233 :active t 208 ["Remove a System Include Path" semantic-remove-system-include
234 :help "Add an include path for this session." ]) 209 :active t
235 (semantic-menu-item 210 :help "Add an include path for this session." ]
236 ["Remove a System Include Path" semantic-remove-system-include
237 :active t
238 :help "Add an include path for this session." ])
239 )) 211 ))
240 212
241;;; Includes that need to be parsed. 213;;; Includes that need to be parsed.
@@ -265,56 +237,41 @@ Used by the decoration style: `semantic-decoration-on-unparsed-includes'."
265 "Unparsed Include Menu" 237 "Unparsed Include Menu"
266 (list 238 (list
267 "Unparsed Include" 239 "Unparsed Include"
268 (semantic-menu-item 240 ["What Is This?" semantic-decoration-unparsed-include-describe
269 ["What Is This?" semantic-decoration-unparsed-include-describe 241 :active t
270 :active t 242 :help "Describe why this include has been marked this way." ]
271 :help "Describe why this include has been marked this way." ]) 243 ["Visit This Include" semantic-decoration-include-visit
272 (semantic-menu-item 244 :active t
273 ["Visit This Include" semantic-decoration-include-visit 245 :help "Visit this include file so that header file's tags can be used." ]
274 :active t 246 ["Parse This Include" semantic-decoration-unparsed-include-parse-include
275 :help "Visit this include file so that header file's tags can be used." ]) 247 :active t
276 (semantic-menu-item 248 :help "Parse this include file so that header file's tags can be used." ]
277 ["Parse This Include" semantic-decoration-unparsed-include-parse-include 249 ["Parse All Includes" semantic-decoration-unparsed-include-parse-all-includes
278 :active t 250 :active t
279 :help "Parse this include file so that header file's tags can be used." ]) 251 :help "Parse all the includes so the contents can be used." ]
280 (semantic-menu-item
281 ["Parse All Includes" semantic-decoration-unparsed-include-parse-all-includes
282 :active t
283 :help "Parse all the includes so the contents can be used." ])
284 "---" 252 "---"
285 (semantic-menu-item 253 ["Summarize includes current buffer" semantic-decoration-all-include-summary
286 ["Summarize includes current buffer" semantic-decoration-all-include-summary 254 :active t
287 :active t 255 :help "Show a summary for the current buffer containing this include." ]
288 :help "Show a summary for the current buffer containing this include." ]) 256 ["List found includes (load unparsed)" semanticdb-find-test-translate-path
289 (semantic-menu-item 257 :active t
290 ["List found includes (load unparsed)" semanticdb-find-test-translate-path 258 :help "List all includes found for this file, and parse unparsed files." ]
291 :active t 259 ["List found includes (no loading)" semanticdb-find-test-translate-path-no-loading
292 :help "List all includes found for this file, and parse unparsed files." ]) 260 :active t
293 (semantic-menu-item 261 :help "List all includes found for this file, do not parse unparsed files." ]
294 ["List found includes (no loading)" semanticdb-find-test-translate-path-no-loading 262 ["List all unknown includes" semanticdb-find-adebug-lost-includes
295 :active t 263 :active t
296 :help "List all includes found for this file, do not parse unparsed files." ]) 264 :help "Show a list of all includes semantic cannot find for this file." ]
297 (semantic-menu-item
298 ["List all unknown includes" semanticdb-find-adebug-lost-includes
299 :active t
300 :help "Show a list of all includes semantic cannot find for this file." ])
301 "---" 265 "---"
302 (semantic-menu-item 266 ["Customize System Include Path" semantic-customize-system-include-path
303 ["Customize System Include Path" semantic-customize-system-include-path 267 :active (get 'semantic-dependency-system-include-path major-mode)
304 :active (get 'semantic-dependency-system-include-path major-mode) 268 :help "Run customize for the system include path for this major mode." ]
305 :help "Run customize for the system include path for this major mode." ]) 269 ["Add a System Include Path" semantic-add-system-include
306 (semantic-menu-item 270 :active t
307 ["Add a System Include Path" semantic-add-system-include 271 :help "Add an include path for this session." ]
308 :active t 272 ["Remove a System Include Path" semantic-remove-system-include
309 :help "Add an include path for this session." ]) 273 :active t
310 (semantic-menu-item 274 :help "Add an include path for this session." ]))
311 ["Remove a System Include Path" semantic-remove-system-include
312 :active t
313 :help "Add an include path for this session." ])
314 ;;["" semantic-decoration-unparsed-include-
315 ;; :active t
316 ;; :help "" ]
317 ))
318 275
319 276
320;;; MODES 277;;; MODES
diff --git a/lisp/cedet/semantic/format.el b/lisp/cedet/semantic/format.el
index 7d040fd84af..25a18581d8e 100644
--- a/lisp/cedet/semantic/format.el
+++ b/lisp/cedet/semantic/format.el
@@ -92,12 +92,8 @@ Images can be used as icons instead of some types of text strings."
92 (variable . font-lock-variable-name-face) 92 (variable . font-lock-variable-name-face)
93 (type . font-lock-type-face) 93 (type . font-lock-type-face)
94 ;; These are different between Emacsen. 94 ;; These are different between Emacsen.
95 (include . ,(if (featurep 'xemacs) 95 (include . ,'font-lock-constant-face)
96 'font-lock-preprocessor-face 96 (package . , 'font-lock-constant-face)
97 'font-lock-constant-face))
98 (package . ,(if (featurep 'xemacs)
99 'font-lock-preprocessor-face
100 'font-lock-constant-face))
101 ;; Not a tag, but instead a feature of output 97 ;; Not a tag, but instead a feature of output
102 (label . font-lock-string-face) 98 (label . font-lock-string-face)
103 (comment . font-lock-comment-face) 99 (comment . font-lock-comment-face)
@@ -135,26 +131,23 @@ See that variable for details on adding new types."
135FACE-CLASS is a tag type found in `semantic-formatface-alist'. 131FACE-CLASS is a tag type found in `semantic-formatface-alist'.
136See that variable for details on adding new types." 132See that variable for details on adding new types."
137 (let ((face (cdr-safe (assoc face-class semantic-format-face-alist))) 133 (let ((face (cdr-safe (assoc face-class semantic-format-face-alist)))
138 (newtext (concat precoloredtext)) 134 (newtext (concat precoloredtext)))
139 ) 135 (alter-text-property 0 (length newtext) 'face
140 (if (featurep 'xemacs) 136 (lambda (current-face)
141 (add-text-properties 0 (length newtext) (list 'face face) newtext) 137 (let ((cf
142 (alter-text-property 0 (length newtext) 'face 138 (cond ((facep current-face)
143 (lambda (current-face) 139 (list current-face))
144 (let ((cf 140 ((listp current-face)
145 (cond ((facep current-face) 141 current-face)
146 (list current-face)) 142 (t nil)))
147 ((listp current-face) 143 (nf
148 current-face) 144 (cond ((facep face)
149 (t nil))) 145 (list face))
150 (nf 146 ((listp face)
151 (cond ((facep face) 147 face)
152 (list face)) 148 (t nil))))
153 ((listp face) 149 (append cf nf)))
154 face) 150 newtext)
155 (t nil))))
156 (append cf nf)))
157 newtext))
158 newtext)) 151 newtext))
159 152
160;;; Function Arguments 153;;; Function Arguments
diff --git a/lisp/cedet/semantic/fw.el b/lisp/cedet/semantic/fw.el
index 6719e626f08..a9a014fa370 100644
--- a/lisp/cedet/semantic/fw.el
+++ b/lisp/cedet/semantic/fw.el
@@ -34,108 +34,45 @@
34 34
35;;; Compatibility 35;;; Compatibility
36;; 36;;
37(eval-and-compile 37(defalias 'semantic-overlay-live-p 'overlay-buffer)
38 (if (featurep 'xemacs) 38(defalias 'semantic-make-overlay 'make-overlay)
39 (progn 39(defalias 'semantic-overlay-put 'overlay-put)
40 (defalias 'semantic-buffer-local-value 'symbol-value-in-buffer) 40(defalias 'semantic-overlay-get 'overlay-get)
41 ;; FIXME: Why not just (require 'overlay)? 41(defalias 'semantic-overlay-properties 'overlay-properties)
42 (defalias 'semantic-overlay-live-p 42(defalias 'semantic-overlay-move 'move-overlay)
43 (lambda (o) 43(defalias 'semantic-overlay-delete 'delete-overlay)
44 (and (extent-live-p o) 44(defalias 'semantic-overlays-at 'overlays-at)
45 (not (extent-detached-p o)) 45(defalias 'semantic-overlays-in 'overlays-in)
46 (bufferp (extent-buffer o))))) 46(defalias 'semantic-overlay-buffer 'overlay-buffer)
47 (defalias 'semantic-make-overlay 47(defalias 'semantic-overlay-start 'overlay-start)
48 (lambda (beg end &optional buffer &rest rest) 48(defalias 'semantic-overlay-end 'overlay-end)
49 "Xemacs `make-extent', supporting the front/rear advance options." 49(defalias 'semantic-overlay-next-change 'next-overlay-change)
50 (let ((ol (make-extent beg end buffer))) 50(defalias 'semantic-overlay-previous-change 'previous-overlay-change)
51 (when rest 51(defalias 'semantic-overlay-lists 'overlay-lists)
52 (set-extent-property ol 'start-open (car rest)) 52(defalias 'semantic-overlay-p 'overlayp)
53 (setq rest (cdr rest))) 53(defalias 'semantic-read-event 'read-event)
54 (when rest 54(defalias 'semantic-popup-menu 'popup-menu)
55 (set-extent-property ol 'end-open (car rest))) 55(defalias 'semantic-buffer-local-value 'buffer-local-value)
56 ol))) 56
57 (defalias 'semantic-overlay-put 'set-extent-property) 57(defun semantic-event-window (event)
58 (defalias 'semantic-overlay-get 'extent-property) 58 "Extract the window from EVENT."
59 (defalias 'semantic-overlay-properties 'extent-properties) 59 (car (car (cdr event))))
60 (defalias 'semantic-overlay-move 'set-extent-endpoints) 60
61 (defalias 'semantic-overlay-delete 'delete-extent) 61(defalias 'semantic-make-local-hook
62 (defalias 'semantic-overlays-at 62 (if (featurep 'emacs)
63 (lambda (pos) 63 #'identity #'make-local-hook))
64 (condition-case nil 64
65 (extent-list nil pos pos) 65(defalias 'semantic-mode-line-update #'force-mode-line-update)
66 (error nil)) 66
67 )) 67;; Since Emacs 22 major mode functions should use `run-mode-hooks' to
68 (defalias 'semantic-overlays-in 68;; run major mode hooks.
69 (lambda (beg end) (extent-list nil beg end))) 69(defalias 'semantic-run-mode-hooks
70 (defalias 'semantic-overlay-buffer 'extent-buffer) 70 (if (fboundp 'run-mode-hooks)
71 (defalias 'semantic-overlay-start 'extent-start-position) 71 'run-mode-hooks
72 (defalias 'semantic-overlay-end 'extent-end-position) 72 'run-hooks))
73 (defalias 'semantic-overlay-size 'extent-length)
74 (defalias 'semantic-overlay-next-change 'next-extent-change)
75 (defalias 'semantic-overlay-previous-change 'previous-extent-change)
76 (defalias 'semantic-overlay-lists
77 (lambda () (list (extent-list))))
78 (defalias 'semantic-overlay-p 'extentp)
79 (defalias 'semantic-event-window 'event-window)
80 (defun semantic-read-event ()
81 (let ((event (next-command-event)))
82 (if (key-press-event-p event)
83 (let ((c (event-to-character event)))
84 (if (char-equal c (quit-char))
85 (keyboard-quit)
86 c)))
87 event))
88 (defun semantic-popup-menu (menu)
89 "Blocking version of `popup-menu'"
90 (popup-menu menu)
91 ;; Wait...
92 (while (popup-up-p) (dispatch-event (next-event))))
93 )
94 ;; Emacs Bindings
95 (defalias 'semantic-overlay-live-p 'overlay-buffer)
96 (defalias 'semantic-make-overlay 'make-overlay)
97 (defalias 'semantic-overlay-put 'overlay-put)
98 (defalias 'semantic-overlay-get 'overlay-get)
99 (defalias 'semantic-overlay-properties 'overlay-properties)
100 (defalias 'semantic-overlay-move 'move-overlay)
101 (defalias 'semantic-overlay-delete 'delete-overlay)
102 (defalias 'semantic-overlays-at 'overlays-at)
103 (defalias 'semantic-overlays-in 'overlays-in)
104 (defalias 'semantic-overlay-buffer 'overlay-buffer)
105 (defalias 'semantic-overlay-start 'overlay-start)
106 (defalias 'semantic-overlay-end 'overlay-end)
107 (defalias 'semantic-overlay-next-change 'next-overlay-change)
108 (defalias 'semantic-overlay-previous-change 'previous-overlay-change)
109 (defalias 'semantic-overlay-lists 'overlay-lists)
110 (defalias 'semantic-overlay-p 'overlayp)
111 (defalias 'semantic-read-event 'read-event)
112 (defalias 'semantic-popup-menu 'popup-menu)
113 (defun semantic-event-window (event)
114 "Extract the window from EVENT."
115 (car (car (cdr event))))
116
117 (defalias 'semantic-buffer-local-value 'buffer-local-value)
118
119 )
120
121
122 (defalias 'semantic-make-local-hook
123 (if (featurep 'emacs)
124 #'identity #'make-local-hook))
125
126 (defalias 'semantic-mode-line-update
127 (if (featurep 'xemacs) #'redraw-modeline #'force-mode-line-update))
128
129 ;; Since Emacs 22 major mode functions should use `run-mode-hooks' to
130 ;; run major mode hooks.
131 (defalias 'semantic-run-mode-hooks
132 (if (fboundp 'run-mode-hooks)
133 'run-mode-hooks
134 'run-hooks))
135 73
136 ;; Fancy compat usage now handled in cedet-compat 74 ;; Fancy compat usage now handled in cedet-compat
137 (defalias 'semantic-subst-char-in-string 'subst-char-in-string) 75(defalias 'semantic-subst-char-in-string 'subst-char-in-string)
138 )
139 76
140(defun semantic-delete-overlay-maybe (overlay) 77(defun semantic-delete-overlay-maybe (overlay)
141 "Delete OVERLAY if it is a semantic token overlay." 78 "Delete OVERLAY if it is a semantic token overlay."
@@ -144,22 +81,7 @@
144 81
145;;; Menu Item compatibility 82;;; Menu Item compatibility
146;; 83;;
147(defun semantic-menu-item (item) 84(define-obsolete-function-alias 'semantic-menu-item #'identity "27.1")
148 "Build an XEmacs compatible menu item from vector ITEM.
149That is remove the unsupported :help stuff."
150 (if (featurep 'xemacs)
151 (let ((n (length item))
152 (i 0)
153 slot l)
154 (while (< i n)
155 (setq slot (aref item i))
156 (if (and (keywordp slot)
157 (eq slot :help))
158 (setq i (1+ i))
159 (setq l (cons slot l)))
160 (setq i (1+ i)))
161 (apply #'vector (nreverse l)))
162 item))
163 85
164;;; Positional Data Cache 86;;; Positional Data Cache
165;; 87;;
@@ -406,8 +328,7 @@ Use this when referencing a file that will be soon deleted.
406FILE, NOWARN, RAWFILE, and WILDCARDS are passed into `find-file-noselect'" 328FILE, NOWARN, RAWFILE, and WILDCARDS are passed into `find-file-noselect'"
407 ;; Hack - 329 ;; Hack -
408 ;; Check if we are in set-auto-mode, and if so, warn about this. 330 ;; Check if we are in set-auto-mode, and if so, warn about this.
409 (when (or (and (featurep 'emacs) (boundp 'keep-mode-if-same)) 331 (when (boundp 'keep-mode-if-same)
410 (and (featurep 'xemacs) (boundp 'just-from-file-name)))
411 (let ((filename (or (and (boundp 'filename) filename) 332 (let ((filename (or (and (boundp 'filename) filename)
412 "(unknown)"))) 333 "(unknown)")))
413 (message "WARNING: semantic-find-file-noselect called for \ 334 (message "WARNING: semantic-find-file-noselect called for \
@@ -439,10 +360,7 @@ into `mode-local-init-hook'." file filename)
439 (enable-local-eval nil) 360 (enable-local-eval nil)
440 ) 361 )
441 (save-match-data 362 (save-match-data
442 (if (featurep 'xemacs) 363 (find-file-noselect file nowarn rawfile wildcards))))
443 (find-file-noselect file nowarn rawfile)
444 (find-file-noselect file nowarn rawfile wildcards)))
445 ))
446 364
447;;; Database restriction settings 365;;; Database restriction settings
448;; 366;;
diff --git a/lisp/cedet/semantic/grammar.el b/lisp/cedet/semantic/grammar.el
index 3c35583dd3c..291291552f8 100644
--- a/lisp/cedet/semantic/grammar.el
+++ b/lisp/cedet/semantic/grammar.el
@@ -209,11 +209,7 @@ That is tag names plus names defined in tag attribute `:rest'."
209(defsubst semantic-grammar-item-value (item) 209(defsubst semantic-grammar-item-value (item)
210 "Return symbol or character value of ITEM string." 210 "Return symbol or character value of ITEM string."
211 (if (string-match semantic-grammar-lex-c-char-re item) 211 (if (string-match semantic-grammar-lex-c-char-re item)
212 (let ((c (read (concat "?" (substring item 1 -1))))) 212 (read (concat "?" (substring item 1 -1)))
213 (if (featurep 'xemacs)
214 ;; Handle characters as integers in XEmacs like in GNU Emacs.
215 (char-int c)
216 c))
217 (intern item))) 213 (intern item)))
218 214
219(defun semantic-grammar-prologue () 215(defun semantic-grammar-prologue ()
@@ -833,12 +829,6 @@ Block definitions are read from the current table of lexical types."
833 :group 'semantic 829 :group 'semantic
834 :type 'regexp) 830 :type 'regexp)
835 831
836(defsubst semantic-grammar-noninteractive ()
837 "Return non-nil if running without interactive terminal."
838 (if (featurep 'xemacs)
839 (noninteractive)
840 noninteractive))
841
842(defun semantic-grammar-create-package (&optional force uptodate) 832(defun semantic-grammar-create-package (&optional force uptodate)
843 "Create package Lisp code from grammar in current buffer. 833 "Create package Lisp code from grammar in current buffer.
844If the Lisp code seems up to date, do nothing (if UPTODATE 834If the Lisp code seems up to date, do nothing (if UPTODATE
@@ -951,7 +941,7 @@ Lisp code."
951 941
952 ;; If running in batch mode, there is nothing more to do. 942 ;; If running in batch mode, there is nothing more to do.
953 ;; Save the generated file and quit. 943 ;; Save the generated file and quit.
954 (if (semantic-grammar-noninteractive) 944 (if noninteractive
955 (let ((version-control t) 945 (let ((version-control t)
956 (delete-old-versions t) 946 (delete-old-versions t)
957 (make-backup-files t) 947 (make-backup-files t)
@@ -1032,7 +1022,7 @@ For example, to process grammar files in current directory, invoke:
1032 \"emacs -batch -f semantic-grammar-batch-build-packages .\". 1022 \"emacs -batch -f semantic-grammar-batch-build-packages .\".
1033 1023
1034See also the variable `semantic-grammar-file-regexp'." 1024See also the variable `semantic-grammar-file-regexp'."
1035 (or (semantic-grammar-noninteractive) 1025 (or noninteractive
1036 (error "\ 1026 (error "\
1037`semantic-grammar-batch-build-packages' must be used with -batch" 1027`semantic-grammar-batch-build-packages' must be used with -batch"
1038 )) 1028 ))
@@ -1281,10 +1271,8 @@ common grammar menu."
1281 "Setup a mode local grammar menu. 1271 "Setup a mode local grammar menu.
1282MODE-MENU is an optional specific menu whose items are appended to the 1272MODE-MENU is an optional specific menu whose items are appended to the
1283common grammar menu." 1273common grammar menu."
1284 (let ((menu (intern (format "%s-menu" major-mode)))) 1274 (semantic-grammar-setup-menu-emacs
1285 (if (featurep 'xemacs) 1275 (intern (format "%s-menu" major-mode)) mode-menu))
1286 (semantic-grammar-setup-menu-xemacs menu mode-menu)
1287 (semantic-grammar-setup-menu-emacs menu mode-menu))))
1288 1276
1289(defsubst semantic-grammar-in-lisp-p () 1277(defsubst semantic-grammar-in-lisp-p ()
1290 "Return non-nil if point is in Lisp code." 1278 "Return non-nil if point is in Lisp code."
diff --git a/lisp/cedet/semantic/idle.el b/lisp/cedet/semantic/idle.el
index 92ec7f882ae..bd4f80046f7 100644
--- a/lisp/cedet/semantic/idle.el
+++ b/lisp/cedet/semantic/idle.el
@@ -1114,65 +1114,61 @@ be called."
1114 "Semantic Breadcrumbs Mode Menu" 1114 "Semantic Breadcrumbs Mode Menu"
1115 (list 1115 (list
1116 "Breadcrumb Tag" 1116 "Breadcrumb Tag"
1117 (semantic-menu-item 1117 (vector
1118 (vector 1118 "Go to Tag"
1119 "Go to Tag" 1119 (semantic-idle-breadcrumbs--tag-function
1120 (semantic-idle-breadcrumbs--tag-function 1120 semantic-go-to-tag)
1121 semantic-go-to-tag) 1121 :active t
1122 :active t 1122 :help "Jump to this tag")
1123 :help "Jump to this tag"))
1124 ;; TODO these entries need minor changes (optional tag argument) in 1123 ;; TODO these entries need minor changes (optional tag argument) in
1125 ;; senator-copy-tag etc 1124 ;; senator-copy-tag etc
1126 ;; (semantic-menu-item 1125 ;; (semantic-menu-item
1127 ;; (vector 1126 ;; (vector
1128 ;; "Copy Tag" 1127 ;; "Copy Tag"
1129 ;; (semantic-idle-breadcrumbs--tag-function 1128 ;; (semantic-idle-breadcrumbs--tag-function
1130 ;; senator-copy-tag) 1129 ;; senator-copy-tag)
1131 ;; :active t 1130 ;; :active t
1132 ;; :help "Copy this tag")) 1131 ;; :help "Copy this tag"))
1133 ;; (semantic-menu-item 1132 ;; (semantic-menu-item
1134 ;; (vector 1133 ;; (vector
1135 ;; "Kill Tag" 1134 ;; "Kill Tag"
1136 ;; (semantic-idle-breadcrumbs--tag-function 1135 ;; (semantic-idle-breadcrumbs--tag-function
1137 ;; senator-kill-tag) 1136 ;; senator-kill-tag)
1138 ;; :active t 1137 ;; :active t
1139 ;; :help "Kill tag text to the kill ring, and copy the tag to 1138 ;; :help "Kill tag text to the kill ring, and copy the tag to
1140 ;; the tag ring")) 1139 ;; the tag ring"))
1141 ;; (semantic-menu-item 1140 ;; (semantic-menu-item
1142 ;; (vector 1141 ;; (vector
1143 ;; "Copy Tag to Register" 1142 ;; "Copy Tag to Register"
1144 ;; (semantic-idle-breadcrumbs--tag-function 1143 ;; (semantic-idle-breadcrumbs--tag-function
1145 ;; senator-copy-tag-to-register) 1144 ;; senator-copy-tag-to-register)
1146 ;; :active t 1145 ;; :active t
1147 ;; :help "Copy this tag")) 1146 ;; :help "Copy this tag"))
1148 ;; (semantic-menu-item 1147 ;; (semantic-menu-item
1149 ;; (vector 1148 ;; (vector
1150 ;; "Narrow to Tag" 1149 ;; "Narrow to Tag"
1151 ;; (semantic-idle-breadcrumbs--tag-function 1150 ;; (semantic-idle-breadcrumbs--tag-function
1152 ;; senator-narrow-to-defun) 1151 ;; senator-narrow-to-defun)
1153 ;; :active t 1152 ;; :active t
1154 ;; :help "Narrow to the bounds of the current tag")) 1153 ;; :help "Narrow to the bounds of the current tag"))
1155 ;; (semantic-menu-item 1154 ;; (semantic-menu-item
1156 ;; (vector 1155 ;; (vector
1157 ;; "Fold Tag" 1156 ;; "Fold Tag"
1158 ;; (semantic-idle-breadcrumbs--tag-function 1157 ;; (semantic-idle-breadcrumbs--tag-function
1159 ;; senator-fold-tag-toggle) 1158 ;; senator-fold-tag-toggle)
1160 ;; :active t 1159 ;; :active t
1161 ;; :style 'toggle 1160 ;; :style 'toggle
1162 ;; :selected '(let ((tag (semantic-current-tag))) 1161 ;; :selected '(let ((tag (semantic-current-tag)))
1163 ;; (and tag (semantic-tag-folded-p tag))) 1162 ;; (and tag (semantic-tag-folded-p tag)))
1164 ;; :help "Fold the current tag to one line")) 1163 ;; :help "Fold the current tag to one line"))
1165 "---" 1164 "---"
1166 (semantic-menu-item 1165 (vector
1167 (vector 1166 "About this Header Line"
1168 "About this Header Line" 1167 (lambda ()
1169 (lambda () 1168 (interactive)
1170 (interactive) 1169 (describe-function 'semantic-idle-breadcrumbs-mode))
1171 (describe-function 'semantic-idle-breadcrumbs-mode)) 1170 :active t
1172 :active t 1171 :help "Display help about this header line.")))
1173 :help "Display help about this header line."))
1174 )
1175 )
1176 1172
1177(define-semantic-idle-service semantic-idle-breadcrumbs 1173(define-semantic-idle-service semantic-idle-breadcrumbs
1178 "Display breadcrumbs for the tag under point and its parents." 1174 "Display breadcrumbs for the tag under point and its parents."
diff --git a/lisp/cedet/semantic/symref/list.el b/lisp/cedet/semantic/symref/list.el
index f6417b1c6b7..ce656d61a48 100644
--- a/lisp/cedet/semantic/symref/list.el
+++ b/lisp/cedet/semantic/symref/list.el
@@ -126,31 +126,23 @@ Display the references in `semantic-symref-results-mode'."
126(defvar semantic-symref-list-menu-entries 126(defvar semantic-symref-list-menu-entries
127 (list 127 (list
128 "Symref" 128 "Symref"
129 (semantic-menu-item 129 ["Toggle Line Open"
130 ["Toggle Line Open" 130 semantic-symref-list-toggle-showing
131 semantic-symref-list-toggle-showing 131 :active t
132 :active t 132 :help "Toggle the current line open or closed." ]
133 :help "Toggle the current line open or closed." 133 ["Expand All Entries"
134 ]) 134 semantic-symref-list-expand-all
135 (semantic-menu-item 135 :active t
136 ["Expand All Entries" 136 :help "Expand every expandable entry." ]
137 semantic-symref-list-expand-all 137 ["Contract All Entries"
138 :active t 138 semantic-symref-list-contract-all
139 :help "Expand every expandable entry." 139 :active t
140 ]) 140 :help "Close every expandable entry." ]
141 (semantic-menu-item 141 ["Rename Symbol in Open hits"
142 ["Contract All Entries" 142 semantic-symref-list-rename-open-hits
143 semantic-symref-list-contract-all 143 :active t
144 :active t 144 :help "Rename the searched for symbol in all hits that are currently open."
145 :help "Close every expandable entry." 145 ])
146 ])
147 (semantic-menu-item
148 ["Rename Symbol in Open hits"
149 semantic-symref-list-rename-open-hits
150 :active t
151 :help "Rename the searched for symbol in all hits that are currently open."
152 ])
153 )
154 "Menu entries for the Semantic Symref list mode.") 146 "Menu entries for the Semantic Symref list mode.")
155 147
156(defvar semantic-symref-list-menu nil 148(defvar semantic-symref-list-menu nil
diff --git a/lisp/cedet/semantic/util-modes.el b/lisp/cedet/semantic/util-modes.el
index 69df671217d..e345bd53e42 100644
--- a/lisp/cedet/semantic/util-modes.el
+++ b/lisp/cedet/semantic/util-modes.el
@@ -607,7 +607,7 @@ to indicate a parse in progress."
607 ) 607 )
608 608
609(defcustom semantic-stickyfunc-indent-string 609(defcustom semantic-stickyfunc-indent-string
610 (if (and window-system (not (featurep 'xemacs))) 610 (if window-system
611 (concat 611 (concat
612 (condition-case nil 612 (condition-case nil
613 ;; Test scroll bar location 613 ;; Test scroll bar location
@@ -677,13 +677,10 @@ when it lands in the sticky line."
677 "Value of the header line when entering stickyfunc mode.") 677 "Value of the header line when entering stickyfunc mode.")
678 678
679(defconst semantic-stickyfunc-header-line-format 679(defconst semantic-stickyfunc-header-line-format
680 (cond ((featurep 'xemacs) 680 '(:eval (list
681 nil) 681 ;; Magic bit I found on emacswiki.
682 (t 682 (propertize " " 'display '((space :align-to 0)))
683 '(:eval (list 683 (semantic-stickyfunc-fetch-stickyline)))
684 ;; Magic bit I found on emacswiki.
685 (propertize " " 'display '((space :align-to 0)))
686 (semantic-stickyfunc-fetch-stickyline)))))
687 "The header line format used by stickyfunc mode.") 684 "The header line format used by stickyfunc mode.")
688 685
689;;;###autoload 686;;;###autoload
@@ -845,10 +842,8 @@ Argument EVENT describes the event that caused this function to be called."
845 :type 'hook) 842 :type 'hook)
846 843
847(defvar semantic-highlight-func-mode-map 844(defvar semantic-highlight-func-mode-map
848 (let ((km (make-sparse-keymap)) 845 (let ((km (make-sparse-keymap)))
849 (m3 (if (featurep 'xemacs) [ button3 ] [ mouse-3 ])) 846 (define-key km [mouse-3] 'semantic-highlight-func-menu)
850 )
851 (define-key km m3 'semantic-highlight-func-menu)
852 km) 847 km)
853 "Keymap for highlight-func minor mode.") 848 "Keymap for highlight-func minor mode.")
854 849
diff --git a/lisp/cedet/semantic/wisent/comp.el b/lisp/cedet/semantic/wisent/comp.el
index 4e222fa70eb..a73cdfa2f8f 100644
--- a/lisp/cedet/semantic/wisent/comp.el
+++ b/lisp/cedet/semantic/wisent/comp.el
@@ -161,12 +161,6 @@ If optional LEFT is non-nil insert spaces on left."
161 (not (zerop (logand (aref x (/ i wisent-BITS-PER-WORD)) 161 (not (zerop (logand (aref x (/ i wisent-BITS-PER-WORD))
162 (ash 1 (% i wisent-BITS-PER-WORD)))))) 162 (ash 1 (% i wisent-BITS-PER-WORD))))))
163 163
164(defsubst wisent-noninteractive ()
165 "Return non-nil if running without interactive terminal."
166 (if (featurep 'xemacs)
167 (noninteractive)
168 noninteractive))
169
170(defvar wisent-debug-flag nil 164(defvar wisent-debug-flag nil
171 "Non-nil means enable some debug stuff.") 165 "Non-nil means enable some debug stuff.")
172 166
@@ -2662,7 +2656,7 @@ Report detailed information if `wisent-verbose-flag' or
2662 (wisent-print-grammar) 2656 (wisent-print-grammar)
2663 (wisent-print-states)) 2657 (wisent-print-states))
2664 ;; Append output to log file when running in batch mode 2658 ;; Append output to log file when running in batch mode
2665 (when (wisent-noninteractive) 2659 (when noninteractive
2666 (wisent-append-to-log-file) 2660 (wisent-append-to-log-file)
2667 (wisent-clear-log))) 2661 (wisent-clear-log)))
2668 2662
diff --git a/lisp/cedet/srecode/mode.el b/lisp/cedet/srecode/mode.el
index a40b9d09a6f..3a8fd91eb2d 100644
--- a/lisp/cedet/srecode/mode.el
+++ b/lisp/cedet/srecode/mode.el
@@ -69,62 +69,44 @@
69(defvar srecode-menu-bar 69(defvar srecode-menu-bar
70 (list 70 (list
71 "SRecoder" 71 "SRecoder"
72 (semantic-menu-item 72 ["Insert Template"
73 ["Insert Template" 73 srecode-insert
74 srecode-insert 74 :active t
75 :active t 75 :help "Insert a template by name."]
76 :help "Insert a template by name." 76 ["Insert Template Again"
77 ]) 77 srecode-insert-again
78 (semantic-menu-item 78 :active t
79 ["Insert Template Again" 79 :help "Run the same template as last time again."]
80 srecode-insert-again 80 ["Edit Template"
81 :active t 81 srecode-edit
82 :help "Run the same template as last time again." 82 :active t
83 ]) 83 :help "Edit a template for this language by name."]
84 (semantic-menu-item
85 ["Edit Template"
86 srecode-edit
87 :active t
88 :help "Edit a template for this language by name."
89 ])
90 "---" 84 "---"
91 '( "Insert ..." :filter srecode-minor-mode-templates-menu ) 85 '( "Insert ..." :filter srecode-minor-mode-templates-menu )
92 '( "Generate ..." :filter srecode-minor-mode-generate-menu ) 86 '( "Generate ..." :filter srecode-minor-mode-generate-menu )
93 "---" 87 "---"
94 (semantic-menu-item 88 ["Customize..."
95 ["Customize..." 89 (customize-group "srecode")
96 (customize-group "srecode") 90 :active t
97 :active t 91 :help "Customize SRecode options"]
98 :help "Customize SRecode options"
99 ])
100 (list 92 (list
101 "Debugging Tools..." 93 "Debugging Tools..."
102 (semantic-menu-item 94 ["Dump Template MAP"
103 ["Dump Template MAP" 95 srecode-get-maps
104 srecode-get-maps 96 :active t
105 :active t 97 :help "Calculate (if needed) and display the current template file map."]
106 :help "Calculate (if needed) and display the current template file map." 98 ["Dump Tables"
107 ]) 99 srecode-dump-templates
108 (semantic-menu-item 100 :active t
109 ["Dump Tables" 101 :help "Dump the current template table."]
110 srecode-dump-templates 102 ["Dump Dictionary"
111 :active t 103 srecode-dictionary-dump
112 :help "Dump the current template table." 104 :active t
113 ]) 105 :help "Calculate and dump a dictionary for point."]
114 (semantic-menu-item 106 ["Show Macro Help"
115 ["Dump Dictionary" 107 srecode-macro-help
116 srecode-dictionary-dump 108 :active t
117 :active t 109 :help "Display the different types of macros available."]))
118 :help "Calculate and dump a dictionary for point."
119 ])
120 (semantic-menu-item
121 ["Show Macro Help"
122 srecode-macro-help
123 :active t
124 :help "Display the different types of macros available."
125 ])
126 )
127 )
128 "Menu for srecode minor mode.") 110 "Menu for srecode minor mode.")
129 111
130(defvar srecode-minor-menu nil 112(defvar srecode-minor-menu nil