aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet
diff options
context:
space:
mode:
authorStefan Monnier2012-10-23 11:06:07 -0400
committerStefan Monnier2012-10-23 11:06:07 -0400
commitd106953274d29b6be4ef7e2c442078c81a52ff2f (patch)
tree1daf5ea3f0c8d0ed1914ba3fc339b1dd23438e20 /lisp/cedet
parentf7eac6d887b7768034e40f16dacbb0c8fb569417 (diff)
downloademacs-d106953274d29b6be4ef7e2c442078c81a52ff2f.tar.gz
emacs-d106953274d29b6be4ef7e2c442078c81a52ff2f.zip
Cleanup uses of "-hooks".
* doc/emacs/custom.texi (Hooks): * doc/lispref/hooks.texi (Standard Hooks): Clarify that -hooks is deprecated. * lisp/gnus/nndiary.el (nndiary-request-create-group-functions) (nndiary-request-update-info-functions) (nndiary-request-accept-article-functions): * lisp/gnus/gnus-start.el (gnus-subscribe-newsgroup-functions): * lisp/cedet/semantic/db-file.el (semanticdb-save-database-functions): * lisp/cedet/semantic/lex.el (semantic-lex-reset-functions): * lisp/cedet/semantic/edit.el (semantic-change-functions) (semantic-edits-new-change-functions) (semantic-edits-delete-change-functions) (semantic-edits-reparse-change-functions): * lisp/htmlfontify.el (hfy-post-html-hook): * lisp/filesets.el (filesets-cache-fill-content-hook): * lisp/arc-mode.el (archive-extract-hook): * lisp/progmodes/cc-mode.el (c-prepare-bug-report-hook): * lisp/net/rcirc.el (rcirc-sentinel-functions) (rcirc-receive-message-functions, rcirc-activity-functions) (rcirc-print-functions): * lisp/net/dbus.el (dbus-event-error-functions): * lisp/emacs-lisp/eieio.el (eieio-pre-method-execution-functions): * lisp/emacs-lisp/checkdoc.el (checkdoc-style-functions) (checkdoc-comment-style-functions): Don't use "-hooks" suffix. * lisp/term/sun.el (sun-raw-prefix-hooks): * lisp/mail/sendmail.el (mail-yank-hooks): * lisp/mh-e/mh-letter.el (mh-yank-hooks): Use make-obsolete-variable.
Diffstat (limited to 'lisp/cedet')
-rw-r--r--lisp/cedet/ChangeLog143
-rw-r--r--lisp/cedet/semantic/db-file.el6
-rw-r--r--lisp/cedet/semantic/edit.el24
-rw-r--r--lisp/cedet/semantic/lex.el6
4 files changed, 100 insertions, 79 deletions
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog
index e89e8ed258b..7656248cac5 100644
--- a/lisp/cedet/ChangeLog
+++ b/lisp/cedet/ChangeLog
@@ -1,14 +1,23 @@
12012-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * semantic/db-file.el (semanticdb-save-database-functions):
4 * semantic/lex.el (semantic-lex-reset-functions):
5 * semantic/edit.el (semantic-change-functions)
6 (semantic-edits-new-change-functions)
7 (semantic-edits-delete-change-functions)
8 (semantic-edits-reparse-change-functions): Don't use "-hooks" suffix.
9
12012-10-14 David Engster <deng@randomsample.de> 102012-10-14 David Engster <deng@randomsample.de>
2 11
3 * semantic.el (semantic-error-if-unparsed): New function. Raise 12 * semantic.el (semantic-error-if-unparsed): New function.
4 error if buffer was not parsed by Semantic (bug #12045). 13 Raise error if buffer was not parsed by Semantic (bug #12045).
5 (navigate-menu, edit-menu, cedet-menu-map): Enable Semantic items 14 (navigate-menu, edit-menu, cedet-menu-map): Enable Semantic items
6 only if buffer was parsed. Also, replace ':active' with ':enable' 15 only if buffer was parsed. Also, replace ':active' with ':enable'
7 where necessary. 16 where necessary.
8 17
9 * semantic/wisent/python.el 18 * semantic/wisent/python.el
10 (semantic-python-get-system-include-path): Use 19 (semantic-python-get-system-include-path):
11 `python-shell-internal-send-string' if available to query Python 20 Use `python-shell-internal-send-string' if available to query Python
12 for system paths. 21 for system paths.
13 22
14 * semantic/senator.el (senator-next-tag, senator-previous-tag) 23 * semantic/senator.el (senator-next-tag, senator-previous-tag)
@@ -57,8 +66,8 @@
572012-10-06 Chong Yidong <cyd@gnu.org> 662012-10-06 Chong Yidong <cyd@gnu.org>
58 67
59 * semantic/bovine/grammar.el: 68 * semantic/bovine/grammar.el:
60 * semantic/wisent/grammar.el: Move from admin/grammars. Add 69 * semantic/wisent/grammar.el: Move from admin/grammars.
61 autoloads for bovine-grammar-mode and wisent-grammar-mode. 70 Add autoloads for bovine-grammar-mode and wisent-grammar-mode.
62 71
632012-10-02 Chong Yidong <cyd@gnu.org> 722012-10-02 Chong Yidong <cyd@gnu.org>
64 73
@@ -163,8 +172,8 @@
163 (-scheme, -makefile-misc, ede-proj-target-makefile-program) 172 (-scheme, -makefile-misc, ede-proj-target-makefile-program)
164 (-makefile-archive, -makefile-shared-object) 173 (-makefile-archive, -makefile-shared-object)
165 (ede-proj-target-makefile-info, -grammar): New autoloads. 174 (ede-proj-target-makefile-info, -grammar): New autoloads.
166 (ede-proj-project): Inherit from eieio-persistent-read. Specify 175 (ede-proj-project): Inherit from eieio-persistent-read.
167 extension and header line. 176 Specify extension and header line.
168 (ede-proj-load, ede-proj-save): Replace with impl using 177 (ede-proj-load, ede-proj-save): Replace with impl using
169 eieio-persistent-read. 178 eieio-persistent-read.
170 179
@@ -176,27 +185,27 @@
176 (navigate-menu): Add menu item for Stickyfunc mode. 185 (navigate-menu): Add menu item for Stickyfunc mode.
177 186
178 * semantic/analyze/debug.el 187 * semantic/analyze/debug.el
179 (semantic-analyzer-debug-insert-include-summary): Before 188 (semantic-analyzer-debug-insert-include-summary):
180 dereferencing tableinner, make sure it has a value. 189 Before dereferencing tableinner, make sure it has a value.
181 190
182 * semantic/analyze/refs.el 191 * semantic/analyze/refs.el
183 (semantic-analyze-tag-references-default): When doing a lookup, 192 (semantic-analyze-tag-references-default): When doing a lookup,
184 specify noerror. 193 specify noerror.
185 (semantic--analyze-refs-full-lookup): Add optional noerror input 194 (semantic--analyze-refs-full-lookup): Add optional noerror input
186 argument. Pass to to full-lookup-simple. 195 argument. Pass to to full-lookup-simple.
187 (semantic-analyze-refs-impl, semantic-analyze-refs-proto): Ignore 196 (semantic-analyze-refs-impl, semantic-analyze-refs-proto):
188 :typemodifiers during compare. 197 Ignore :typemodifiers during compare.
189 198
190 * semantic/bovine/c.el (semantic-lex-cpp-define): Specify limits 199 * semantic/bovine/c.el (semantic-lex-cpp-define): Specify limits
191 to looking back for comment chars. 200 to looking back for comment chars.
192 (semantic--tag-similar-names-p, semantic--tag-similar-names-p-default) 201 (semantic--tag-similar-names-p, semantic--tag-similar-names-p-default)
193 (semantic--tag-attribute-similar-p): New. 202 (semantic--tag-attribute-similar-p): New.
194 (semantic-c-describe-environment): Handle list value of ede-object. 203 (semantic-c-describe-environment): Handle list value of ede-object.
195 (semantic-lex-c-preprocessor-symbol-map-builtin): Add 204 (semantic-lex-c-preprocessor-symbol-map-builtin):
196 __attribute_pure__. 205 Add __attribute_pure__.
197 206
198 * semantic/bovine/scm.el (semantic-format-tag-prototype): Add 207 * semantic/bovine/scm.el (semantic-format-tag-prototype):
199 parent and color argument. Pass them through. 208 Add parent and color argument. Pass them through.
200 209
201 * semantic/complete.el (semantic-collector-calculate-completions): 210 * semantic/complete.el (semantic-collector-calculate-completions):
202 Search for more matches if new prefix is a substring of old one. 211 Search for more matches if new prefix is a substring of old one.
@@ -217,15 +226,15 @@
217 the (%d tags) extra string. 226 the (%d tags) extra string.
218 (semanticdb-project-database): Specify :type for table. 227 (semanticdb-project-database): Specify :type for table.
219 (semanticdb-create-table-for-file): Specify file-truename. 228 (semanticdb-create-table-for-file): Specify file-truename.
220 (semanticdb-synchronize, semanticdb-partial-synchronize): Restore 229 (semanticdb-synchronize, semanticdb-partial-synchronize):
221 code that refreshes references to include files. 230 Restore code that refreshes references to include files.
222 231
223 * semantic/decorate/include.el 232 * semantic/decorate/include.el
224 (semantic-decoration-on-fileless-includes): New face. 233 (semantic-decoration-on-fileless-includes): New face.
225 (semantic-decoration-on-fileless-include-map) 234 (semantic-decoration-on-fileless-include-map)
226 (semantic-decoration-on-fileless-include-menu): New variables. 235 (semantic-decoration-on-fileless-include-menu): New variables.
227 (semantic-decoration-on-includes-highlight-default): Support 236 (semantic-decoration-on-includes-highlight-default):
228 includes that have a table, but are not associated with a file. 237 Support includes that have a table, but are not associated with a file.
229 (semantic-decoration-fileless-include-describe) 238 (semantic-decoration-fileless-include-describe)
230 (semantic-decoration-fileless-include-menu): New functions. 239 (semantic-decoration-fileless-include-menu): New functions.
231 (semantic-decoration-all-include-summary): Add arrows to indicate 240 (semantic-decoration-all-include-summary): Add arrows to indicate
@@ -262,15 +271,15 @@
262 * semantic/tag.el (semantic-create-tag-proxy) 271 * semantic/tag.el (semantic-create-tag-proxy)
263 (semantic-tag-set-proxy, semantic-tag-resolve-proxy): New. 272 (semantic-tag-set-proxy, semantic-tag-resolve-proxy): New.
264 273
265 * semantic/util.el (semantic-describe-buffer): Add 274 * semantic/util.el (semantic-describe-buffer):
266 semantic-new-buffer-fcn-was-run. 275 Add semantic-new-buffer-fcn-was-run.
267 276
268 * semantic/wisent/java-tags.el (semantic-get-local-variables): Add 277 * semantic/wisent/java-tags.el (semantic-get-local-variables):
269 `this' to the local variable context. 278 Add `this' to the local variable context.
270 (semantic-analyze-split-name, semantic-analyze-unsplit-name): New. 279 (semantic-analyze-split-name, semantic-analyze-unsplit-name): New.
271 280
272 * semantic/wisent/python.el (semantic-python-expand-tag): New 281 * semantic/wisent/python.el (semantic-python-expand-tag):
273 function. 282 New function.
274 283
275 * srecode/compile.el (srecode-compile-templates): Add "framework" 284 * srecode/compile.el (srecode-compile-templates): Add "framework"
276 special variable support. 285 special variable support.
@@ -280,7 +289,7 @@
280 (srecode-semantic-handle-:cpp): New functions. 289 (srecode-semantic-handle-:cpp): New functions.
281 (srecode-semantic-apply-tag-to-dict): Move from cpp-mode function 290 (srecode-semantic-apply-tag-to-dict): Move from cpp-mode function
282 to c-mode function. 291 to c-mode function.
283 (srecode-c-apply-templates): Renamed from srecode-cpp-apply-templates. 292 (srecode-c-apply-templates): Rename from srecode-cpp-apply-templates.
284 293
285 * srecode/dictionary.el (initialize-instance): Remove bogus error 294 * srecode/dictionary.el (initialize-instance): Remove bogus error
286 condition. 295 condition.
@@ -293,8 +302,8 @@
293 302
294 * srecode/mode.el (srecode-minor-mode): Support the m3 menu. 303 * srecode/mode.el (srecode-minor-mode): Support the m3 menu.
295 304
296 * srecode/semantic.el (srecode-semantic-insert-tag): Support 305 * srecode/semantic.el (srecode-semantic-insert-tag):
297 system includes. 306 Support system includes.
298 307
299 * srecode/srt-mode.el (srecode-font-lock-keywords): Update. 308 * srecode/srt-mode.el (srecode-font-lock-keywords): Update.
300 309
@@ -325,8 +334,8 @@
325 * ede/proj-comp.el (ede-proj-makefile-insert-rules): Fix insertion 334 * ede/proj-comp.el (ede-proj-makefile-insert-rules): Fix insertion
326 of phony rule. 335 of phony rule.
327 336
328 * ede/proj-elisp.el (ede-proj-target-elisp): Remove 337 * ede/proj-elisp.el (ede-proj-target-elisp):
329 ede-emacs-preload-compiler. 338 Remove ede-emacs-preload-compiler.
330 (ede-proj-makefile-insert-rules, ede-proj-makefile-dependencies): 339 (ede-proj-makefile-insert-rules, ede-proj-makefile-dependencies):
331 New methods. 340 New methods.
332 (ede-emacs-compiler): Add 'require' macro to variables and pattern 341 (ede-emacs-compiler): Add 'require' macro to variables and pattern
@@ -362,8 +371,8 @@
362 (semantic-cpp-lexer): Add semantic-lex-c-ifdef. 371 (semantic-cpp-lexer): Add semantic-lex-c-ifdef.
363 (semantic-expand-c-tag): Check if tag is non-nil before adding it 372 (semantic-expand-c-tag): Check if tag is non-nil before adding it
364 to return list 373 to return list
365 (semantic-expand-c-extern-C, semantic-expand-c-complex-type): New 374 (semantic-expand-c-extern-C, semantic-expand-c-complex-type):
366 functions, copied from semantic-expand-c-tag. 375 New functions, copied from semantic-expand-c-tag.
367 (semantic-find-tags-included): New override which also searches 376 (semantic-find-tags-included): New override which also searches
368 for include tags inside of namespaces. 377 for include tags inside of namespaces.
369 (semantic-c-dereference-typedef): Use semantic-tag-prototype-p. 378 (semantic-c-dereference-typedef): Use semantic-tag-prototype-p.
@@ -371,16 +380,16 @@
371 380
372 * semantic/bovine/el.el: Remove emacs-lisp-mode-hook. 381 * semantic/bovine/el.el: Remove emacs-lisp-mode-hook.
373 382
374 * semantic/complete.el (semantic-complete-post-command-hook): Exit 383 * semantic/complete.el (semantic-complete-post-command-hook):
375 completion when user has deleted all characters from the prefix. 384 Exit completion when user has deleted all characters from the prefix.
376 (semantic-displayor-focus-request): Return to previous window when 385 (semantic-displayor-focus-request): Return to previous window when
377 focussing tags. 386 focussing tags.
378 387
379 * semantic/db-el.el (semanticdb-normalize-one-tag): Make obsolete. 388 * semantic/db-el.el (semanticdb-normalize-one-tag): Make obsolete.
380 (semanticdb-elisp-sym->tag): Use help-function-arglist instead. 389 (semanticdb-elisp-sym->tag): Use help-function-arglist instead.
381 390
382 * semantic/db-file.el (semanticdb-create-database): Use 391 * semantic/db-file.el (semanticdb-create-database):
383 semantic-tag-version instead of just semantic-version as the 392 Use semantic-tag-version instead of just semantic-version as the
384 initializer for the :semantic-tag-version slot. 393 initializer for the :semantic-tag-version slot.
385 394
386 * semantic/db-find.el (semanticdb-find-tags-by-class-method): 395 * semantic/db-find.el (semanticdb-find-tags-by-class-method):
@@ -394,11 +403,11 @@
394 (semanticdb-save-current-db, semanticdb-save-all-db): Only emit 403 (semanticdb-save-current-db, semanticdb-save-all-db): Only emit
395 message when running interactively. 404 message when running interactively.
396 405
397 * semantic/decorate/mode.el (semantic-decoration-mode): Activate 406 * semantic/decorate/mode.el (semantic-decoration-mode):
398 decoration of includes by default. 407 Activate decoration of includes by default.
399 408
400 * semantic/doc.el (semantic-doc-snarf-comment-for-tag): Remove 409 * semantic/doc.el (semantic-doc-snarf-comment-for-tag):
401 comment delimiter at the end of the text. 410 Remove comment delimiter at the end of the text.
402 411
403 * semantic/ede-grammar.el (semantic-ede-proj-target-grammar): 412 * semantic/ede-grammar.el (semantic-ede-proj-target-grammar):
404 Change aux- and pre-load-packages. 413 Change aux- and pre-load-packages.
@@ -412,16 +421,16 @@
412 (ede-proj-makefile-insert-rules): Add target specific EMACSFLAGS 421 (ede-proj-makefile-insert-rules): Add target specific EMACSFLAGS
413 to raise max-specpdl-size and max-lisp-eval-depth. 422 to raise max-specpdl-size and max-lisp-eval-depth.
414 423
415 * semantic/find.el (semantic-find-tags-included): Make 424 * semantic/find.el (semantic-find-tags-included):
416 overridable. 425 Make overridable.
417 426
418 * semantic/fw.el (semantic-alias-obsolete) 427 * semantic/fw.el (semantic-alias-obsolete)
419 (semantic-varalias-obsolete): Use byte-compile-warn. 428 (semantic-varalias-obsolete): Use byte-compile-warn.
420 (semantic-find-file-noselect): Disable font lock by calling 429 (semantic-find-file-noselect): Disable font lock by calling
421 global-font-lock-mode. 430 global-font-lock-mode.
422 431
423 * semantic/grammar.el (semantic-grammar-create-package): Fix 432 * semantic/grammar.el (semantic-grammar-create-package):
424 message. 433 Fix message.
425 (semantic-grammar-batch-build-one-package): When generating 434 (semantic-grammar-batch-build-one-package): When generating
426 parsers in batch-mode, ignore version control and make sure we do 435 parsers in batch-mode, ignore version control and make sure we do
427 not use cached versions. 436 not use cached versions.
@@ -433,16 +442,16 @@
433 (semantic-lex-spp-lex-text-string): Instead of only setting the 442 (semantic-lex-spp-lex-text-string): Instead of only setting the
434 lexer, call the major mode's setup function. 443 lexer, call the major mode's setup function.
435 444
436 * semantic/scope.el (semantic-analyze-scoped-types-default): Use 445 * semantic/scope.el (semantic-analyze-scoped-types-default):
437 semantic-tag-prototype-p. 446 Use semantic-tag-prototype-p.
438 (semantic-analyze-scope-nested-tags-default): Make sure we don't 447 (semantic-analyze-scope-nested-tags-default): Make sure we don't
439 return tags we already have in scopetypes. 448 return tags we already have in scopetypes.
440 449
441 * semantic/symref/filter.el 450 * semantic/symref/filter.el
442 (semantic-symref-test-count-hits-in-tag): Restore. 451 (semantic-symref-test-count-hits-in-tag): Restore.
443 452
444 * semantic/wisent/comp.el (wisent-BITS-PER-WORD): Use 453 * semantic/wisent/comp.el (wisent-BITS-PER-WORD):
445 most-positive-fixnum if available. 454 Use most-positive-fixnum if available.
446 455
447 * semantic/wisent/javascript.el (semantic-tag-protection) 456 * semantic/wisent/javascript.el (semantic-tag-protection)
448 (semantic-analyze-scope-calculate-access) 457 (semantic-analyze-scope-calculate-access)
@@ -477,8 +486,8 @@
4772012-10-01 Jan Moringen <jan.moringen@uni-bielefeld.de> 4862012-10-01 Jan Moringen <jan.moringen@uni-bielefeld.de>
478 487
479 * semantic/idle.el 488 * semantic/idle.el
480 (semantic-idle-breadcrumbs--display-in-header-line): Escape 489 (semantic-idle-breadcrumbs--display-in-header-line):
481 %-characters to avoid erroneous expansion in header line. 490 Escape %-characters to avoid erroneous expansion in header line.
482 (semantic-idle-breadcrumbs--display-in-mode-line): Likewise. 491 (semantic-idle-breadcrumbs--display-in-mode-line): Likewise.
483 492
484 * semantic/wisent/python.el (wisent-python-reconstitute-function-tag) 493 * semantic/wisent/python.el (wisent-python-reconstitute-function-tag)
@@ -514,8 +523,8 @@
514 523
515 * semantic/wisent/python.el (wisent-python-string-start-re) 524 * semantic/wisent/python.el (wisent-python-string-start-re)
516 (wisent-python-string-re, wisent-python-forward-string) 525 (wisent-python-string-re, wisent-python-forward-string)
517 (wisent-python-forward-line,wisent-python-lex-string): New 526 (wisent-python-forward-line,wisent-python-lex-string):
518 variables. 527 New variables.
519 (wisent-python-forward-balanced-expression): New function. 528 (wisent-python-forward-balanced-expression): New function.
520 529
5212012-10-01 Pete Beardmore <elbeardmorez@msn.com> 5302012-10-01 Pete Beardmore <elbeardmorez@msn.com>
@@ -528,16 +537,16 @@
528 (semantic-displayor-tooltip-mode) 537 (semantic-displayor-tooltip-mode)
529 (semantic-displayor-tooltip-initial-max-tags) 538 (semantic-displayor-tooltip-initial-max-tags)
530 (semantic-displayor-tooltip-max-tags): New defcustoms. 539 (semantic-displayor-tooltip-max-tags): New defcustoms.
531 (semantic-displayor-tooltip): Use new variables as initforms. Use 540 (semantic-displayor-tooltip): Use new variables as initforms.
532 new slot `mode' instead of `force-show'. Rename `max-tags' to 541 Use new slot `mode' instead of `force-show'. Rename `max-tags' to
533 `max-tags-initial'. 542 `max-tags-initial'.
534 (semantic-displayor-show-request): Display completions according 543 (semantic-displayor-show-request): Display completions according
535 to new modes, and make variable names clearer. 544 to new modes, and make variable names clearer.
536 (semantic-displayor-tooltip::semantic-displayor-scroll-request): 545 (semantic-displayor-tooltip::semantic-displayor-scroll-request):
537 Use new max-tags-initial slot. 546 Use new max-tags-initial slot.
538 547
539 * semantic/idle.el (semantic-idle-local-symbol-highlight): Make 548 * semantic/idle.el (semantic-idle-local-symbol-highlight):
540 sure there actually is a tag at point. 549 Make sure there actually is a tag at point.
541 (semantic-idle-completion-list-default): Report errors as messages 550 (semantic-idle-completion-list-default): Report errors as messages
542 if semantic-idle-scheduler-verbose-flag is non-nil. 551 if semantic-idle-scheduler-verbose-flag is non-nil.
543 552
@@ -548,13 +557,13 @@
548 557
5492012-10-01 Alex Ott <alexott@gmail.com> 5582012-10-01 Alex Ott <alexott@gmail.com>
550 559
551 * semantic/idle.el (semantic-idle-scheduler-enabled-p): Fix 560 * semantic/idle.el (semantic-idle-scheduler-enabled-p):
552 file-checking. 561 Fix file-checking.
553 562
5542012-10-01 Darren Hoo <darren.hoo@gmail.com> (tiny change) 5632012-10-01 Darren Hoo <darren.hoo@gmail.com> (tiny change)
555 564
556 * semantic/db-find.el (semanticdb-find-default-throttle): Make 565 * semantic/db-find.el (semanticdb-find-default-throttle):
557 buffer-local. 566 Make buffer-local.
558 (semanticdb-strip-find-results): Check for existing :filename 567 (semanticdb-strip-find-results): Check for existing :filename
559 attribute, so that file information from GNU Global is not lost. 568 attribute, so that file information from GNU Global is not lost.
560 569
@@ -1001,7 +1010,7 @@
1001 (ede-customize-forms-menu): Prevent error if there is no project. 1010 (ede-customize-forms-menu): Prevent error if there is no project.
1002 (ede-load-project-file): Set ede-constructing to the thing being 1011 (ede-load-project-file): Set ede-constructing to the thing being
1003 constructed, instead of t. 1012 constructed, instead of t.
1004 (ede-project-force-load): Deleted. 1013 (ede-project-force-load): Delete.
1005 1014
1006 * ede/base.el: 1015 * ede/base.el:
1007 * ede/auto.el: 1016 * ede/auto.el:
@@ -1011,7 +1020,7 @@
1011 (autoconf-parameters-for-macro): Parse multiline parameters of 1020 (autoconf-parameters-for-macro): Parse multiline parameters of
1012 macros. Optionally ignore case and at bol for macro. 1021 macros. Optionally ignore case and at bol for macro.
1013 (autoconf-parameter-strip): Use greedy match for newlines. 1022 (autoconf-parameter-strip): Use greedy match for newlines.
1014 (autoconf-new-automake-string): Deleted. 1023 (autoconf-new-automake-string): Delete.
1015 (autoconf-new-program): Use SRecode to fill an empty file. 1024 (autoconf-new-program): Use SRecode to fill an empty file.
1016 1025
1017 * ede/cpp-root.el (ede-create-lots-of-projects-under-dir): 1026 * ede/cpp-root.el (ede-create-lots-of-projects-under-dir):
@@ -1046,7 +1055,7 @@
1046 (project-am-scan-for-targets): Scan also over 1055 (project-am-scan-for-targets): Scan also over
1047 project-am-meta-type-alist. 1056 project-am-meta-type-alist.
1048 (ede-system-include-path): Simple implementation. 1057 (ede-system-include-path): Simple implementation.
1049 (ede-find-target): Deleted. EDE core takes care of this. 1058 (ede-find-target): Delete. EDE core takes care of this.
1050 (ede-buffer-mine): Create the searched filename as relative. 1059 (ede-buffer-mine): Create the searched filename as relative.
1051 (project-am-load): Simplify, using autoconf-edit. 1060 (project-am-load): Simplify, using autoconf-edit.
1052 (project-am-extract-package-info): Fix separators. 1061 (project-am-extract-package-info): Fix separators.
@@ -1063,7 +1072,7 @@
1063 (ede-proj-target-makefile-objectcode): Quote initforms. 1072 (ede-proj-target-makefile-objectcode): Quote initforms.
1064 Support lex and yacc. 1073 Support lex and yacc.
1065 1074
1066 * ede/proj-prog.el (ede-proj-makefile-insert-rules): Removed. 1075 * ede/proj-prog.el (ede-proj-makefile-insert-rules): Remove.
1067 (ede-proj-makefile-insert-variables): New, add LDDEPS. 1076 (ede-proj-makefile-insert-variables): New, add LDDEPS.
1068 (ede-proj-makefile-insert-automake-post-variables): Add LDADD 1077 (ede-proj-makefile-insert-automake-post-variables): Add LDADD
1069 variable. Use ldlibs-local slot. Add a -l to ldlibs strings. 1078 variable. Use ldlibs-local slot. Add a -l to ldlibs strings.
@@ -1158,7 +1167,7 @@
1158 1167
1159 * semantic/util.el (semantic-hack-search) 1168 * semantic/util.el (semantic-hack-search)
1160 (semantic-recursive-find-nonterminal-by-name) 1169 (semantic-recursive-find-nonterminal-by-name)
1161 (semantic-current-tag-interactive): Deleted. 1170 (semantic-current-tag-interactive): Delete.
1162 (semantic-describe-buffer): Fix expand-nonterminal. 1171 (semantic-describe-buffer): Fix expand-nonterminal.
1163 Add lex-syntax-mods, type relation separator char, and command 1172 Add lex-syntax-mods, type relation separator char, and command
1164 separation char. 1173 separation char.
@@ -1191,7 +1200,7 @@
1191 (semantic-idle-truncate-long-summaries): New option. 1200 (semantic-idle-truncate-long-summaries): New option.
1192 1201
1193 * semantic/ia.el (semantic-ia-cache) 1202 * semantic/ia.el (semantic-ia-cache)
1194 (semantic-ia-get-completions): Deleted. Callers changed. 1203 (semantic-ia-get-completions): Delete. Callers changed.
1195 (semantic-ia-show-variants): New command. 1204 (semantic-ia-show-variants): New command.
1196 (semantic-ia-show-doc): If doc is empty, don't make a temp buffer. 1205 (semantic-ia-show-doc): If doc is empty, don't make a temp buffer.
1197 (semantic-ia-show-summary): If there isn't anything to show, say so. 1206 (semantic-ia-show-summary): If there isn't anything to show, say so.
diff --git a/lisp/cedet/semantic/db-file.el b/lisp/cedet/semantic/db-file.el
index 7b4a47bd260..4f8e93dc391 100644
--- a/lisp/cedet/semantic/db-file.el
+++ b/lisp/cedet/semantic/db-file.el
@@ -70,7 +70,9 @@ passes a list of predicates in `semanticdb-project-predicate-functions'."
70 :group 'semanticdb 70 :group 'semanticdb
71 :type nil) 71 :type nil)
72 72
73(defcustom semanticdb-save-database-hooks nil 73(define-obsolete-variable-alias 'semanticdb-save-database-hooks
74 'semanticdb-save-database-functions "24.3")
75(defcustom semanticdb-save-database-functions nil
74 "Abnormal hook run after a database is saved. 76 "Abnormal hook run after a database is saved.
75Each function is called with one argument, the object representing 77Each function is called with one argument, the object representing
76the database recently written." 78the database recently written."
@@ -251,7 +253,7 @@ If DB is not specified, then use the current database."
251 (message "Save Error: %S: %s" (car (cdr foo)) 253 (message "Save Error: %S: %s" (car (cdr foo))
252 objname) 254 objname)
253 (error "%S" (car (cdr foo)))))))) 255 (error "%S" (car (cdr foo))))))))
254 (run-hook-with-args 'semanticdb-save-database-hooks 256 (run-hook-with-args 'semanticdb-save-database-functions
255 (or DB semanticdb-current-database)) 257 (or DB semanticdb-current-database))
256 ;;(message "Saving tag summary for %s...done" objname) 258 ;;(message "Saving tag summary for %s...done" objname)
257 ) 259 )
diff --git a/lisp/cedet/semantic/edit.el b/lisp/cedet/semantic/edit.el
index 23b6784fe2a..5b39dec2628 100644
--- a/lisp/cedet/semantic/edit.el
+++ b/lisp/cedet/semantic/edit.el
@@ -72,7 +72,9 @@ updated in the current buffer.
72 72
73For language specific hooks, make sure you define this as a local hook.") 73For language specific hooks, make sure you define this as a local hook.")
74 74
75(defvar semantic-change-hooks 75(define-obsolete-variable-alias 'semantic-change-hooks
76 'semantic-change-functions "24.3")
77(defvar semantic-change-functions
76 '(semantic-edits-change-function-handle-changes) 78 '(semantic-edits-change-function-handle-changes)
77 "Abnormal hook run when semantic detects a change in a buffer. 79 "Abnormal hook run when semantic detects a change in a buffer.
78Each hook function must take three arguments, identical to the 80Each hook function must take three arguments, identical to the
@@ -89,11 +91,15 @@ If the hook returns non-nil, then declare that a reparse is needed.
89For language specific hooks, make sure you define this as a local hook. 91For language specific hooks, make sure you define this as a local hook.
90Not used yet; part of the next generation reparse mechanism.") 92Not used yet; part of the next generation reparse mechanism.")
91 93
92(defvar semantic-edits-new-change-hooks nil 94(define-obsolete-variable-alias 'semantic-edits-new-change-hooks
95 'semantic-edits-new-change-functions "24.3")
96(defvar semantic-edits-new-change-functions nil
93 "Abnormal hook run when a new change is found. 97 "Abnormal hook run when a new change is found.
94Functions must take one argument representing an overlay on that change.") 98Functions must take one argument representing an overlay on that change.")
95 99
96(defvar semantic-edits-delete-change-hooks nil 100(define-obsolete-variable-alias 'semantic-edits-delete-change-hooks
101 'semantic-edits-delete-change-functions "24.3")
102(defvar semantic-edits-delete-change-functions nil
97 "Abnormal hook run before a change overlay is deleted. 103 "Abnormal hook run before a change overlay is deleted.
98Deleted changes occur when multiple changes are merged. 104Deleted changes occur when multiple changes are merged.
99Functions must take one argument representing an overlay being deleted.") 105Functions must take one argument representing an overlay being deleted.")
@@ -104,7 +110,9 @@ Changes move when a new change overlaps an old change. The old change
104will be moved. 110will be moved.
105Functions must take one argument representing an overlay being moved.") 111Functions must take one argument representing an overlay being moved.")
106 112
107(defvar semantic-edits-reparse-change-hooks nil 113(define-obsolete-variable-alias 'semantic-edits-reparse-change-hooks
114 'semantic-edits-reparse-change-functions "24.3")
115(defvar semantic-edits-reparse-change-functions nil
108 "Abnormal hook run after a change results in a reparse. 116 "Abnormal hook run after a change results in a reparse.
109Functions are called before the overlay is deleted, and after the 117Functions are called before the overlay is deleted, and after the
110incremental reparse.") 118incremental reparse.")
@@ -133,7 +141,7 @@ Argument START, END, and LENGTH specify the bounds of the change."
133 (setq semantic-unmatched-syntax-cache-check t) 141 (setq semantic-unmatched-syntax-cache-check t)
134 (let ((inhibit-point-motion-hooks t) 142 (let ((inhibit-point-motion-hooks t)
135 ) 143 )
136 (run-hook-with-args 'semantic-change-hooks start end length) 144 (run-hook-with-args 'semantic-change-functions start end length)
137 )) 145 ))
138 146
139(defun semantic-changes-in-region (start end &optional buffer) 147(defun semantic-changes-in-region (start end &optional buffer)
@@ -168,7 +176,7 @@ Argument START, END, and LENGTH specify the bounds of the change."
168 ;; function will be removed from the list of active change 176 ;; function will be removed from the list of active change
169 ;; functions. 177 ;; functions.
170 (condition-case nil 178 (condition-case nil
171 (run-hook-with-args 'semantic-edits-new-change-hooks o) 179 (run-hook-with-args 'semantic-edits-new-change-functions o)
172 (error nil))) 180 (error nil)))
173 (let ((tmp changes-in-change)) 181 (let ((tmp changes-in-change))
174 ;; Find greatest bounds of all changes 182 ;; Find greatest bounds of all changes
@@ -188,7 +196,7 @@ Argument START, END, and LENGTH specify the bounds of the change."
188 ;; Delete other changes. They are now all bound here. 196 ;; Delete other changes. They are now all bound here.
189 (while changes-in-change 197 (while changes-in-change
190 (condition-case nil 198 (condition-case nil
191 (run-hook-with-args 'semantic-edits-delete-change-hooks 199 (run-hook-with-args 'semantic-edits-delete-change-functions
192 (car changes-in-change)) 200 (car changes-in-change))
193 (error nil)) 201 (error nil))
194 (semantic-overlay-delete (car changes-in-change)) 202 (semantic-overlay-delete (car changes-in-change))
@@ -198,7 +206,7 @@ Argument START, END, and LENGTH specify the bounds of the change."
198(defsubst semantic-edits-flush-change (change) 206(defsubst semantic-edits-flush-change (change)
199 "Flush the CHANGE overlay." 207 "Flush the CHANGE overlay."
200 (condition-case nil 208 (condition-case nil
201 (run-hook-with-args 'semantic-edits-delete-change-hooks 209 (run-hook-with-args 'semantic-edits-delete-change-functions
202 change) 210 change)
203 (error nil)) 211 (error nil))
204 (semantic-overlay-delete change)) 212 (semantic-overlay-delete change))
diff --git a/lisp/cedet/semantic/lex.el b/lisp/cedet/semantic/lex.el
index d7ab5911a67..274df355901 100644
--- a/lisp/cedet/semantic/lex.el
+++ b/lisp/cedet/semantic/lex.el
@@ -729,7 +729,9 @@ This is an alist of (ANCHOR . STREAM) elements where ANCHOR is the
729start position of the block, and STREAM is the list of tokens in that 729start position of the block, and STREAM is the list of tokens in that
730block.") 730block.")
731 731
732(defvar semantic-lex-reset-hooks nil 732(define-obsolete-variable-alias 'semantic-lex-reset-hooks
733 'semantic-lex-reset-functions "24.3")
734(defvar semantic-lex-reset-functions nil
733 "Abnormal hook used by major-modes to reset lexical analyzers. 735 "Abnormal hook used by major-modes to reset lexical analyzers.
734Hook functions are called with START and END values for the 736Hook functions are called with START and END values for the
735current lexical pass. Should be set with `add-hook', specifying 737current lexical pass. Should be set with `add-hook', specifying
@@ -771,7 +773,7 @@ analyzer which might mistake a number for as a symbol."
771 ;; Make sure the state of block parsing starts over. 773 ;; Make sure the state of block parsing starts over.
772 (setq semantic-lex-block-streams nil) 774 (setq semantic-lex-block-streams nil)
773 ;; Allow specialty reset items. 775 ;; Allow specialty reset items.
774 (run-hook-with-args 'semantic-lex-reset-hooks start end) 776 (run-hook-with-args 'semantic-lex-reset-functions start end)
775 ;; Lexing state. 777 ;; Lexing state.
776 (let* (;(starttime (current-time)) 778 (let* (;(starttime (current-time))
777 (starting-position (point)) 779 (starting-position (point))