diff options
| author | Stefan Monnier | 2015-01-07 23:11:58 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2015-01-07 23:11:58 -0500 |
| commit | 1599688e95802c34f35819f5600a48a81248732c (patch) | |
| tree | 30de69970ba2e145c374e78b3a1606a443169771 /lisp/cedet/srecode/insert.el | |
| parent | cb4db863192aed6c4d0b28e6490f08d5518ff3e7 (diff) | |
| download | emacs-1599688e95802c34f35819f5600a48a81248732c.tar.gz emacs-1599688e95802c34f35819f5600a48a81248732c.zip | |
lisp/emacs-lisp/eieio-core.el (eieio-backward-compatibility): New var.
* lisp/cedet/ede/speedbar.el (ede-speedbar-compile-line)
(ede-speedbar-get-top-project-for-line):
* lisp/cedet/ede.el (ede-buffer-belongs-to-target-p)
(ede-buffer-belongs-to-project-p, ede-build-forms-menu)
(ede-add-project-to-global-list):
* lisp/cedet/semantic/db-typecache.el (semanticdb-get-typecache):
* lisp/cedet/semantic/db-file.el (semanticdb-load-database):
* lisp/cedet/semantic/db-el.el (semanticdb-elisp-sym->tag):
* lisp/cedet/semantic/db-ebrowse.el (semanticdb-ebrowse-load-helper):
* lisp/cedet/ede/project-am.el (project-am-preferred-target-type):
* lisp/cedet/ede/proj.el (ede-proj-load):
* lisp/cedet/ede/custom.el (ede-customize-current-target, ede-customize-target):
* lisp/cedet/semantic/ede-grammar.el ("semantic grammar"):
* lisp/cedet/semantic/scope.el (semantic-scope-reset-cache)
(semantic-calculate-scope):
* lisp/cedet/srecode/map.el (srecode-map-update-map):
* lisp/cedet/srecode/insert.el (srecode-insert-show-error-report)
(srecode-insert-method, srecode-insert-include-lookup)
(srecode-insert-method):
* lisp/cedet/srecode/fields.el (srecode-active-template-region):
* lisp/cedet/srecode/compile.el (srecode-flush-active-templates)
(srecode-compile-inserter): Don't use <class> as a variable.
Use `oref-default' for class slots.
* lisp/cedet/semantic/grammar.el (semantic-grammar-eldoc-last-data): New var.
(semantic-grammar-eldoc-get-macro-docstring): Use it instead of
eldoc-last-data.
* lisp/cedet/semantic/fw.el (semantic-exit-on-input): Use `declare'.
(semantic-throw-on-input): Use `with-current-buffer'.
* lisp/cedet/semantic/db.el (semanticdb-abstract-table-list): Define if not
pre-defined.
* lisp/cedet/semantic/db-find.el (semanticdb-find-tags-collector):
Use save-current-buffer.
(semanticdb-find-tags-collector): Don't use <class> as a variable.
* lisp/cedet/semantic/complete.el (semantic-complete-active-default)
(semantic-complete-current-matched-tag): Declare.
(semantic-complete-inline-custom-type): Don't use <class> as a variable.
* lisp/cedet/semantic/bovine/make.el (semantic-analyze-possible-completions):
Use with-current-buffer.
* lisp/cedet/semantic.el (semantic-parser-warnings): Declare.
* lisp/cedet/ede/base.el (ede-target-list): Define if not pre-defined.
(ede-with-projectfile): Prefer find-file-noselect over
save-window-excursion.
* lisp/emacs-lisp/chart.el (chart-add-sequence, chart-bar-quickie):
Don't use <class> as a variable.
* lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value):
Improve error messages.
(eieio-persistent-slot-type-is-class-p): Handle `list-of' types, as
well as user-defined types. Emit errors for legacy types like
<class>-child and <class>-list, if not eieio-backward-compatibility.
* lisp/emacs-lisp/eieio-core.el (eieio-backward-compatibility): New var.
(eieio-defclass-autoload): Obey it.
(eieio--class-object): Improve error behavior.
(eieio-class-children-fast, same-class-fast-p): Remove. Inline at
every use site.
(eieio--defgeneric-form-primary-only): Rename from
eieio-defgeneric-form-primary-only; update all callers.
(eieio--defgeneric-form-primary-only-one): Rename from
eieio-defgeneric-form-primary-only-one; update all callers.
(eieio-defgeneric-reset-generic-form)
(eieio-defgeneric-reset-generic-form-primary-only)
(eieio-defgeneric-reset-generic-form-primary-only-one): Remove.
(eieio--method-optimize-primary): New function to replace them.
(eieio--defmethod, eieio-defmethod): Use it.
(eieio--perform-slot-validation): Rename from
eieio-perform-slot-validation; update all callers.
(eieio--validate-slot-value): Rename from eieio-validate-slot-value.
Change `class' to be a class object. Update all callers.
(eieio--validate-class-slot-value): Rename from
eieio-validate-class-slot-value. Change `class' to be a class object.
Update all callers.
(eieio-oset-default): Accept class object as well.
(eieio--generic-call-primary-only): Rename from
eieio-generic-call-primary-only. Update all callers.
* lisp/emacs-lisp/eieio-opt.el (eieio-read-generic-p): Remove.
(eieio-read-generic): Use `generic-p' instead.
* lisp/emacs-lisp/eieio.el (same-class-p): Accept class object as well.
(call-next-method): Simplify.
(clone): Obey eieio-backward-compatibility.
* lisp/gnus/registry.el: Don't use <class> as a variable.
* test/automated/eieio-test-methodinvoke.el
(eieio-test-method-order-list-4):
Don't use <class> as a variable.
* test/automated/eieio-test-persist.el (persistent-with-objs-list-slot):
Don't use <class>-list type.
* test/automated/eieio-tests.el: Use cl-lib. Don't use <class> as a variable.
Don't use <class>-list types and <class>-list-p predicates.
Diffstat (limited to 'lisp/cedet/srecode/insert.el')
| -rw-r--r-- | lisp/cedet/srecode/insert.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/cedet/srecode/insert.el b/lisp/cedet/srecode/insert.el index 0fe81a7e155..78ec1658859 100644 --- a/lisp/cedet/srecode/insert.el +++ b/lisp/cedet/srecode/insert.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; srecode/insert.el --- Insert srecode templates to an output stream. | 1 | ;;; srecode/insert.el --- Insert srecode templates to an output stream. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2005, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2005, 2007-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Eric M. Ludlam <zappo@gnu.org> | 5 | ;; Author: Eric M. Ludlam <zappo@gnu.org> |
| 6 | 6 | ||
| @@ -211,7 +211,7 @@ insertions." | |||
| 211 | (propertize " (most recent at bottom)" 'face '(:slant italic)) | 211 | (propertize " (most recent at bottom)" 'face '(:slant italic)) |
| 212 | ":\n") | 212 | ":\n") |
| 213 | (data-debug-insert-stuff-list | 213 | (data-debug-insert-stuff-list |
| 214 | (reverse (oref srecode-template active)) "> ") | 214 | (reverse (oref-default 'srecode-template active)) "> ") |
| 215 | ;; Show the current dictionary. | 215 | ;; Show the current dictionary. |
| 216 | (insert (propertize "Dictionary" 'face '(:weight bold)) "\n") | 216 | (insert (propertize "Dictionary" 'face '(:weight bold)) "\n") |
| 217 | (data-debug-insert-thing dictionary "" "> ") | 217 | (data-debug-insert-thing dictionary "" "> ") |
| @@ -396,7 +396,7 @@ Specify the :blank argument to enable this inserter.") | |||
| 396 | (pm (point-marker))) | 396 | (pm (point-marker))) |
| 397 | (when (and inbuff | 397 | (when (and inbuff |
| 398 | ;; Don't do this if we are not the active template. | 398 | ;; Don't do this if we are not the active template. |
| 399 | (= (length (oref srecode-template active)) 1)) | 399 | (= (length (oref-default 'srecode-template active)) 1)) |
| 400 | 400 | ||
| 401 | (when (and (eq i t) inbuff (not (eq (oref sti where) 'begin))) | 401 | (when (and (eq i t) inbuff (not (eq (oref sti where) 'begin))) |
| 402 | (indent-according-to-mode) | 402 | (indent-according-to-mode) |
| @@ -773,7 +773,7 @@ generalized marker will do something else. See | |||
| 773 | ;; valid. Compare this to the actual template nesting depth and | 773 | ;; valid. Compare this to the actual template nesting depth and |
| 774 | ;; maybe use the override function which is stored in the cdr. | 774 | ;; maybe use the override function which is stored in the cdr. |
| 775 | (if (and srecode-template-inserter-point-override | 775 | (if (and srecode-template-inserter-point-override |
| 776 | (<= (length (oref srecode-template active)) | 776 | (<= (length (oref-default 'srecode-template active)) |
| 777 | (car srecode-template-inserter-point-override))) | 777 | (car srecode-template-inserter-point-override))) |
| 778 | ;; Disable the old override while we do this. | 778 | ;; Disable the old override while we do this. |
| 779 | (let ((over (cdr srecode-template-inserter-point-override)) | 779 | (let ((over (cdr srecode-template-inserter-point-override)) |
| @@ -943,7 +943,7 @@ this template instance." | |||
| 943 | ;; Calculate and store the discovered template | 943 | ;; Calculate and store the discovered template |
| 944 | (let ((tmpl (srecode-template-get-table (srecode-table) | 944 | (let ((tmpl (srecode-template-get-table (srecode-table) |
| 945 | templatenamepart)) | 945 | templatenamepart)) |
| 946 | (active (oref srecode-template active)) | 946 | (active (oref-default 'srecode-template active)) |
| 947 | ctxt) | 947 | ctxt) |
| 948 | (when (not tmpl) | 948 | (when (not tmpl) |
| 949 | ;; If it isn't just available, scan back through | 949 | ;; If it isn't just available, scan back through |
| @@ -1053,7 +1053,7 @@ template where a ^ inserter occurs." | |||
| 1053 | (lexical-let ((inserter1 sti)) | 1053 | (lexical-let ((inserter1 sti)) |
| 1054 | (cons | 1054 | (cons |
| 1055 | ;; DEPTH | 1055 | ;; DEPTH |
| 1056 | (+ (length (oref srecode-template active)) 1) | 1056 | (+ (length (oref-default 'srecode-template active)) 1) |
| 1057 | ;; FUNCTION | 1057 | ;; FUNCTION |
| 1058 | (lambda (dict) | 1058 | (lambda (dict) |
| 1059 | (let ((srecode-template-inserter-point-override nil)) | 1059 | (let ((srecode-template-inserter-point-override nil)) |