cedet: Delete obsolete object name arg to EIEIO constructors

For classes that don't inherit from `eieio-named`, this argument
is ignored anyway.

* lisp/auth-source-pass.el (auth-source-pass-backend): Delete obsolete
object-name argument to `auth-source-backend` constructor.

* lisp/cedet/ede/config.el (ede-config-get-configuration): Delete obsolete
object-name argument to ede-config constructor.

* lisp/cedet/ede/cpp-root.el (ede-find-target): Delete obsolete
object-name argument to `ede-cpp-root-target` constructor.

* lisp/cedet/ede/locate.el (ede-enable-locate-on-project): Delete obsolete
object-name argument to ede-locate constructor.

* lisp/cedet/ede/project-am.el (project-am-load-makefile): Delete obsolete
object-name argument to `project-am-makefile` constructor.

* lisp/cedet/semantic/complete.el (semantic-complete-read-tag-buffer-deep)
(semantic-complete-read-tag-local-members)
(semantic-complete-read-tag-project, semantic-complete-read-tag-analyzer):
Delete obsolete object-name argument to
`semantic-collector-buffer-deep`,
`semantic-collector-local-members`,
`semantic-collector-project-brutish`, and
`semantic-collector-analyze-completions` constructors.

* lisp/cedet/semantic/db-ebrowse.el (semanticdb-create-database):
Delete obsolete object-name argument to
`semanticdb-project-database-ebrowse` constructor.

* lisp/cedet/semantic/db-file.el (semanticdb-create-database): Delete
obsolete object-name argument to
`semanticdb-project-database-file` constructor.

* lisp/cedet/semantic/db-typecache.el (semanticdb-get-typecache):
Delete obsolete object-name argument to `semanticdb-typecache` constructor.

* lisp/cedet/semantic/db.el (semanticdb-get-table-index)
(semanticdb-create-table):
Delete obsolete object-name argument to
`semanticdb-default-find-index-class`, new-table-class, and
desired-class constructors.

* lisp/cedet/semantic/bovine/c.el (semantic-analyze-tag-references):
* lisp/cedet/semantic/analyze/refs.el
(semantic-analyze-tag-references-default): Delete obsolete
object-name argument to `semantic-analyze-references` constructor.

* lisp/cedet/srecode/compile.el (srecode-compile-templates):
Delete obsolete object-name argument to `srecode-compile-state` and
`srecode-dictionary-compound-variable` constructors.

* 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.

* 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.
This commit is contained in:
Stefan Monnier 2025-04-06 17:25:43 -04:00
parent f75f8f3d6a
commit 05680dc6c5
18 changed files with 24 additions and 51 deletions

View file

@ -149,7 +149,6 @@ HOSTS can be a string or a list of strings."
(defvar auth-source-pass-backend
(auth-source-backend
(when (<= emacs-major-version 25) "password-store")
:source "." ;; not used
:type 'password-store
:search-function #'auth-source-pass-search)

View file

@ -154,14 +154,9 @@ the directory isn't on the `safe' list, ask to add it to the safe list."
(when (file-exists-p fname)
(message "Ignoring EDE config file for now and creating a new one. Use C-c . g to load it.")
;; Set how it was ignored.
(if loadask
(setq ignore-type 'manual)
(setq ignore-type 'auto))
)
(setq ignore-type (if loadask 'manual 'auto)))
;; Create a new one.
(setq config (make-instance class
"Configuration"
:file fname))
(setq config (make-instance class :file fname))
(oset config ignored-file ignore-type)
;; Set initial values based on project.

View file

@ -327,7 +327,7 @@ If one doesn't exist, create a new one for this directory."
(ans (object-assoc dir :path targets))
)
(when (not ans)
(setq ans (ede-cpp-root-target dir
(setq ans (ede-cpp-root-target
:name (file-name-nondirectory
(directory-file-name dir))
:path dir

View file

@ -89,7 +89,7 @@ based on `ede-locate-setup-options'."
(when (called-interactively-p 'interactive)
(message "Setting locator to ede-locate-base"))
(setq ans 'ede-locate-base))
(oset proj locate-obj (make-instance ans "Loc" :root root))
(oset proj locate-obj (make-instance ans :root root))
(when (called-interactively-p 'interactive)
(message "Setting locator to %s" ans))
))

View file

@ -480,7 +480,7 @@ This is used when subprojects are made in named subdirectories."
(bug (nth 2 pi))
(cof (nth 3 pi))
(ampf (project-am-makefile
pn :name pn
:name pn
:version ver
:mailinglist (or bug "")
:file fn)))

View file

@ -89,8 +89,7 @@ Use `semantic-analyze-current-tag' to debug this fcn."
(setq allhits (semantic--analyze-refs-full-lookup tag scope t))
(semantic-analyze-references (semantic-tag-name tag)
:tag tag
(semantic-analyze-references :tag tag
:tagdb db
:scope scope
:rawsearchdata allhits)

View file

@ -1256,8 +1256,7 @@ Use `semantic-analyze-current-tag' to debug this fcn."
(setq allhits (semantic--analyze-refs-full-lookup tag scope t)))
;; (setq refs
(semantic-analyze-references (semantic-tag-name tag)
:tag tag
(semantic-analyze-references :tag tag
:tagdb db
:scope scope
:rawsearchdata allhits)))) ;;)

View file

@ -1899,7 +1899,7 @@ completion text in ghost text."
(mapcar
(lambda (class)
(let* ((C (intern (car class)))
(doc (documentation-property C 'variable-documentation))
(doc (cl--class-docstring (cl--find-class C)))
(doc1 (car (split-string doc "\n")))
)
(list 'const
@ -1930,7 +1930,7 @@ DEFAULT-TAG is a semantic tag or string to use as the default value.
If INITIAL-INPUT is non-nil, insert it in the minibuffer initially.
HISTORY is a symbol representing a variable to store the history in."
(semantic-complete-read-tag-engine
(semantic-collector-buffer-deep prompt :buffer (current-buffer))
(semantic-collector-buffer-deep :buffer (current-buffer))
(semantic-displayer-traditional-with-focus-highlight)
;;(semantic-displayer-tooltip)
prompt
@ -1952,7 +1952,7 @@ DEFAULT-TAG is a semantic tag or string to use as the default value.
If INITIAL-INPUT is non-nil, insert it in the minibuffer initially.
HISTORY is a symbol representing a variable to store the history in."
(semantic-complete-read-tag-engine
(semantic-collector-local-members prompt :buffer (current-buffer))
(semantic-collector-local-members :buffer (current-buffer))
(semantic-displayer-traditional-with-focus-highlight)
;;(semantic-displayer-tooltip)
prompt
@ -1974,8 +1974,7 @@ DEFAULT-TAG is a semantic tag or string to use as the default value.
If INITIAL-INPUT is non-nil, insert it in the minibuffer initially.
HISTORY is a symbol representing a variable to store the history in."
(semantic-complete-read-tag-engine
(semantic-collector-project-brutish prompt
:buffer (current-buffer)
(semantic-collector-project-brutish :buffer (current-buffer)
:path (current-buffer)
)
(semantic-displayer-traditional-with-focus-highlight)
@ -2049,7 +2048,6 @@ prompts. these are calculated from the CONTEXT variable passed in."
(setq syms (nreverse (cdr (nreverse syms))))
(semantic-complete-read-tag-engine
(semantic-collector-analyze-completions
prompt
:buffer (oref context buffer)
:context context)
(semantic-displayer-traditional-with-focus-highlight)

View file

@ -309,11 +309,7 @@ If there is no database for DIRECTORY available, then
)
(if found
(setq db found)
(setq db (make-instance
dbeC
directory
:ebrowse-struct ebd
))
(setq db (make-instance dbeC :ebrowse-struct ebd))
(oset db reference-directory directory))
;; Once we recycle or make a new DB, refresh the

View file

@ -138,10 +138,6 @@ If DIRECTORY doesn't exist, create a new one."
(unless db
(setq db (make-instance
dbc ; Create the database requested. Perhaps
(concat (file-name-nondirectory
(directory-file-name
directory))
"/")
:file fn :tables nil
:semantic-tag-version semantic-tag-version
:semanticdb-version semanticdb-file-version)))

View file

@ -136,7 +136,7 @@ If there is no table, create one, and fill it in."
;; Make sure we have a cache object in the DB index.
(when (not cache)
;; The object won't change as we fill it with stuff.
(setq cache (semanticdb-typecache (semanticdb-full-filename table)))
(setq cache (semanticdb-typecache))
(oset idx type-cache cache))
cache))

View file

@ -188,7 +188,6 @@ If one doesn't exist, create it."
(oref obj index)
(let ((idx nil))
(setq idx (funcall semanticdb-default-find-index-class
(concat (eieio-object-name obj) " index")
;; Fill in the defaults
:table obj
))
@ -413,7 +412,6 @@ If the table for FILE does not exist, create one."
;; This implementation will satisfy autoloaded classes
;; for tables.
(setq newtab (funcall (oref db new-table-class)
(file-name-nondirectory file)
:file (file-name-nondirectory file)
))
(setf (slot-value newtab 'parent-db) db)
@ -486,7 +484,7 @@ other than :table."
(if obj
obj ;; Just return it.
;; No object, let's create a new one and return that.
(setq obj (funcall desired-class "Cache" :table table))
(setq obj (make-instance desired-class :table table))
(object-add-to-list table 'cache obj)
obj)))

View file

@ -199,8 +199,7 @@ STATE is the current compilation state."
(tag nil)
(class nil)
(table nil)
(STATE (srecode-compile-state (file-name-nondirectory
(buffer-file-name))))
(STATE (srecode-compile-state))
(mode nil)
(application nil)
(framework nil)
@ -263,7 +262,7 @@ STATE is the current compilation state."
;; Create a compound dictionary value from "value".
(require 'srecode/dictionary)
(let ((cv (srecode-dictionary-compound-variable
name :value value)))
:value value)))
(setq vars (cons (cons name cv) vars)))
))
)

View file

@ -146,8 +146,7 @@ specified in a C file."
(value-dict (srecode-dictionary-add-section-dictionary
dict "VALUE")))
(srecode-semantic-apply-tag-to-dict
(srecode-semantic-tag (semantic-tag-name value-tag)
:prime value-tag)
(srecode-semantic-tag :prime value-tag)
value-dict))
;; Discriminate using statements referring to namespaces and
@ -224,8 +223,7 @@ specified in a C file."
(let ((template-dict (srecode-dictionary-add-section-dictionary
templates-dict "ARGS")))
(srecode-semantic-apply-tag-to-dict
(srecode-semantic-tag (semantic-tag-name template)
:prime template)
(srecode-semantic-tag :prime template)
template-dict)))))
)

View file

@ -369,7 +369,7 @@ values but STATE is nil."
(srecode-dictionary-set-value
dict name
(srecode-dictionary-compound-variable
name :value value :state state)))))
:value value :state state)))))
(setq entries (nthcdr 2 entries)))
dict)
@ -536,7 +536,7 @@ inserted with a new editable field.")
(error "Unknown default value for value %S" name)))
;; Create a field from the inserter.
(srecode-field name :name name
(srecode-field :name name
:start start
:end (point)
:prompt (oref sti prompt)

View file

@ -648,8 +648,7 @@ Use DICTIONARY to resolve values."
Use DICTIONARY to resolve values."
(let* ((default (srecode-insert-ask-default sti dictionary))
(compound-value
(srecode-field-value (oref sti object-name)
:firstinserter sti
(srecode-field-value :firstinserter sti
:defaultvalue default))
)
;; Return this special compound value as the thing to insert.

View file

@ -129,8 +129,7 @@ variable default values, and other things."
larg nil nil)))
;; Apply the sub-argument to the subdictionary.
(srecode-semantic-apply-tag-to-dict
(srecode-semantic-tag (semantic-tag-name larg)
:prime larg)
(srecode-semantic-tag :prime larg)
subdict)
)
;; Next!
@ -203,8 +202,7 @@ variable default values, and other things."
(when (not tag)
(error "No tag for current template. Use the semantic kill-ring"))
(srecode-semantic-apply-tag-to-dict
(srecode-semantic-tag (semantic-tag-name tag)
:prime tag)
(srecode-semantic-tag :prime tag)
dict)))
;;; :tagtype ARGUMENT HANDLING
@ -394,7 +392,7 @@ as `function' will leave point where code might be inserted."
;; Resolve TAG into the dictionary. We may have a :tag arg
;; from the macro such that we don't need to do this.
(when (not (srecode-dictionary-lookup-name dict "TAG"))
(let ((tagobj (srecode-semantic-tag (semantic-tag-name tag) :prime tag))
(let ((tagobj (srecode-semantic-tag :prime tag))
)
(srecode-semantic-apply-tag-to-dict tagobj dict)))

View file

@ -180,7 +180,6 @@ INIT are the initialization parameters for the new template table."
(old (srecode-mode-table-find mt file))
(attr (file-attributes file))
(new (apply #'srecode-template-table
(file-name-nondirectory file)
:file file
:filesize (file-attribute-size attr)
:filedate (file-attribute-modification-time attr)