aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet/srecode/semantic.el
diff options
context:
space:
mode:
authorStefan Monnier2025-04-06 17:25:43 -0400
committerStefan Monnier2025-04-06 17:25:43 -0400
commit3723aabe504a95bf6c5a8aa9ce34d967ca37a159 (patch)
treeb32169b6876595c8a08ff16bbb3caf97c8c00b74 /lisp/cedet/srecode/semantic.el
parentba13e7de32d08028ab7bffdd73dab271a95ea453 (diff)
downloademacs-scratch/cedet-object-name.tar.gz
emacs-scratch/cedet-object-name.zip
cedet: Fix some remaining uses of obsolete object-name argscratch/cedet-object-name
* lisp/cedet/srecode/compile.el (srecode-compile-templates): Delete obsolete object-name argument to `srecode-compile-state` and `srecode-dictionary-compound-variable` constructors. (srecode-compile-one-template-tag, srecode-compile-inserter): Pass object name via explicit `:object-name` arg to `srecode-template`, `srecode-template-inserter-variable`, and children of `srecode-template`. * lisp/cedet/srecode/cpp.el (srecode-semantic-apply-tag-to-dict) (srecode-c-apply-templates): Delete obsolete object-name argument to `srecode-semantic-tag` constructors. * lisp/cedet/srecode/dictionary.el (srecode-dictionary-add-entries) (srecode-compound-toString): Delete obsolete object-name argument to `srecode-dictionary-compound-variable` and `srecode-field` constructors. * lisp/cedet/srecode/insert.el (srecode-insert-method-field): Delete obsolete object-name argument to `srecode-field-value` constructor. (srecode-parse-input): Pass object name via explicit `:object-name` arg to `srecode-template`. * lisp/cedet/srecode/semantic.el (srecode-semantic-handle-:tag) (srecode-semantic-insert-tag, srecode-semantic-apply-tag-to-dict-default): Delete obsolete object-name argument to `srecode-semantic-tag` constructors. * lisp/cedet/srecode/table.el (srecode-mode-table-new): Delete obsolete object-name argument to `srecode-template-table` constructor. * lisp/emacs-lisp/eieio-base.el (make-instance): Emit warning unconditionally.
Diffstat (limited to 'lisp/cedet/srecode/semantic.el')
-rw-r--r--lisp/cedet/srecode/semantic.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/cedet/srecode/semantic.el b/lisp/cedet/srecode/semantic.el
index bfacda54557..1db041cdfd0 100644
--- a/lisp/cedet/srecode/semantic.el
+++ b/lisp/cedet/srecode/semantic.el
@@ -129,8 +129,7 @@ variable default values, and other things."
129 larg nil nil))) 129 larg nil nil)))
130 ;; Apply the sub-argument to the subdictionary. 130 ;; Apply the sub-argument to the subdictionary.
131 (srecode-semantic-apply-tag-to-dict 131 (srecode-semantic-apply-tag-to-dict
132 (srecode-semantic-tag (semantic-tag-name larg) 132 (srecode-semantic-tag :prime larg)
133 :prime larg)
134 subdict) 133 subdict)
135 ) 134 )
136 ;; Next! 135 ;; Next!
@@ -203,8 +202,7 @@ variable default values, and other things."
203 (when (not tag) 202 (when (not tag)
204 (error "No tag for current template. Use the semantic kill-ring")) 203 (error "No tag for current template. Use the semantic kill-ring"))
205 (srecode-semantic-apply-tag-to-dict 204 (srecode-semantic-apply-tag-to-dict
206 (srecode-semantic-tag (semantic-tag-name tag) 205 (srecode-semantic-tag :prime tag)
207 :prime tag)
208 dict))) 206 dict)))
209 207
210;;; :tagtype ARGUMENT HANDLING 208;;; :tagtype ARGUMENT HANDLING
@@ -394,7 +392,7 @@ as `function' will leave point where code might be inserted."
394 ;; Resolve TAG into the dictionary. We may have a :tag arg 392 ;; Resolve TAG into the dictionary. We may have a :tag arg
395 ;; from the macro such that we don't need to do this. 393 ;; from the macro such that we don't need to do this.
396 (when (not (srecode-dictionary-lookup-name dict "TAG")) 394 (when (not (srecode-dictionary-lookup-name dict "TAG"))
397 (let ((tagobj (srecode-semantic-tag (semantic-tag-name tag) :prime tag)) 395 (let ((tagobj (srecode-semantic-tag :prime tag))
398 ) 396 )
399 (srecode-semantic-apply-tag-to-dict tagobj dict))) 397 (srecode-semantic-apply-tag-to-dict tagobj dict)))
400 398