aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-06-13 18:01:42 +0200
committerLars Ingebrigtsen2019-06-14 14:24:18 +0200
commit7b837cd707753919dea0c14207c11643f7a88e87 (patch)
tree63146c38abe7b66778ebd40e8a05a4f1a7cc1152
parent07df91d45a950d7bef323b57dc7e46b34997143f (diff)
downloademacs-7b837cd707753919dea0c14207c11643f7a88e87.tar.gz
emacs-7b837cd707753919dea0c14207c11643f7a88e87.zip
Use CLOS-style accessors in oref/oset
* lisp/cedet/srecode/texi.el (srecode-semantic-handle-:texitag): * lisp/cedet/srecode/table.el (srecode-mode-table-new): (srecode-dump): * lisp/cedet/srecode/srt-mode.el (srecode-parse-this-macro): (semantic-analyze-possible-completions): * lisp/cedet/srecode/semantic.el (srecode-compound-toString): (srecode-semantic-apply-tag-to-dict-default): * lisp/cedet/srecode/mode.el (srecode-minor-mode-templates-menu): (srecode-edit): * lisp/cedet/srecode/insert.el (srecode-insert-method): (srecode-inserter-apply-state): (srecode-insert-ask-default): (srecode-insert-method-ask): (srecode-insert-method-field): (srecode-insert-method-helper): (srecode-parse-input): (srecode-match-end): (srecode-insert-include-lookup): (srecode-insert-method): * lisp/cedet/srecode/find.el (srecode-template-table-in-project-p): (srecode-template-get-table): (srecode-template-get-table-for-binding): (srecode-all-template-hash): * lisp/cedet/srecode/extract.el (srecode-inserter-extract): (srecode-inserter-extract): * lisp/cedet/srecode/el.el (srecode-semantic-apply-tag-to-dict): * lisp/cedet/srecode/dictionary.el (initialize-instance): (srecode-dictionary-add-template-table): (srecode-compound-toString): * lisp/cedet/srecode/cpp.el (srecode-semantic-apply-tag-to-dict): * lisp/cedet/srecode/compile.el (srecode-compile-template-table): (srecode-dump): * lisp/cedet/srecode/args.el (srecode-semantic-handle-:project): * lisp/cedet/semantic/texi.el (semantic-analyze-possible-completions): * lisp/cedet/semantic/symref/list.el (semantic-symref-results-dump): (semantic-symref-list-create-macro-on-open-hit): (semantic-symref-list-rename-open-hits): (semantic-symref-list-map-open-hits): * lisp/cedet/semantic/symref/idutils.el (semantic-symref-perform-search): (semantic-symref-parse-tool-output-one-line): * lisp/cedet/semantic/symref/global.el (semantic-symref-perform-search): (semantic-symref-parse-tool-output-one-line): * lisp/cedet/semantic/symref/cscope.el (semantic-symref-perform-search): (semantic-symref-parse-tool-output-one-line): * lisp/cedet/semantic/mru-bookmark.el (semantic-mrub-ring-to-assoc-list): * lisp/cedet/semantic/grammar.el (semantic-analyze-possible-completions): * lisp/cedet/semantic/decorate/include.el (semantic-decoration-include-describe): * lisp/cedet/semantic/debug.el (semantic-debug-highlight-lexical-token): (semantic-debug-highlight-rule): * lisp/cedet/semantic/db-typecache.el (semanticdb-typecache-for-database): * lisp/cedet/semantic/complete.el (semantic-collector-calculate-completions-raw): * lisp/cedet/semantic/bovine/make.el (semantic-analyze-possible-completions): * lisp/cedet/semantic/analyze/refs.el (semantic-analyze-refs-impl): (semantic-analyze-refs-proto): * lisp/cedet/semantic/analyze/debug.el (semantic-analyzer-debug-describe-scope): * lisp/cedet/semantic/analyze.el (semantic-analyze-interesting-tag): (semantic-analyze-interesting-tag): (semantic-analyze-pulse): * lisp/cedet/ede/util.el (ede-update-version): * lisp/cedet/ede/shell.el (ede-shell-run-something): * lisp/cedet/ede/project-am.el (project-am-load-makefile): (project-rescan): (project-am-macro): (ede-buffer-mine): (project-compile-target-command): (project-am-package-info): * lisp/cedet/ede/files.el (ede--project-inode): (ede-directory-get-open-project): (ede-directory-get-toplevel-open-project): (ede-find-subproject-for-directory): (ede-toplevel-project): * lisp/cedet/ede/cpp-root.el (initialize-instance): (project-compile-project): (project-compile-target): * lisp/cedet/ede/config.el (ede-config-get-configuration): (project-debug-target): (project-run-target): (project-compile-project): (ede-preprocessor-map): (ede-java-classpath): * lisp/cedet/ede/base.el (ede-normalize-file/directory): Use CLOS-style oref/oset accessors instead of eieio-style :colon accessors. This avoids compilation warnings and is allegedly faster.
-rw-r--r--lisp/cedet/ede/base.el12
-rw-r--r--lisp/cedet/ede/config.el14
-rw-r--r--lisp/cedet/ede/cpp-root.el16
-rw-r--r--lisp/cedet/ede/files.el18
-rw-r--r--lisp/cedet/ede/project-am.el67
-rw-r--r--lisp/cedet/ede/shell.el2
-rw-r--r--lisp/cedet/ede/util.el4
-rw-r--r--lisp/cedet/semantic/analyze.el10
-rw-r--r--lisp/cedet/semantic/analyze/debug.el2
-rw-r--r--lisp/cedet/semantic/analyze/refs.el4
-rw-r--r--lisp/cedet/semantic/bovine/make.el4
-rw-r--r--lisp/cedet/semantic/complete.el2
-rw-r--r--lisp/cedet/semantic/db-typecache.el2
-rw-r--r--lisp/cedet/semantic/debug.el4
-rw-r--r--lisp/cedet/semantic/decorate/include.el6
-rw-r--r--lisp/cedet/semantic/grammar.el2
-rw-r--r--lisp/cedet/semantic/mru-bookmark.el2
-rw-r--r--lisp/cedet/semantic/symref/cscope.el21
-rw-r--r--lisp/cedet/semantic/symref/global.el19
-rw-r--r--lisp/cedet/semantic/symref/idutils.el19
-rw-r--r--lisp/cedet/semantic/symref/list.el14
-rw-r--r--lisp/cedet/semantic/texi.el6
-rw-r--r--lisp/cedet/srecode/args.el4
-rw-r--r--lisp/cedet/srecode/compile.el10
-rw-r--r--lisp/cedet/srecode/cpp.el2
-rw-r--r--lisp/cedet/srecode/dictionary.el8
-rw-r--r--lisp/cedet/srecode/el.el2
-rw-r--r--lisp/cedet/srecode/extract.el14
-rw-r--r--lisp/cedet/srecode/find.el18
-rw-r--r--lisp/cedet/srecode/insert.el53
-rw-r--r--lisp/cedet/srecode/mode.el10
-rw-r--r--lisp/cedet/srecode/semantic.el7
-rw-r--r--lisp/cedet/srecode/srt-mode.el10
-rw-r--r--lisp/cedet/srecode/table.el22
-rw-r--r--lisp/cedet/srecode/texi.el2
35 files changed, 200 insertions, 212 deletions
diff --git a/lisp/cedet/ede/base.el b/lisp/cedet/ede/base.el
index 41ab17f078d..57973ffd13b 100644
--- a/lisp/cedet/ede/base.el
+++ b/lisp/cedet/ede/base.el
@@ -628,15 +628,15 @@ instead of the current project."
628The other slot will be used to calculate values. 628The other slot will be used to calculate values.
629PROJECT-FILE-NAME is a name of project file (short name, like `pom.xml', etc." 629PROJECT-FILE-NAME is a name of project file (short name, like `pom.xml', etc."
630 (when (and (or (not (slot-boundp this :file)) 630 (when (and (or (not (slot-boundp this :file))
631 (not (oref this :file))) 631 (not (oref this file)))
632 (slot-boundp this :directory) 632 (slot-boundp this :directory)
633 (oref this :directory)) 633 (oref this directory))
634 (oset this :file (expand-file-name project-file-name (oref this :directory)))) 634 (oset this file (expand-file-name project-file-name (oref this directory))))
635 (when (and (or (not (slot-boundp this :directory)) 635 (when (and (or (not (slot-boundp this :directory))
636 (not (oref this :directory))) 636 (not (oref this directory)))
637 (slot-boundp this :file) 637 (slot-boundp this :file)
638 (oref this :file)) 638 (oref this file))
639 (oset this :directory (file-name-directory (oref this :file)))) 639 (oset this directory (file-name-directory (oref this file))))
640 ) 640 )
641 641
642 642
diff --git a/lisp/cedet/ede/config.el b/lisp/cedet/ede/config.el
index c94fdabf50e..f4fc1c2832b 100644
--- a/lisp/cedet/ede/config.el
+++ b/lisp/cedet/ede/config.el
@@ -139,7 +139,7 @@ the directory isn't on the `safe' list, ask to add it to the safe list."
139 (setq config nil)) 139 (setq config nil))
140 140
141 (when (not config) 141 (when (not config)
142 (let* ((top (oref proj :directory)) 142 (let* ((top (oref proj directory))
143 (fname (expand-file-name (oref proj config-file-basename) top)) 143 (fname (expand-file-name (oref proj config-file-basename) top))
144 (class (oref proj config-class)) 144 (class (oref proj config-class))
145 (ignore-type nil)) 145 (ignore-type nil))
@@ -258,7 +258,7 @@ programs from a project.")
258 "Run the current project derived from TARGET in a debugger." 258 "Run the current project derived from TARGET in a debugger."
259 (let* ((proj (ede-target-parent target)) 259 (let* ((proj (ede-target-parent target))
260 (config (ede-config-get-configuration proj t)) 260 (config (ede-config-get-configuration proj t))
261 (debug (oref config :debug-command)) 261 (debug (oref config debug-command))
262 (cmd (read-from-minibuffer 262 (cmd (read-from-minibuffer
263 "Debug Command: " 263 "Debug Command: "
264 debug)) 264 debug))
@@ -275,7 +275,7 @@ programs from a project.")
275 "Run the current project derived from TARGET." 275 "Run the current project derived from TARGET."
276 (let* ((proj (ede-target-parent target)) 276 (let* ((proj (ede-target-parent target))
277 (config (ede-config-get-configuration proj t)) 277 (config (ede-config-get-configuration proj t))
278 (run (concat "./" (oref config :run-command))) 278 (run (concat "./" (oref config run-command)))
279 (cmd (read-from-minibuffer "Run (like this): " run))) 279 (cmd (read-from-minibuffer "Run (like this): " run)))
280 (ede-shell-run-something target cmd))) 280 (ede-shell-run-something target cmd)))
281 281
@@ -306,7 +306,7 @@ This class brings in method overloads for for building.")
306 "Compile the entire current project PROJ. 306 "Compile the entire current project PROJ.
307Argument COMMAND is the command to use when compiling." 307Argument COMMAND is the command to use when compiling."
308 (let* ((config (ede-config-get-configuration proj t)) 308 (let* ((config (ede-config-get-configuration proj t))
309 (comp (oref config :build-command))) 309 (comp (oref config build-command)))
310 (compile comp))) 310 (compile comp)))
311 311
312(cl-defmethod project-compile-target ((obj ede-target-with-config-build) &optional command) 312(cl-defmethod project-compile-target ((obj ede-target-with-config-build) &optional command)
@@ -370,7 +370,7 @@ the preprocessor map, and include paths.")
370 filemap 370 filemap
371 ) 371 )
372 ;; Preprocessor files 372 ;; Preprocessor files
373 (dolist (G (oref config :c-preprocessor-files)) 373 (dolist (G (oref config c-preprocessor-files))
374 (let ((table (semanticdb-file-table-object 374 (let ((table (semanticdb-file-table-object
375 (ede-expand-filename root G)))) 375 (ede-expand-filename root G))))
376 (when table 376 (when table
@@ -379,7 +379,7 @@ the preprocessor map, and include paths.")
379 (setq filemap (append filemap (oref table lexical-table))) 379 (setq filemap (append filemap (oref table lexical-table)))
380 ))) 380 )))
381 ;; The core table 381 ;; The core table
382 (setq filemap (append filemap (oref config :c-preprocessor-table))) 382 (setq filemap (append filemap (oref config c-preprocessor-table)))
383 383
384 filemap 384 filemap
385 )) 385 ))
@@ -408,7 +408,7 @@ java class path.")
408 408
409(cl-defmethod ede-java-classpath ((proj ede-project-with-config-java)) 409(cl-defmethod ede-java-classpath ((proj ede-project-with-config-java))
410 "Return the classpath for this project." 410 "Return the classpath for this project."
411 (oref (ede-config-get-configuration proj) :classpath)) 411 (oref (ede-config-get-configuration proj) classpath))
412 412
413;; Local variables: 413;; Local variables:
414;; generated-autoload-file: "loaddefs.el" 414;; generated-autoload-file: "loaddefs.el"
diff --git a/lisp/cedet/ede/cpp-root.el b/lisp/cedet/ede/cpp-root.el
index 83474a44dd3..0a77692dd71 100644
--- a/lisp/cedet/ede/cpp-root.el
+++ b/lisp/cedet/ede/cpp-root.el
@@ -279,7 +279,7 @@ Each directory needs a project file to control it.")
279 "Make sure the :file is fully expanded." 279 "Make sure the :file is fully expanded."
280 ;; Add ourselves to the master list 280 ;; Add ourselves to the master list
281 (cl-call-next-method) 281 (cl-call-next-method)
282 (let ((f (expand-file-name (oref this :file)))) 282 (let ((f (expand-file-name (oref this file))))
283 ;; Remove any previous entries from the main list. 283 ;; Remove any previous entries from the main list.
284 (let ((old (eieio-instance-tracker-find (file-name-directory f) 284 (let ((old (eieio-instance-tracker-find (file-name-directory f)
285 :directory 'ede-cpp-root-project-list))) 285 :directory 'ede-cpp-root-project-list)))
@@ -292,8 +292,8 @@ Each directory needs a project file to control it.")
292 (file-directory-p f)) 292 (file-directory-p f))
293 (delete-instance this) 293 (delete-instance this)
294 (error ":file for ede-cpp-root-project must be a file")) 294 (error ":file for ede-cpp-root-project must be a file"))
295 (oset this :file f) 295 (oset this file f)
296 (oset this :directory (file-name-directory f)) 296 (oset this directory (file-name-directory f))
297 (ede-project-directory-remove-hash (file-name-directory f)) 297 (ede-project-directory-remove-hash (file-name-directory f))
298 ;; NOTE: We must add to global list here because these classes are not 298 ;; NOTE: We must add to global list here because these classes are not
299 ;; created via the typical loader, but instead via calls from a .emacs 299 ;; created via the typical loader, but instead via calls from a .emacs
@@ -301,7 +301,7 @@ Each directory needs a project file to control it.")
301 (ede-add-project-to-global-list this) 301 (ede-add-project-to-global-list this)
302 302
303 (unless (slot-boundp this 'targets) 303 (unless (slot-boundp this 'targets)
304 (oset this :targets nil)) 304 (oset this targets nil))
305 )) 305 ))
306 306
307;;; SUBPROJ Management. 307;;; SUBPROJ Management.
@@ -455,8 +455,8 @@ This is for project include paths and spp source files."
455 "Compile the entire current project PROJ. 455 "Compile the entire current project PROJ.
456Argument COMMAND is the command to use when compiling." 456Argument COMMAND is the command to use when compiling."
457 ;; we need to be in the proj root dir for this to work 457 ;; we need to be in the proj root dir for this to work
458 (let* ((cmd (oref proj :compile-command)) 458 (let* ((cmd (oref proj compile-command))
459 (ov (oref proj :local-variables)) 459 (ov (oref proj local-variables))
460 (lcmd (when ov (cdr (assoc 'compile-command ov)))) 460 (lcmd (when ov (cdr (assoc 'compile-command ov))))
461 (cmd-str (cond 461 (cmd-str (cond
462 ((stringp cmd) cmd) 462 ((stringp cmd) cmd)
@@ -470,8 +470,8 @@ Argument COMMAND is the command to use when compiling."
470(cl-defmethod project-compile-target ((obj ede-cpp-root-target) &optional command) 470(cl-defmethod project-compile-target ((obj ede-cpp-root-target) &optional command)
471 "Compile the current target OBJ. 471 "Compile the current target OBJ.
472Argument COMMAND is the command to use for compiling the target." 472Argument COMMAND is the command to use for compiling the target."
473 (when (oref obj :project) 473 (when (oref obj project)
474 (project-compile-project (oref obj :project) command))) 474 (project-compile-project (oref obj project) command)))
475 475
476 476
477(cl-defmethod project-rescan ((this ede-cpp-root-project)) 477(cl-defmethod project-rescan ((this ede-cpp-root-project))
diff --git a/lisp/cedet/ede/files.el b/lisp/cedet/ede/files.el
index fc74c0a07e9..a6a0af100f5 100644
--- a/lisp/cedet/ede/files.el
+++ b/lisp/cedet/ede/files.el
@@ -120,7 +120,7 @@ of the anchor file for the project."
120 "Get the inode of the directory project PROJ is in." 120 "Get the inode of the directory project PROJ is in."
121 (if (slot-boundp proj 'dirinode) 121 (if (slot-boundp proj 'dirinode)
122 (oref proj dirinode) 122 (oref proj dirinode)
123 (oset proj dirinode (ede--inode-for-dir (oref proj :directory))))) 123 (oset proj dirinode (ede--inode-for-dir (oref proj directory)))))
124 124
125(defun ede--inode-get-toplevel-open-project (inode) 125(defun ede--inode-get-toplevel-open-project (inode)
126 "Return an already open toplevel project that is managing INODE. 126 "Return an already open toplevel project that is managing INODE.
@@ -159,7 +159,8 @@ If DIR is the root project, then it is the same."
159 (when rootreturn (set rootreturn proj)) 159 (when rootreturn (set rootreturn proj))
160 ;; Find subprojects. 160 ;; Find subprojects.
161 (when (and proj (if ede--disable-inode 161 (when (and proj (if ede--disable-inode
162 (not (string= ft (expand-file-name (oref proj :directory)))) 162 (not (string= ft (expand-file-name
163 (oref proj directory))))
163 (not (equal inode (ede--project-inode proj))))) 164 (not (equal inode (ede--project-inode proj)))))
164 (setq ans (ede-find-subproject-for-directory proj ft))) 165 (setq ans (ede-find-subproject-for-directory proj ft)))
165 ans)) 166 ans))
@@ -175,8 +176,7 @@ If optional EXACT is non-nil, only return exact matches for DIR."
175 (shortans nil)) 176 (shortans nil))
176 (while (and all (not ans)) 177 (while (and all (not ans))
177 ;; Do the check. 178 ;; Do the check.
178 (let ((pd (expand-file-name (oref (car all) :directory))) 179 (let ((pd (expand-file-name (oref (car all) directory))))
179 )
180 (cond 180 (cond
181 ;; Exact text match. 181 ;; Exact text match.
182 ((string= pd ft) 182 ((string= pd ft)
@@ -187,7 +187,7 @@ If optional EXACT is non-nil, only return exact matches for DIR."
187 (setq shortans (car all)) 187 (setq shortans (car all))
188 ;; We already have a short answer, so see if pd (the match we found) 188 ;; We already have a short answer, so see if pd (the match we found)
189 ;; is longer. If it is longer, then it is more precise. 189 ;; is longer. If it is longer, then it is more precise.
190 (when (< (length (oref shortans :directory)) 190 (when (< (length (oref shortans directory))
191 (length pd)) 191 (length pd))
192 (setq shortans (car all)))) 192 (setq shortans (car all))))
193 ) 193 )
@@ -208,7 +208,7 @@ If optional EXACT is non-nil, only return exact matches for DIR."
208 (setq shortans (car all)) 208 (setq shortans (car all))
209 ;; We already have a short answer, so see if pd (the match we found) 209 ;; We already have a short answer, so see if pd (the match we found)
210 ;; is longer. If it is longer, then it is more precise. 210 ;; is longer. If it is longer, then it is more precise.
211 (when (< (length (expand-file-name (oref shortans :directory))) 211 (when (< (length (expand-file-name (oref shortans directory)))
212 (length pd)) 212 (length pd))
213 (setq shortans (car all)))) 213 (setq shortans (car all))))
214 ))) 214 )))
@@ -228,7 +228,7 @@ If optional EXACT is non-nil, only return exact matches for DIR."
228 proj 228 proj
229 (lambda (SP) 229 (lambda (SP)
230 (when (not ans) 230 (when (not ans)
231 (if (string= fulldir (file-truename (oref SP :directory))) 231 (if (string= fulldir (file-truename (oref SP directory)))
232 (setq ans SP) 232 (setq ans SP)
233 (ede-find-subproject-for-directory SP dir))))) 233 (ede-find-subproject-for-directory SP dir)))))
234 ans) 234 ans)
@@ -358,11 +358,11 @@ If DIR is not part of a project, return nil."
358 ((and (string= dir default-directory) 358 ((and (string= dir default-directory)
359 ede-object-root-project) 359 ede-object-root-project)
360 ;; Try the local buffer cache first. 360 ;; Try the local buffer cache first.
361 (oref ede-object-root-project :directory)) 361 (oref ede-object-root-project directory))
362 362
363 ;; See if there is an existing project in DIR. 363 ;; See if there is an existing project in DIR.
364 ((setq ans (ede-directory-get-toplevel-open-project dir)) 364 ((setq ans (ede-directory-get-toplevel-open-project dir))
365 (oref ans :directory)) 365 (oref ans directory))
366 366
367 ;; Detect using our file system detector. 367 ;; Detect using our file system detector.
368 ((setq ans (ede-detect-directory-for-project dir)) 368 ((setq ans (ede-detect-directory-for-project dir))
diff --git a/lisp/cedet/ede/project-am.el b/lisp/cedet/ede/project-am.el
index 12db0a43ce7..fbbbe6871b6 100644
--- a/lisp/cedet/ede/project-am.el
+++ b/lisp/cedet/ede/project-am.el
@@ -491,7 +491,7 @@ This is used when subprojects are made in named subdirectories."
491 :version ver 491 :version ver
492 :mailinglist (or bug "") 492 :mailinglist (or bug "")
493 :file fn))) 493 :file fn)))
494 (oset ampf :directory (file-name-directory fn)) 494 (oset ampf directory (file-name-directory fn))
495 (oset ampf configureoutputfiles cof) 495 (oset ampf configureoutputfiles cof)
496 (make-local-variable 'ede-object) 496 (make-local-variable 'ede-object)
497 (setq ede-object ampf) 497 (setq ede-object ampf)
@@ -659,11 +659,11 @@ Strip out duplicates, and recurse on variables."
659 (mapc (lambda (sp) 659 (mapc (lambda (sp)
660 (let* ((subdir (file-name-as-directory 660 (let* ((subdir (file-name-as-directory
661 (expand-file-name 661 (expand-file-name
662 sp (file-name-directory (oref this :file))))) 662 sp (file-name-directory (oref this file)))))
663 (submake (expand-file-name 663 (submake (expand-file-name
664 "Makefile.am" 664 "Makefile.am"
665 subdir))) 665 subdir)))
666 (if (string= submake (oref this :file)) 666 (if (string= submake (oref this file))
667 nil ;; don't recurse.. please! 667 nil ;; don't recurse.. please!
668 ;; For each project id found, see if we need to recycle, 668 ;; For each project id found, see if we need to recycle,
669 ;; and if we do not, then make a new one. Check the deep 669 ;; and if we do not, then make a new one. Check the deep
@@ -694,45 +694,46 @@ Strip out duplicates, and recurse on variables."
694 694
695(cl-defmethod project-rescan ((this project-am-program)) 695(cl-defmethod project-rescan ((this project-am-program))
696 "Rescan object THIS." 696 "Rescan object THIS."
697 (oset this :source (makefile-macro-file-list (project-am-macro this))) 697 (oset this source (makefile-macro-file-list (project-am-macro this)))
698 (unless (oref this :source) 698 (unless (oref this source)
699 (oset this :source (list (concat (oref this :name) ".c")))) 699 (oset this source (list (concat (oref this name) ".c"))))
700 (oset this :ldadd (makefile-macro-file-list 700 (oset this ldadd (makefile-macro-file-list
701 (concat (oref this :name) "_LDADD")))) 701 (concat (oref this name) "_LDADD"))))
702 702
703(cl-defmethod project-rescan ((this project-am-lib)) 703(cl-defmethod project-rescan ((this project-am-lib))
704 "Rescan object THIS." 704 "Rescan object THIS."
705 (oset this :source (makefile-macro-file-list (project-am-macro this))) 705 (oset this source (makefile-macro-file-list (project-am-macro this)))
706 (unless (oref this :source) 706 (unless (oref this source)
707 (oset this :source (list (concat (file-name-sans-extension (oref this :name)) ".c"))))) 707 (oset this source (list (concat (file-name-sans-extension
708 (oref this name)) ".c")))))
708 709
709(cl-defmethod project-rescan ((this project-am-texinfo)) 710(cl-defmethod project-rescan ((this project-am-texinfo))
710 "Rescan object THIS." 711 "Rescan object THIS."
711 (oset this :include (makefile-macro-file-list (project-am-macro this)))) 712 (oset this include (makefile-macro-file-list (project-am-macro this))))
712 713
713(cl-defmethod project-rescan ((this project-am-man)) 714(cl-defmethod project-rescan ((this project-am-man))
714 "Rescan object THIS." 715 "Rescan object THIS."
715 (oset this :source (makefile-macro-file-list (project-am-macro this)))) 716 (oset this source (makefile-macro-file-list (project-am-macro this))))
716 717
717(cl-defmethod project-rescan ((this project-am-lisp)) 718(cl-defmethod project-rescan ((this project-am-lisp))
718 "Rescan the lisp sources." 719 "Rescan the lisp sources."
719 (oset this :source (makefile-macro-file-list (project-am-macro this)))) 720 (oset this source (makefile-macro-file-list (project-am-macro this))))
720 721
721(cl-defmethod project-rescan ((this project-am-header)) 722(cl-defmethod project-rescan ((this project-am-header))
722 "Rescan the Header sources for object THIS." 723 "Rescan the Header sources for object THIS."
723 (oset this :source (makefile-macro-file-list (project-am-macro this)))) 724 (oset this source (makefile-macro-file-list (project-am-macro this))))
724 725
725(cl-defmethod project-rescan ((this project-am-built-src)) 726(cl-defmethod project-rescan ((this project-am-built-src))
726 "Rescan built sources for object THIS." 727 "Rescan built sources for object THIS."
727 (oset this :source (makefile-macro-file-list "BUILT_SOURCES"))) 728 (oset this source (makefile-macro-file-list "BUILT_SOURCES")))
728 729
729(cl-defmethod project-rescan ((this project-am-extra-dist)) 730(cl-defmethod project-rescan ((this project-am-extra-dist))
730 "Rescan object THIS." 731 "Rescan object THIS."
731 (oset this :source (makefile-macro-file-list "EXTRA_DIST"))) 732 (oset this source (makefile-macro-file-list "EXTRA_DIST")))
732 733
733(cl-defmethod project-am-macro ((this project-am-objectcode)) 734(cl-defmethod project-am-macro ((this project-am-objectcode))
734 "Return the default macro to `edit' for this object type." 735 "Return the default macro to `edit' for this object type."
735 (concat (subst-char-in-string ?- ?_ (oref this :name)) "_SOURCES")) 736 (concat (subst-char-in-string ?- ?_ (oref this name)) "_SOURCES"))
736 737
737(cl-defmethod project-am-macro ((this project-am-header-noinst)) 738(cl-defmethod project-am-macro ((this project-am-header-noinst))
738 "Return the default macro to `edit' for this object." 739 "Return the default macro to `edit' for this object."
@@ -752,11 +753,11 @@ Strip out duplicates, and recurse on variables."
752 753
753(cl-defmethod project-am-macro ((this project-am-texinfo)) 754(cl-defmethod project-am-macro ((this project-am-texinfo))
754 "Return the default macro to `edit' for this object type." 755 "Return the default macro to `edit' for this object type."
755 (concat (file-name-sans-extension (oref this :name)) "_TEXINFOS")) 756 (concat (file-name-sans-extension (oref this name)) "_TEXINFOS"))
756 757
757(cl-defmethod project-am-macro ((this project-am-man)) 758(cl-defmethod project-am-macro ((this project-am-man))
758 "Return the default macro to `edit' for this object type." 759 "Return the default macro to `edit' for this object type."
759 (oref this :name)) 760 (oref this name))
760 761
761(cl-defmethod project-am-macro ((this project-am-lisp)) 762(cl-defmethod project-am-macro ((this project-am-lisp))
762 "Return the default macro to `edit' for this object." 763 "Return the default macro to `edit' for this object."
@@ -784,7 +785,7 @@ nil means that this buffer belongs to no-one."
784(cl-defmethod ede-buffer-mine ((this project-am-makefile) buffer) 785(cl-defmethod ede-buffer-mine ((this project-am-makefile) buffer)
785 "Return t if object THIS lays claim to the file in BUFFER." 786 "Return t if object THIS lays claim to the file in BUFFER."
786 (let ((efn (expand-file-name (buffer-file-name buffer)))) 787 (let ((efn (expand-file-name (buffer-file-name buffer))))
787 (or (string= (oref this :file) efn) 788 (or (string= (oref this file) efn)
788 (string-match "/configure\\.ac$" efn) 789 (string-match "/configure\\.ac$" efn)
789 (string-match "/configure\\.in$" efn) 790 (string-match "/configure\\.in$" efn)
790 (string-match "/configure$" efn) 791 (string-match "/configure$" efn)
@@ -798,25 +799,25 @@ nil means that this buffer belongs to no-one."
798 799
799(cl-defmethod ede-buffer-mine ((this project-am-objectcode) buffer) 800(cl-defmethod ede-buffer-mine ((this project-am-objectcode) buffer)
800 "Return t if object THIS lays claim to the file in BUFFER." 801 "Return t if object THIS lays claim to the file in BUFFER."
801 (member (file-relative-name (buffer-file-name buffer) (oref this :path)) 802 (member (file-relative-name (buffer-file-name buffer) (oref this path))
802 (oref this :source))) 803 (oref this source)))
803 804
804(cl-defmethod ede-buffer-mine ((this project-am-texinfo) buffer) 805(cl-defmethod ede-buffer-mine ((this project-am-texinfo) buffer)
805 "Return t if object THIS lays claim to the file in BUFFER." 806 "Return t if object THIS lays claim to the file in BUFFER."
806 (let ((bfn (file-relative-name (buffer-file-name buffer) 807 (let ((bfn (file-relative-name (buffer-file-name buffer)
807 (oref this :path)))) 808 (oref this path))))
808 (or (string= (oref this :name) bfn) 809 (or (string= (oref this name) bfn)
809 (member bfn (oref this :include))))) 810 (member bfn (oref this include)))))
810 811
811(cl-defmethod ede-buffer-mine ((this project-am-man) buffer) 812(cl-defmethod ede-buffer-mine ((this project-am-man) buffer)
812 "Return t if object THIS lays claim to the file in BUFFER." 813 "Return t if object THIS lays claim to the file in BUFFER."
813 (string= (oref this :name) 814 (string= (oref this name)
814 (file-relative-name (buffer-file-name buffer) (oref this :path)))) 815 (file-relative-name (buffer-file-name buffer) (oref this path))))
815 816
816(cl-defmethod ede-buffer-mine ((this project-am-lisp) buffer) 817(cl-defmethod ede-buffer-mine ((this project-am-lisp) buffer)
817 "Return t if object THIS lays claim to the file in BUFFER." 818 "Return t if object THIS lays claim to the file in BUFFER."
818 (member (file-relative-name (buffer-file-name buffer) (oref this :path)) 819 (member (file-relative-name (buffer-file-name buffer) (oref this path))
819 (oref this :source))) 820 (oref this source)))
820 821
821(cl-defmethod project-am-subtree ((ampf project-am-makefile) subdir) 822(cl-defmethod project-am-subtree ((ampf project-am-makefile) subdir)
822 "Return the sub project in AMPF specified by SUBDIR." 823 "Return the sub project in AMPF specified by SUBDIR."
@@ -829,11 +830,11 @@ nil means that this buffer belongs to no-one."
829 830
830(cl-defmethod project-compile-target-command ((this project-am-objectcode)) 831(cl-defmethod project-compile-target-command ((this project-am-objectcode))
831 "Default target to use when compiling an object code target." 832 "Default target to use when compiling an object code target."
832 (oref this :name)) 833 (oref this name))
833 834
834(cl-defmethod project-compile-target-command ((this project-am-texinfo)) 835(cl-defmethod project-compile-target-command ((this project-am-texinfo))
835 "Default target t- use when compiling a texinfo file." 836 "Default target t- use when compiling a texinfo file."
836 (let ((n (oref this :name))) 837 (let ((n (oref this name)))
837 (if (string-match "\\.texi?\\(nfo\\)?" n) 838 (if (string-match "\\.texi?\\(nfo\\)?" n)
838 (setq n (replace-match ".info" t t n))) 839 (setq n (replace-match ".info" t t n)))
839 n)) 840 n))
@@ -993,7 +994,7 @@ Kill the Configure buffer if it was not already in a buffer."
993 "Get the package information for directory topmost project dir over DIR. 994 "Get the package information for directory topmost project dir over DIR.
994Calculates the info with `project-am-extract-package-info'." 995Calculates the info with `project-am-extract-package-info'."
995 (let ((top (ede-toplevel))) 996 (let ((top (ede-toplevel)))
996 (when top (setq dir (oref top :directory))) 997 (when top (setq dir (oref top directory)))
997 (project-am-extract-package-info dir))) 998 (project-am-extract-package-info dir)))
998 999
999;; for simple per project include path extension 1000;; for simple per project include path extension
diff --git a/lisp/cedet/ede/shell.el b/lisp/cedet/ede/shell.el
index 11a5eacaef0..3641803e1e0 100644
--- a/lisp/cedet/ede/shell.el
+++ b/lisp/cedet/ede/shell.el
@@ -38,7 +38,7 @@
38COMMAND is a text string representing the thing to be run." 38COMMAND is a text string representing the thing to be run."
39 (let* ((buff (ede-shell-buffer target)) 39 (let* ((buff (ede-shell-buffer target))
40 (cp (ede-target-parent target)) 40 (cp (ede-target-parent target))
41 (dd (oref cp :directory))) 41 (dd (oref cp directory)))
42 ;; Show the new buffer. 42 ;; Show the new buffer.
43 (when (not (get-buffer-window buff)) 43 (when (not (get-buffer-window buff))
44 (switch-to-buffer-other-window buff t)) 44 (switch-to-buffer-other-window buff t))
diff --git a/lisp/cedet/ede/util.el b/lisp/cedet/ede/util.el
index 29b8fbffade..37d6b18233f 100644
--- a/lisp/cedet/ede/util.el
+++ b/lisp/cedet/ede/util.el
@@ -41,8 +41,8 @@ Argument NEWVERSION is the version number to use in the current project."
41 v nil v)))) 41 v nil v))))
42 (let ((ede-object (ede-toplevel))) 42 (let ((ede-object (ede-toplevel)))
43 ;; Don't update anything if there was no change. 43 ;; Don't update anything if there was no change.
44 (unless (string= (oref ede-object :version) newversion) 44 (unless (string= (oref ede-object version) newversion)
45 (oset ede-object :version newversion) 45 (oset ede-object version newversion)
46 (project-update-version ede-object) 46 (project-update-version ede-object)
47 (ede-update-version-in-source ede-object newversion)))) 47 (ede-update-version-in-source ede-object newversion))))
48 48
diff --git a/lisp/cedet/semantic/analyze.el b/lisp/cedet/semantic/analyze.el
index 9ea7ebf7c1b..8f1d92822e6 100644
--- a/lisp/cedet/semantic/analyze.el
+++ b/lisp/cedet/semantic/analyze.el
@@ -201,7 +201,7 @@ Optional argument DESIRED-TYPE may be a non-type tag to analyze."
201(cl-defmethod semantic-analyze-interesting-tag 201(cl-defmethod semantic-analyze-interesting-tag
202 ((context semantic-analyze-context)) 202 ((context semantic-analyze-context))
203 "Return a tag from CONTEXT that would be most interesting to a user." 203 "Return a tag from CONTEXT that would be most interesting to a user."
204 (let ((prefix (reverse (oref context :prefix)))) 204 (let ((prefix (reverse (oref context prefix))))
205 ;; Go back through the prefix until we find a tag we can return. 205 ;; Go back through the prefix until we find a tag we can return.
206 (while (and prefix (not (semantic-tag-p (car prefix)))) 206 (while (and prefix (not (semantic-tag-p (car prefix))))
207 (setq prefix (cdr prefix))) 207 (setq prefix (cdr prefix)))
@@ -211,12 +211,12 @@ Optional argument DESIRED-TYPE may be a non-type tag to analyze."
211(cl-defmethod semantic-analyze-interesting-tag 211(cl-defmethod semantic-analyze-interesting-tag
212 ((context semantic-analyze-context-functionarg)) 212 ((context semantic-analyze-context-functionarg))
213 "Try the base, and if that fails, return what we are assigning into." 213 "Try the base, and if that fails, return what we are assigning into."
214 (or (cl-call-next-method) (car-safe (oref context :function)))) 214 (or (cl-call-next-method) (car-safe (oref context function))))
215 215
216(cl-defmethod semantic-analyze-interesting-tag 216(cl-defmethod semantic-analyze-interesting-tag
217 ((context semantic-analyze-context-assignment)) 217 ((context semantic-analyze-context-assignment))
218 "Try the base, and if that fails, return what we are assigning into." 218 "Try the base, and if that fails, return what we are assigning into."
219 (or (cl-call-next-method) (car-safe (oref context :assignee)))) 219 (or (cl-call-next-method) (car-safe (oref context assignee))))
220 220
221;;; ANALYSIS 221;;; ANALYSIS
222;; 222;;
@@ -738,8 +738,8 @@ Optional argument CTXT is the context to show."
738(cl-defmethod semantic-analyze-pulse ((context semantic-analyze-context)) 738(cl-defmethod semantic-analyze-pulse ((context semantic-analyze-context))
739 "Pulse the region that CONTEXT affects." 739 "Pulse the region that CONTEXT affects."
740 (require 'pulse) 740 (require 'pulse)
741 (with-current-buffer (oref context :buffer) 741 (with-current-buffer (oref context buffer)
742 (let ((bounds (oref context :bounds))) 742 (let ((bounds (oref context bounds)))
743 (when bounds 743 (when bounds
744 (pulse-momentary-highlight-region (car bounds) (cdr bounds)))))) 744 (pulse-momentary-highlight-region (car bounds) (cdr bounds))))))
745 745
diff --git a/lisp/cedet/semantic/analyze/debug.el b/lisp/cedet/semantic/analyze/debug.el
index 8ad9c22216f..0cd8e44f588 100644
--- a/lisp/cedet/semantic/analyze/debug.el
+++ b/lisp/cedet/semantic/analyze/debug.el
@@ -478,7 +478,7 @@ variable `semantic-dependency-system-include-path'."))
478(defun semantic-analyzer-debug-describe-scope (ctxt &optional classconstraint) 478(defun semantic-analyzer-debug-describe-scope (ctxt &optional classconstraint)
479 "Describe the scope in CTXT for finding a global symbol. 479 "Describe the scope in CTXT for finding a global symbol.
480Optional argument CLASSCONSTRAINT says to output to tags of that class." 480Optional argument CLASSCONSTRAINT says to output to tags of that class."
481 (let* ((scope (oref ctxt :scope)) 481 (let* ((scope (oref ctxt scope))
482 (parents (oref scope parents)) 482 (parents (oref scope parents))
483 (cc (or classconstraint (oref ctxt prefixclass))) 483 (cc (or classconstraint (oref ctxt prefixclass)))
484 ) 484 )
diff --git a/lisp/cedet/semantic/analyze/refs.el b/lisp/cedet/semantic/analyze/refs.el
index 773210698ad..cb0f4645320 100644
--- a/lisp/cedet/semantic/analyze/refs.el
+++ b/lisp/cedet/semantic/analyze/refs.el
@@ -104,7 +104,7 @@ Use `semantic-analyze-current-tag' to debug this fcn."
104 "Return the implementations derived in the reference analyzer REFS. 104 "Return the implementations derived in the reference analyzer REFS.
105Optional argument IN-BUFFER indicates that the returned tag should be in an active buffer." 105Optional argument IN-BUFFER indicates that the returned tag should be in an active buffer."
106 (let ((allhits (oref refs rawsearchdata)) 106 (let ((allhits (oref refs rawsearchdata))
107 (tag (oref refs :tag)) 107 (tag (oref refs tag))
108 (impl nil) 108 (impl nil)
109 ) 109 )
110 (semanticdb-find-result-mapc 110 (semanticdb-find-result-mapc
@@ -129,7 +129,7 @@ Optional argument IN-BUFFER indicates that the returned tag should be in an acti
129 "Return the prototypes derived in the reference analyzer REFS. 129 "Return the prototypes derived in the reference analyzer REFS.
130Optional argument IN-BUFFER indicates that the returned tag should be in an active buffer." 130Optional argument IN-BUFFER indicates that the returned tag should be in an active buffer."
131 (let ((allhits (oref refs rawsearchdata)) 131 (let ((allhits (oref refs rawsearchdata))
132 (tag (oref refs :tag)) 132 (tag (oref refs tag))
133 (proto nil)) 133 (proto nil))
134 (semanticdb-find-result-mapc 134 (semanticdb-find-result-mapc
135 (lambda (T DB) 135 (lambda (T DB)
diff --git a/lisp/cedet/semantic/bovine/make.el b/lisp/cedet/semantic/bovine/make.el
index 4fe33345d73..3676c6972f2 100644
--- a/lisp/cedet/semantic/bovine/make.el
+++ b/lisp/cedet/semantic/bovine/make.el
@@ -181,10 +181,10 @@ Uses default implementation, and also gets a list of filenames."
181 (require 'semantic/analyze/complete) 181 (require 'semantic/analyze/complete)
182 (with-current-buffer (oref context buffer) 182 (with-current-buffer (oref context buffer)
183 (let* ((normal (semantic-analyze-possible-completions-default context)) 183 (let* ((normal (semantic-analyze-possible-completions-default context))
184 (classes (oref context :prefixclass)) 184 (classes (oref context prefixclass))
185 (filetags nil)) 185 (filetags nil))
186 (when (memq 'filename classes) 186 (when (memq 'filename classes)
187 (let* ((prefix (car (oref context :prefix))) 187 (let* ((prefix (car (oref context prefix)))
188 (completetext (cond ((semantic-tag-p prefix) 188 (completetext (cond ((semantic-tag-p prefix)
189 (semantic-tag-name prefix)) 189 (semantic-tag-name prefix))
190 ((stringp prefix) 190 ((stringp prefix)
diff --git a/lisp/cedet/semantic/complete.el b/lisp/cedet/semantic/complete.el
index ea2e2dbd1af..3c950230559 100644
--- a/lisp/cedet/semantic/complete.el
+++ b/lisp/cedet/semantic/complete.el
@@ -1281,7 +1281,7 @@ Uses semanticdb for searching all tags in the current project."
1281 (localstuff (oref scope scope))) 1281 (localstuff (oref scope scope)))
1282 (list 1282 (list
1283 (cons 1283 (cons
1284 (oref scope :table) 1284 (oref scope table)
1285 (semantic-find-tags-for-completion prefix localstuff))))) 1285 (semantic-find-tags-for-completion prefix localstuff)))))
1286 ;(semanticdb-brute-deep-find-tags-for-completion prefix (oref obj path)))) 1286 ;(semanticdb-brute-deep-find-tags-for-completion prefix (oref obj path))))
1287 1287
diff --git a/lisp/cedet/semantic/db-typecache.el b/lisp/cedet/semantic/db-typecache.el
index 2c99b2cef3b..fe9d2d21056 100644
--- a/lisp/cedet/semantic/db-typecache.el
+++ b/lisp/cedet/semantic/db-typecache.el
@@ -554,7 +554,7 @@ If there isn't one, create it.
554 (stream nil) 554 (stream nil)
555 ) 555 )
556 (dolist (table (semanticdb-get-database-tables db)) 556 (dolist (table (semanticdb-get-database-tables db))
557 (when (eq lmode (oref table :major-mode)) 557 (when (eq lmode (oref table major-mode))
558 (setq stream 558 (setq stream
559 (semanticdb-typecache-merge-streams 559 (semanticdb-typecache-merge-streams
560 stream 560 stream
diff --git a/lisp/cedet/semantic/debug.el b/lisp/cedet/semantic/debug.el
index e5c04d1b8d7..b5bb00d8cda 100644
--- a/lisp/cedet/semantic/debug.el
+++ b/lisp/cedet/semantic/debug.el
@@ -170,7 +170,7 @@ These buffers are brought into view when layout occurs.")
170(cl-defmethod semantic-debug-highlight-lexical-token ((iface semantic-debug-interface) token) 170(cl-defmethod semantic-debug-highlight-lexical-token ((iface semantic-debug-interface) token)
171 "For IFACE, highlight TOKEN in the source buffer . 171 "For IFACE, highlight TOKEN in the source buffer .
172TOKEN is a lexical token." 172TOKEN is a lexical token."
173 (set-buffer (oref iface :source-buffer)) 173 (set-buffer (oref iface source-buffer))
174 174
175 (object-add-to-list iface 'overlays 175 (object-add-to-list iface 'overlays
176 (semantic-lex-highlight-token token)) 176 (semantic-lex-highlight-token token))
@@ -183,7 +183,7 @@ TOKEN is a lexical token."
183NONTERM is the name of the rule currently being processed that shows up 183NONTERM is the name of the rule currently being processed that shows up
184as a nonterminal (or tag) in the source buffer. 184as a nonterminal (or tag) in the source buffer.
185If RULE and MATCH indices are specified, highlight those also." 185If RULE and MATCH indices are specified, highlight those also."
186 (set-buffer (oref iface :parser-buffer)) 186 (set-buffer (oref iface parser-buffer))
187 187
188 (let* ((rules (semantic-find-tags-by-class 'nonterminal (current-buffer))) 188 (let* ((rules (semantic-find-tags-by-class 'nonterminal (current-buffer)))
189 (nt (semantic-find-first-tag-by-name nonterm rules)) 189 (nt (semantic-find-first-tag-by-name nonterm rules))
diff --git a/lisp/cedet/semantic/decorate/include.el b/lisp/cedet/semantic/decorate/include.el
index eaf2425c53f..a8f3f2a87d1 100644
--- a/lisp/cedet/semantic/decorate/include.el
+++ b/lisp/cedet/semantic/decorate/include.el
@@ -437,11 +437,11 @@ its contents.
437 ;; Get the semanticdb statement, and display it's contents. 437 ;; Get the semanticdb statement, and display it's contents.
438 (princ "\nDetails for header file...\n") 438 (princ "\nDetails for header file...\n")
439 (princ "\nMajor Mode: ") 439 (princ "\nMajor Mode: ")
440 (princ (oref table :major-mode)) 440 (princ (oref table major-mode))
441 (princ "\nTags: ") 441 (princ "\nTags: ")
442 (princ (format "%s entries" (length (oref table :tags)))) 442 (princ (format "%s entries" (length (oref table tags))))
443 (princ "\nFile Size: ") 443 (princ "\nFile Size: ")
444 (princ (format "%s chars" (oref table :pointmax))) 444 (princ (format "%s chars" (oref table pointmax)))
445 (princ "\nSave State: ") 445 (princ "\nSave State: ")
446 (cond ((oref table dirty) 446 (cond ((oref table dirty)
447 (princ "Table needs to be saved.")) 447 (princ "Table needs to be saved."))
diff --git a/lisp/cedet/semantic/grammar.el b/lisp/cedet/semantic/grammar.el
index 2af7a7fa826..0db675b8f23 100644
--- a/lisp/cedet/semantic/grammar.el
+++ b/lisp/cedet/semantic/grammar.el
@@ -1919,7 +1919,7 @@ Optional argument COLOR determines if color is added to the text."
1919 (with-mode-local emacs-lisp-mode 1919 (with-mode-local emacs-lisp-mode
1920 (semantic-analyze-possible-completions context)) 1920 (semantic-analyze-possible-completions context))
1921 (with-current-buffer (oref context buffer) 1921 (with-current-buffer (oref context buffer)
1922 (let* ((prefix (car (oref context :prefix))) 1922 (let* ((prefix (car (oref context prefix)))
1923 (completetext (cond ((semantic-tag-p prefix) 1923 (completetext (cond ((semantic-tag-p prefix)
1924 (semantic-tag-name prefix)) 1924 (semantic-tag-name prefix))
1925 ((stringp prefix) 1925 ((stringp prefix)
diff --git a/lisp/cedet/semantic/mru-bookmark.el b/lisp/cedet/semantic/mru-bookmark.el
index a15ea9b316a..627c71a01b8 100644
--- a/lisp/cedet/semantic/mru-bookmark.el
+++ b/lisp/cedet/semantic/mru-bookmark.el
@@ -315,7 +315,7 @@ non-nil if the minor mode is enabled."
315 (al nil)) 315 (al nil))
316 (while (< idx len) 316 (while (< idx len)
317 (let ((r (ring-ref ring idx))) 317 (let ((r (ring-ref ring idx)))
318 (setq al (cons (cons (oref r :object-name) r) 318 (setq al (cons (cons (oref r object-name) r)
319 al))) 319 al)))
320 (setq idx (1+ idx))) 320 (setq idx (1+ idx)))
321 (nreverse al))) 321 (nreverse al)))
diff --git a/lisp/cedet/semantic/symref/cscope.el b/lisp/cedet/semantic/symref/cscope.el
index 89545965bf1..39f86611316 100644
--- a/lisp/cedet/semantic/symref/cscope.el
+++ b/lisp/cedet/semantic/symref/cscope.el
@@ -51,14 +51,11 @@ See the function `cedet-cscope-search' for more details.")
51 default-directory)) 51 default-directory))
52 ;; CScope has to be run from the project root where 52 ;; CScope has to be run from the project root where
53 ;; cscope.out is. 53 ;; cscope.out is.
54 (b (cedet-cscope-search (oref tool :searchfor) 54 (b (cedet-cscope-search (oref tool searchfor)
55 (oref tool :searchtype) 55 (oref tool searchtype)
56 (oref tool :resulttype) 56 (oref tool resulttype)
57 (oref tool :searchscope) 57 (oref tool searchscope))))
58 )) 58 (semantic-symref-parse-tool-output tool b)))
59 )
60 (semantic-symref-parse-tool-output tool b)
61 ))
62 59
63(defconst semantic-symref-cscope--line-re 60(defconst semantic-symref-cscope--line-re
64 "^\\([^ ]+\\) [^ ]+ \\([0-9]+\\) ") 61 "^\\([^ ]+\\) [^ ]+ \\([0-9]+\\) ")
@@ -66,22 +63,22 @@ See the function `cedet-cscope-search' for more details.")
66(cl-defmethod semantic-symref-parse-tool-output-one-line ((tool semantic-symref-tool-cscope)) 63(cl-defmethod semantic-symref-parse-tool-output-one-line ((tool semantic-symref-tool-cscope))
67 "Parse one line of grep output, and return it as a match list. 64 "Parse one line of grep output, and return it as a match list.
68Moves cursor to end of the match." 65Moves cursor to end of the match."
69 (cond ((eq (oref tool :resulttype) 'file) 66 (cond ((eq (oref tool resulttype) 'file)
70 ;; Search for files 67 ;; Search for files
71 (when (re-search-forward "^\\([^\n]+\\)$" nil t) 68 (when (re-search-forward "^\\([^\n]+\\)$" nil t)
72 (match-string 1))) 69 (match-string 1)))
73 ((eq (oref tool :searchtype) 'tagcompletions) 70 ((eq (oref tool searchtype) 'tagcompletions)
74 ;; Search for files 71 ;; Search for files
75 (when (re-search-forward "^[^ ]+ [^ ]+ [^ ]+ \\(.*\\)$" nil t) 72 (when (re-search-forward "^[^ ]+ [^ ]+ [^ ]+ \\(.*\\)$" nil t)
76 (let ((subtxt (match-string 1)) 73 (let ((subtxt (match-string 1))
77 (searchtxt (oref tool :searchfor))) 74 (searchtxt (oref tool searchfor)))
78 (if (string-match (concat "\\<" searchtxt "\\(\\w\\|\\s_\\)*\\>") 75 (if (string-match (concat "\\<" searchtxt "\\(\\w\\|\\s_\\)*\\>")
79 subtxt) 76 subtxt)
80 (match-string 0 subtxt) 77 (match-string 0 subtxt)
81 ;; We have to return something at this point. 78 ;; We have to return something at this point.
82 subtxt))) 79 subtxt)))
83 ) 80 )
84 ((eq (oref tool :resulttype) 'line-and-text) 81 ((eq (oref tool resulttype) 'line-and-text)
85 (when (re-search-forward semantic-symref-cscope--line-re nil t) 82 (when (re-search-forward semantic-symref-cscope--line-re nil t)
86 (list (string-to-number (match-string 2)) 83 (list (string-to-number (match-string 2))
87 (expand-file-name (match-string 1)) 84 (expand-file-name (match-string 1))
diff --git a/lisp/cedet/semantic/symref/global.el b/lisp/cedet/semantic/symref/global.el
index 2eb0ab091cf..d1ea921302f 100644
--- a/lisp/cedet/semantic/symref/global.el
+++ b/lisp/cedet/semantic/symref/global.el
@@ -40,14 +40,11 @@ See the function `cedet-gnu-global-search' for more details.")
40 40
41(cl-defmethod semantic-symref-perform-search ((tool semantic-symref-tool-global)) 41(cl-defmethod semantic-symref-perform-search ((tool semantic-symref-tool-global))
42 "Perform a search with GNU Global." 42 "Perform a search with GNU Global."
43 (let ((b (cedet-gnu-global-search (oref tool :searchfor) 43 (let ((b (cedet-gnu-global-search (oref tool searchfor)
44 (oref tool :searchtype) 44 (oref tool searchtype)
45 (oref tool :resulttype) 45 (oref tool resulttype)
46 (oref tool :searchscope) 46 (oref tool searchscope))))
47 )) 47 (semantic-symref-parse-tool-output tool b)))
48 )
49 (semantic-symref-parse-tool-output tool b)
50 ))
51 48
52(defconst semantic-symref-global--line-re 49(defconst semantic-symref-global--line-re
53 "^\\([^ ]+\\) +\\([0-9]+\\) \\([^ ]+\\) ") 50 "^\\([^ ]+\\) +\\([0-9]+\\) \\([^ ]+\\) ")
@@ -55,12 +52,12 @@ See the function `cedet-gnu-global-search' for more details.")
55(cl-defmethod semantic-symref-parse-tool-output-one-line ((tool semantic-symref-tool-global)) 52(cl-defmethod semantic-symref-parse-tool-output-one-line ((tool semantic-symref-tool-global))
56 "Parse one line of grep output, and return it as a match list. 53 "Parse one line of grep output, and return it as a match list.
57Moves cursor to end of the match." 54Moves cursor to end of the match."
58 (cond ((or (eq (oref tool :resulttype) 'file) 55 (cond ((or (eq (oref tool resulttype) 'file)
59 (eq (oref tool :searchtype) 'tagcompletions)) 56 (eq (oref tool searchtype) 'tagcompletions))
60 ;; Search for files 57 ;; Search for files
61 (when (re-search-forward "^\\([^\n]+\\)$" nil t) 58 (when (re-search-forward "^\\([^\n]+\\)$" nil t)
62 (match-string 1))) 59 (match-string 1)))
63 ((eq (oref tool :resulttype) 'line-and-text) 60 ((eq (oref tool resulttype) 'line-and-text)
64 (when (re-search-forward semantic-symref-global--line-re nil t) 61 (when (re-search-forward semantic-symref-global--line-re nil t)
65 (list (string-to-number (match-string 2)) 62 (list (string-to-number (match-string 2))
66 (match-string 3) 63 (match-string 3)
diff --git a/lisp/cedet/semantic/symref/idutils.el b/lisp/cedet/semantic/symref/idutils.el
index 9f28e16c348..489bcec060d 100644
--- a/lisp/cedet/semantic/symref/idutils.el
+++ b/lisp/cedet/semantic/symref/idutils.el
@@ -40,14 +40,11 @@ See the function `cedet-idutils-search' for more details.")
40 40
41(cl-defmethod semantic-symref-perform-search ((tool semantic-symref-tool-idutils)) 41(cl-defmethod semantic-symref-perform-search ((tool semantic-symref-tool-idutils))
42 "Perform a search with IDUtils." 42 "Perform a search with IDUtils."
43 (let ((b (cedet-idutils-search (oref tool :searchfor) 43 (let ((b (cedet-idutils-search (oref tool searchfor)
44 (oref tool :searchtype) 44 (oref tool searchtype)
45 (oref tool :resulttype) 45 (oref tool resulttype)
46 (oref tool :searchscope) 46 (oref tool searchscope))))
47 )) 47 (semantic-symref-parse-tool-output tool b)))
48 )
49 (semantic-symref-parse-tool-output tool b)
50 ))
51 48
52(defconst semantic-symref-idutils--line-re 49(defconst semantic-symref-idutils--line-re
53 "^\\(\\(?:[a-zA-Z]:\\)?[^:\n]+\\):\\([0-9]+\\):") 50 "^\\(\\(?:[a-zA-Z]:\\)?[^:\n]+\\):\\([0-9]+\\):")
@@ -55,14 +52,14 @@ See the function `cedet-idutils-search' for more details.")
55(cl-defmethod semantic-symref-parse-tool-output-one-line ((tool semantic-symref-tool-idutils)) 52(cl-defmethod semantic-symref-parse-tool-output-one-line ((tool semantic-symref-tool-idutils))
56 "Parse one line of grep output, and return it as a match list. 53 "Parse one line of grep output, and return it as a match list.
57Moves cursor to end of the match." 54Moves cursor to end of the match."
58 (cond ((eq (oref tool :resulttype) 'file) 55 (cond ((eq (oref tool resulttype) 'file)
59 ;; Search for files 56 ;; Search for files
60 (when (re-search-forward "^\\([^\n]+\\)$" nil t) 57 (when (re-search-forward "^\\([^\n]+\\)$" nil t)
61 (match-string 1))) 58 (match-string 1)))
62 ((eq (oref tool :searchtype) 'tagcompletions) 59 ((eq (oref tool searchtype) 'tagcompletions)
63 (when (re-search-forward "^\\([^ ]+\\) " nil t) 60 (when (re-search-forward "^\\([^ ]+\\) " nil t)
64 (match-string 1))) 61 (match-string 1)))
65 ((eq (oref tool :resulttype) 'line-and-text) 62 ((eq (oref tool resulttype) 'line-and-text)
66 (when (re-search-forward semantic-symref-idutils--line-re nil t) 63 (when (re-search-forward semantic-symref-idutils--line-re nil t)
67 (list (string-to-number (match-string 2)) 64 (list (string-to-number (match-string 2))
68 (expand-file-name (match-string 1) default-directory) 65 (expand-file-name (match-string 1) default-directory)
diff --git a/lisp/cedet/semantic/symref/list.el b/lisp/cedet/semantic/symref/list.el
index c11eb310a0f..f6417b1c6b7 100644
--- a/lisp/cedet/semantic/symref/list.el
+++ b/lisp/cedet/semantic/symref/list.el
@@ -205,7 +205,7 @@ Some useful functions are found in `semantic-format-tag-functions'."
205 (erase-buffer) 205 (erase-buffer)
206 ;; Insert the contents. 206 ;; Insert the contents.
207 (let ((lastfile nil)) 207 (let ((lastfile nil))
208 (dolist (T (oref results :hit-tags)) 208 (dolist (T (oref results hit-tags))
209 (unless (equal lastfile (semantic-tag-file-name T)) 209 (unless (equal lastfile (semantic-tag-file-name T))
210 (setq lastfile (semantic-tag-file-name T)) 210 (setq lastfile (semantic-tag-file-name T))
211 (insert-button lastfile 211 (insert-button lastfile
@@ -402,8 +402,8 @@ cursor to the beginning of that symbol, then record a macro as if
402{kmacro-end-macro} to end the macro, and return to the symbol found list." 402{kmacro-end-macro} to end the macro, and return to the symbol found list."
403 (interactive) 403 (interactive)
404 (let* ((oldsym (oref (oref semantic-symref-current-results 404 (let* ((oldsym (oref (oref semantic-symref-current-results
405 :created-by) 405 created-by)
406 :searchfor)) 406 searchfor))
407 (ol (save-excursion 407 (ol (save-excursion
408 (end-of-line) 408 (end-of-line)
409 (car (semantic-overlays-at (1- (point)))))) 409 (car (semantic-overlays-at (1- (point))))))
@@ -448,8 +448,8 @@ Closed items will be skipped."
448 (interactive 448 (interactive
449 (list (read-string "Rename to: " 449 (list (read-string "Rename to: "
450 (oref (oref semantic-symref-current-results 450 (oref (oref semantic-symref-current-results
451 :created-by) 451 created-by)
452 :searchfor)))) 452 searchfor))))
453 (let ((count (semantic-symref-list-map-open-hits 453 (let ((count (semantic-symref-list-map-open-hits
454 (lambda () (replace-match newname nil t))))) 454 (lambda () (replace-match newname nil t)))))
455 (semantic-symref-list-update-open-hits) 455 (semantic-symref-list-update-open-hits)
@@ -469,8 +469,8 @@ Return the number of occurrences FUNCTION was operated upon."
469 ;; class members. (Not Done) 469 ;; class members. (Not Done)
470 470
471 (let ((oldsym (oref (oref semantic-symref-current-results 471 (let ((oldsym (oref (oref semantic-symref-current-results
472 :created-by) 472 created-by)
473 :searchfor)) 473 searchfor))
474 (count 0)) 474 (count 0))
475 (save-excursion 475 (save-excursion
476 (goto-char (point-min)) 476 (goto-char (point-min))
diff --git a/lisp/cedet/semantic/texi.el b/lisp/cedet/semantic/texi.el
index f079bf201c8..3a0050b920c 100644
--- a/lisp/cedet/semantic/texi.el
+++ b/lisp/cedet/semantic/texi.el
@@ -419,9 +419,9 @@ Since texinfo is not a programming language the default version is not
419useful. Instead, look at the current symbol. If it is a command 419useful. Instead, look at the current symbol. If it is a command
420do primitive texinfo built ins. If not, use ispell to lookup words 420do primitive texinfo built ins. If not, use ispell to lookup words
421that start with that symbol." 421that start with that symbol."
422 (let ((prefix (car (oref context :prefix))) 422 (let ((prefix (car (oref context prefix)))
423 ) 423 )
424 (cond ((member 'function (oref context :prefixclass)) 424 (cond ((member 'function (oref context prefixclass))
425 ;; Do completion for texinfo commands 425 ;; Do completion for texinfo commands
426 (let* ((cmd (substring prefix 1)) 426 (let* ((cmd (substring prefix 1))
427 (lst (all-completions 427 (lst (all-completions
@@ -429,7 +429,7 @@ that start with that symbol."
429 (mapcar (lambda (f) (semantic-tag (concat "@" f) 'function)) 429 (mapcar (lambda (f) (semantic-tag (concat "@" f) 'function))
430 lst)) 430 lst))
431 ) 431 )
432 ((member 'word (oref context :prefixclass)) 432 ((member 'word (oref context prefixclass))
433 ;; Do completion for words via ispell. 433 ;; Do completion for words via ispell.
434 (require 'ispell) 434 (require 'ispell)
435 (let ((word-list (ispell-lookup-words prefix))) 435 (let ((word-list (ispell-lookup-words prefix)))
diff --git a/lisp/cedet/srecode/args.el b/lisp/cedet/srecode/args.el
index 7f5600083ee..086f369b7f2 100644
--- a/lisp/cedet/srecode/args.el
+++ b/lisp/cedet/srecode/args.el
@@ -174,8 +174,8 @@ do not contain any text from preceding or following text."
174 (srecode-dictionary-set-value dict "PROJECT_FILENAME" relfname) 174 (srecode-dictionary-set-value dict "PROJECT_FILENAME" relfname)
175 (srecode-dictionary-set-value dict "PROJECT_DIRECTORY" reldir) 175 (srecode-dictionary-set-value dict "PROJECT_DIRECTORY" reldir)
176 (srecode-dictionary-set-value dict "PROJECT_NAME" (ede-name (ede-toplevel))) 176 (srecode-dictionary-set-value dict "PROJECT_NAME" (ede-name (ede-toplevel)))
177 (srecode-dictionary-set-value dict "PROJECT_VERSION" (oref (ede-toplevel) :version)) 177 (srecode-dictionary-set-value dict "PROJECT_VERSION"
178 ) 178 (oref (ede-toplevel) version)))
179 ;; If there is no EDE project, then put in some base values. 179 ;; If there is no EDE project, then put in some base values.
180 (srecode-dictionary-set-value dict "PROJECT_FILENAME" bfn) 180 (srecode-dictionary-set-value dict "PROJECT_FILENAME" bfn)
181 (srecode-dictionary-set-value dict "PROJECT_DIRECTORY" dir) 181 (srecode-dictionary-set-value dict "PROJECT_DIRECTORY" dir)
diff --git a/lisp/cedet/srecode/compile.el b/lisp/cedet/srecode/compile.el
index 204211b5e53..ff640c020f3 100644
--- a/lisp/cedet/srecode/compile.el
+++ b/lisp/cedet/srecode/compile.el
@@ -547,8 +547,8 @@ A list of defined variables VARS provides a variable table."
547 547
548 (while lp 548 (while lp
549 549
550 (let* ((objname (oref (car lp) :object-name)) 550 (let* ((objname (oref (car lp) object-name))
551 (context (oref (car lp) :context)) 551 (context (oref (car lp) context))
552 (globalname (concat context ":" objname)) 552 (globalname (concat context ":" objname))
553 ) 553 )
554 554
@@ -583,7 +583,7 @@ A list of defined variables VARS provides a variable table."
583 (tmpl (oref table templates))) 583 (tmpl (oref table templates)))
584 ;; Loop over all the templates, and xref. 584 ;; Loop over all the templates, and xref.
585 (while tmpl 585 (while tmpl
586 (oset (car tmpl) :table table) 586 (oset (car tmpl) table table)
587 (setq tmpl (cdr tmpl)))) 587 (setq tmpl (cdr tmpl))))
588 )) 588 ))
589 589
@@ -644,9 +644,9 @@ Argument INDENT specifies the indentation level for the list."
644 "Dump the state of the SRecode template inserter INS." 644 "Dump the state of the SRecode template inserter INS."
645 (princ "INS: \"") 645 (princ "INS: \"")
646 (princ (eieio-object-name-string ins)) 646 (princ (eieio-object-name-string ins))
647 (when (oref ins :secondname) 647 (when (oref ins secondname)
648 (princ "\" : \"") 648 (princ "\" : \"")
649 (princ (oref ins :secondname))) 649 (princ (oref ins secondname)))
650 (princ "\" type \"") 650 (princ "\" type \"")
651 (let* ((oc (symbol-name (eieio-object-class ins))) 651 (let* ((oc (symbol-name (eieio-object-class ins)))
652 (junk (string-match "srecode-template-inserter-" oc)) 652 (junk (string-match "srecode-template-inserter-" oc))
diff --git a/lisp/cedet/srecode/cpp.el b/lisp/cedet/srecode/cpp.el
index cedc195433c..306c60f1b61 100644
--- a/lisp/cedet/srecode/cpp.el
+++ b/lisp/cedet/srecode/cpp.el
@@ -122,7 +122,7 @@ specified in a C file."
122 (srecode-semantic-apply-tag-to-dict-default tag-wrapper dict) 122 (srecode-semantic-apply-tag-to-dict-default tag-wrapper dict)
123 123
124 ;; Pull out the tag for the individual pieces. 124 ;; Pull out the tag for the individual pieces.
125 (let* ((tag (oref tag-wrapper :prime)) 125 (let* ((tag (oref tag-wrapper prime))
126 (class (semantic-tag-class tag))) 126 (class (semantic-tag-class tag)))
127 127
128 ;; Add additional information based on the class of the tag. 128 ;; Add additional information based on the class of the tag.
diff --git a/lisp/cedet/srecode/dictionary.el b/lisp/cedet/srecode/dictionary.el
index 4b1f28babd5..8508371d53b 100644
--- a/lisp/cedet/srecode/dictionary.el
+++ b/lisp/cedet/srecode/dictionary.el
@@ -122,7 +122,7 @@ Makes sure that :value is compiled."
122 122
123 (cl-call-next-method this (nreverse newfields)) 123 (cl-call-next-method this (nreverse newfields))
124 (when (not (slot-boundp this 'compiled)) 124 (when (not (slot-boundp this 'compiled))
125 (let ((val (oref this :value)) 125 (let ((val (oref this value))
126 (comp nil)) 126 (comp nil))
127 (while val 127 (while val
128 (let ((nval (car val)) 128 (let ((nval (car val))
@@ -141,7 +141,7 @@ Makes sure that :value is compiled."
141 (error "Don't know how to handle variable value %S" nval))) 141 (error "Don't know how to handle variable value %S" nval)))
142 ) 142 )
143 (setq val (cdr val))) 143 (setq val (cdr val)))
144 (oset this :compiled (nreverse comp)))))) 144 (oset this compiled (nreverse comp))))))
145 145
146;;; DICTIONARY METHODS 146;;; DICTIONARY METHODS
147;; 147;;
@@ -223,7 +223,7 @@ TPL is an object representing a compiled template file."
223 ;; Tables are sorted with highest priority first, useful for looking 223 ;; Tables are sorted with highest priority first, useful for looking
224 ;; up templates, but this means we need to install the variables in 224 ;; up templates, but this means we need to install the variables in
225 ;; reverse order so higher priority variables override lower ones. 225 ;; reverse order so higher priority variables override lower ones.
226 (let ((tabs (reverse (oref tpl :tables)))) 226 (let ((tabs (reverse (oref tpl tables))))
227 (require 'srecode/find) ; For srecode-template-table-in-project-p 227 (require 'srecode/find) ; For srecode-template-table-in-project-p
228 (while tabs 228 (while tabs
229 (when (srecode-template-table-in-project-p (car tabs)) 229 (when (srecode-template-table-in-project-p (car tabs))
@@ -518,7 +518,7 @@ inserted with a new editable field.")
518 (let* ((dv (oref cp defaultvalue)) 518 (let* ((dv (oref cp defaultvalue))
519 (sti (oref cp firstinserter)) 519 (sti (oref cp firstinserter))
520 (start (point)) 520 (start (point))
521 (name (oref sti :object-name))) 521 (name (oref sti object-name)))
522 522
523 (cond 523 (cond
524 ;; No default value. 524 ;; No default value.
diff --git a/lisp/cedet/srecode/el.el b/lisp/cedet/srecode/el.el
index 0bc8e1f450c..33b75cad692 100644
--- a/lisp/cedet/srecode/el.el
+++ b/lisp/cedet/srecode/el.el
@@ -86,7 +86,7 @@ Calls `srecode-semantic-apply-tag-to-dict-default' first."
86 (srecode-semantic-apply-tag-to-dict-default tagobj dict) 86 (srecode-semantic-apply-tag-to-dict-default tagobj dict)
87 87
88 ;; Pull out the tag for the individual pieces. 88 ;; Pull out the tag for the individual pieces.
89 (let* ((tag (oref tagobj :prime)) 89 (let* ((tag (oref tagobj prime))
90 (doc (semantic-tag-docstring tag))) 90 (doc (semantic-tag-docstring tag)))
91 91
92 ;; It is much more common to have doc on ELisp. 92 ;; It is much more common to have doc on ELisp.
diff --git a/lisp/cedet/srecode/extract.el b/lisp/cedet/srecode/extract.el
index acb200a46ec..c46ff7e38f7 100644
--- a/lisp/cedet/srecode/extract.el
+++ b/lisp/cedet/srecode/extract.el
@@ -161,10 +161,9 @@ Return nil as this inserter will extract nothing."
161Return t if something was extracted. 161Return t if something was extracted.
162Return nil if this inserter doesn't need to extract anything." 162Return nil if this inserter doesn't need to extract anything."
163 (srecode-dictionary-set-value vdict 163 (srecode-dictionary-set-value vdict
164 (oref ins :object-name) 164 (oref ins object-name)
165 (buffer-substring-no-properties 165 (buffer-substring-no-properties
166 start end) 166 start end))
167 )
168 t) 167 t)
169 168
170;;; Section Inserter 169;;; Section Inserter
@@ -178,10 +177,9 @@ Return nil if this inserter doesn't need to extract anything."
178 "Extract text from START/END and store in INDICT. 177 "Extract text from START/END and store in INDICT.
179Return the starting location of the first plain-text match. 178Return the starting location of the first plain-text match.
180Return nil if nothing was extracted." 179Return nil if nothing was extracted."
181 (let ((name (oref ins :object-name)) 180 (let ((name (oref ins object-name))
182 (subdict (srecode-create-dictionary indict)) 181 (subdict (srecode-create-dictionary indict))
183 (allsubdict nil) 182 (allsubdict nil))
184 )
185 183
186 ;; Keep extracting till we can extract no more. 184 ;; Keep extracting till we can extract no more.
187 (while (condition-case nil 185 (while (condition-case nil
@@ -217,10 +215,10 @@ Return nil if nothing was extracted."
217 ;; There are two modes for includes. One is with no dict, 215 ;; There are two modes for includes. One is with no dict,
218 ;; so it is inserted straight. If the dict has a name, then 216 ;; so it is inserted straight. If the dict has a name, then
219 ;; we need to run once per dictionary occurrence. 217 ;; we need to run once per dictionary occurrence.
220 (if (not (string= (oref ins :object-name) "")) 218 (if (not (string= (oref ins object-name) ""))
221 ;; With a name, do the insertion. 219 ;; With a name, do the insertion.
222 (let ((subdict (srecode-dictionary-add-section-dictionary 220 (let ((subdict (srecode-dictionary-add-section-dictionary
223 dict (oref ins :object-name)))) 221 dict (oref ins object-name))))
224 (error "Need to implement include w/ name extractor") 222 (error "Need to implement include w/ name extractor")
225 ;; Recurse into the new template while no errors. 223 ;; Recurse into the new template while no errors.
226 (while (condition-case nil 224 (while (condition-case nil
diff --git a/lisp/cedet/srecode/find.el b/lisp/cedet/srecode/find.el
index f5ddc619b8c..f130edcee8d 100644
--- a/lisp/cedet/srecode/find.el
+++ b/lisp/cedet/srecode/find.el
@@ -100,7 +100,7 @@ all template files for that application will be loaded."
100 "Return non-nil if the table TAB can be used in the current project. 100 "Return non-nil if the table TAB can be used in the current project.
101If TAB has a :project set, check that the directories match. 101If TAB has a :project set, check that the directories match.
102If TAB is nil, then always return t." 102If TAB is nil, then always return t."
103 (let ((proj (oref tab :project))) 103 (let ((proj (oref tab project)))
104 ;; Return t if the project wasn't set. 104 ;; Return t if the project wasn't set.
105 (if (not proj) t 105 (if (not proj) t
106 ;; If the project directory was set, let's check it. 106 ;; If the project directory was set, let's check it.
@@ -139,10 +139,10 @@ Optional argument APPLICATION restricts searches to only template tables
139belonging to a specific application. If APPLICATION is nil, then only 139belonging to a specific application. If APPLICATION is nil, then only
140tables that do not belong to an application will be searched." 140tables that do not belong to an application will be searched."
141 (let* ((mt tab) 141 (let* ((mt tab)
142 (tabs (oref mt :tables)) 142 (tabs (oref mt tables))
143 (ans nil)) 143 (ans nil))
144 (while (and (not ans) tabs) 144 (while (and (not ans) tabs)
145 (let ((app (oref (car tabs) :application))) 145 (let ((app (oref (car tabs) application)))
146 (when (or (and (not application) (null app)) 146 (when (or (and (not application) (null app))
147 (and application (eq app application))) 147 (and application (eq app application)))
148 (setq ans (srecode-template-get-table (car tabs) template-name 148 (setq ans (srecode-template-get-table (car tabs) template-name
@@ -150,7 +150,7 @@ tables that do not belong to an application will be searched."
150 (setq tabs (cdr tabs)))) 150 (setq tabs (cdr tabs))))
151 (or ans 151 (or ans
152 ;; Recurse to the default. 152 ;; Recurse to the default.
153 (when (not (equal (oref tab :major-mode) 'default)) 153 (when (not (equal (oref tab major-mode) 'default))
154 (srecode-template-get-table (srecode-get-mode-table 'default) 154 (srecode-template-get-table (srecode-get-mode-table 'default)
155 template-name context application))))) 155 template-name context application)))))
156 156
@@ -199,10 +199,10 @@ Optional argument APPLICATION restricts searches to only template tables
199belonging to a specific application. If APPLICATION is nil, then only 199belonging to a specific application. If APPLICATION is nil, then only
200tables that do not belong to an application will be searched." 200tables that do not belong to an application will be searched."
201 (let* ((mt tab) 201 (let* ((mt tab)
202 (tabs (oref mt :tables)) 202 (tabs (oref mt tables))
203 (ans nil)) 203 (ans nil))
204 (while (and (not ans) tabs) 204 (while (and (not ans) tabs)
205 (let ((app (oref (car tabs) :application))) 205 (let ((app (oref (car tabs) application)))
206 (when (or (and (not application) (null app)) 206 (when (or (and (not application) (null app))
207 (and application (eq app application))) 207 (and application (eq app application)))
208 (setq ans (srecode-template-get-table-for-binding 208 (setq ans (srecode-template-get-table-for-binding
@@ -210,7 +210,7 @@ tables that do not belong to an application will be searched."
210 (setq tabs (cdr tabs)))) 210 (setq tabs (cdr tabs))))
211 (or ans 211 (or ans
212 ;; Recurse to the default. 212 ;; Recurse to the default.
213 (when (not (equal (oref tab :major-mode) 'default)) 213 (when (not (equal (oref tab major-mode) 'default))
214 (srecode-template-get-table-for-binding 214 (srecode-template-get-table-for-binding
215 (srecode-get-mode-table 'default) binding context))))) 215 (srecode-get-mode-table 'default) binding context)))))
216;;; Interactive 216;;; Interactive
@@ -241,10 +241,10 @@ templates."
241 241
242 ;; Load up the hash table for our current mode. 242 ;; Load up the hash table for our current mode.
243 (let* ((mt (srecode-get-mode-table mmode)) 243 (let* ((mt (srecode-get-mode-table mmode))
244 (tabs (when mt (oref mt :tables)))) 244 (tabs (when mt (oref mt tables))))
245 (dolist (tab tabs) 245 (dolist (tab tabs)
246 ;; Exclude templates for a particular application. 246 ;; Exclude templates for a particular application.
247 (when (and (not (oref tab :application)) 247 (when (and (not (oref tab application))
248 (srecode-template-table-in-project-p tab)) 248 (srecode-template-table-in-project-p tab))
249 (maphash (lambda (key temp) 249 (maphash (lambda (key temp)
250 (when (or (not predicate) 250 (when (or (not predicate)
diff --git a/lisp/cedet/srecode/insert.el b/lisp/cedet/srecode/insert.el
index 66bdf785c63..d23597ec479 100644
--- a/lisp/cedet/srecode/insert.el
+++ b/lisp/cedet/srecode/insert.el
@@ -471,12 +471,11 @@ If SECONDNAME is nil, return VALUE."
471 dictionary) 471 dictionary)
472 "Insert the STI inserter." 472 "Insert the STI inserter."
473 ;; Convert the name into a name/fcn pair 473 ;; Convert the name into a name/fcn pair
474 (let* ((name (oref sti :object-name)) 474 (let* ((name (oref sti object-name))
475 (fcnpart (oref sti :secondname)) 475 (fcnpart (oref sti secondname))
476 (val (srecode-dictionary-lookup-name 476 (val (srecode-dictionary-lookup-name
477 dictionary name)) 477 dictionary name))
478 (do-princ t) 478 (do-princ t))
479 )
480 ;; Alert if a macro wasn't found. 479 ;; Alert if a macro wasn't found.
481 (when (not val) 480 (when (not val)
482 (message "Warning: macro %S was not found in the dictionary." name) 481 (message "Warning: macro %S was not found in the dictionary." name)
@@ -545,12 +544,12 @@ Loop over the prompts to see if we have a match."
545 ) 544 )
546 (while prompts 545 (while prompts
547 (when (string= (semantic-tag-name (car prompts)) 546 (when (string= (semantic-tag-name (car prompts))
548 (oref ins :object-name)) 547 (oref ins object-name))
549 (oset ins :prompt 548 (oset ins prompt
550 (semantic-tag-get-attribute (car prompts) :text)) 549 (semantic-tag-get-attribute (car prompts) :text))
551 (oset ins :defaultfcn 550 (oset ins defaultfcn
552 (semantic-tag-get-attribute (car prompts) :default)) 551 (semantic-tag-get-attribute (car prompts) :default))
553 (oset ins :read-fcn 552 (oset ins read-fcn
554 (or (semantic-tag-get-attribute (car prompts) :read) 553 (or (semantic-tag-get-attribute (car prompts) :read)
555 'read-string)) 554 'read-string))
556 ) 555 )
@@ -561,7 +560,7 @@ Loop over the prompts to see if we have a match."
561 dictionary) 560 dictionary)
562 "Insert the STI inserter." 561 "Insert the STI inserter."
563 (let ((val (srecode-dictionary-lookup-name 562 (let ((val (srecode-dictionary-lookup-name
564 dictionary (oref sti :object-name)))) 563 dictionary (oref sti object-name))))
565 (if val 564 (if val
566 ;; Does some extra work. Oh well. 565 ;; Does some extra work. Oh well.
567 (cl-call-next-method) 566 (cl-call-next-method)
@@ -577,7 +576,7 @@ Loop over the prompts to see if we have a match."
577 ;; the user can use the same name again later. 576 ;; the user can use the same name again later.
578 (srecode-dictionary-set-value 577 (srecode-dictionary-set-value
579 (srecode-root-dictionary dictionary) 578 (srecode-root-dictionary dictionary)
580 (oref sti :object-name) val) 579 (oref sti object-name) val)
581 580
582 ;; Now that this value is safely stowed in the dictionary, 581 ;; Now that this value is safely stowed in the dictionary,
583 ;; we can do what regular inserters do. 582 ;; we can do what regular inserters do.
@@ -587,7 +586,7 @@ Loop over the prompts to see if we have a match."
587 dictionary) 586 dictionary)
588 "Derive the default value for an askable inserter STI. 587 "Derive the default value for an askable inserter STI.
589DICTIONARY is used to derive some values." 588DICTIONARY is used to derive some values."
590 (let ((defaultfcn (oref sti :defaultfcn))) 589 (let ((defaultfcn (oref sti defaultfcn)))
591 (cond 590 (cond
592 ((stringp defaultfcn) 591 ((stringp defaultfcn)
593 defaultfcn) 592 defaultfcn)
@@ -614,13 +613,13 @@ DICTIONARY is used to derive some values."
614Use DICTIONARY to resolve values." 613Use DICTIONARY to resolve values."
615 (let* ((prompt (oref sti prompt)) 614 (let* ((prompt (oref sti prompt))
616 (default (srecode-insert-ask-default sti dictionary)) 615 (default (srecode-insert-ask-default sti dictionary))
617 (reader (oref sti :read-fcn)) 616 (reader (oref sti read-fcn))
618 (val nil) 617 (val nil)
619 ) 618 )
620 (cond ((eq reader 'y-or-n-p) 619 (cond ((eq reader 'y-or-n-p)
621 (if (y-or-n-p (or prompt 620 (if (y-or-n-p (or prompt
622 (format "%s? " 621 (format "%s? "
623 (oref sti :object-name)))) 622 (oref sti object-name))))
624 (setq val default) 623 (setq val default)
625 (setq val ""))) 624 (setq val "")))
626 ((eq reader 'read-char) 625 ((eq reader 'read-char)
@@ -628,14 +627,14 @@ Use DICTIONARY to resolve values."
628 "%c" 627 "%c"
629 (read-char (or prompt 628 (read-char (or prompt
630 (format "Char for %s: " 629 (format "Char for %s: "
631 (oref sti :object-name)))))) 630 (oref sti object-name))))))
632 ) 631 )
633 (t 632 (t
634 (save-excursion 633 (save-excursion
635 (setq val (funcall reader 634 (setq val (funcall reader
636 (or prompt 635 (or prompt
637 (format "Specify %s: " 636 (format "Specify %s: "
638 (oref sti :object-name))) 637 (oref sti object-name)))
639 default 638 default
640 ))))) 639 )))))
641 ;; Return our derived value. 640 ;; Return our derived value.
@@ -648,7 +647,7 @@ Use DICTIONARY to resolve values."
648Use DICTIONARY to resolve values." 647Use DICTIONARY to resolve values."
649 (let* ((default (srecode-insert-ask-default sti dictionary)) 648 (let* ((default (srecode-insert-ask-default sti dictionary))
650 (compound-value 649 (compound-value
651 (srecode-field-value (oref sti :object-name) 650 (srecode-field-value (oref sti object-name)
652 :firstinserter sti 651 :firstinserter sti
653 :defaultvalue default)) 652 :defaultvalue default))
654 ) 653 )
@@ -816,12 +815,12 @@ Arguments ESCAPE-START and ESCAPE-END are the current escape sequences in use."
816Loops over the embedded CODE which was saved here during compilation. 815Loops over the embedded CODE which was saved here during compilation.
817The template to insert is stored in SLOT." 816The template to insert is stored in SLOT."
818 (let ((dicts (srecode-dictionary-lookup-name 817 (let ((dicts (srecode-dictionary-lookup-name
819 dictionary (oref sti :object-name)))) 818 dictionary (oref sti object-name))))
820 (when (not (listp dicts)) 819 (when (not (listp dicts))
821 (srecode-insert-report-error 820 (srecode-insert-report-error
822 dictionary 821 dictionary
823 "Cannot insert section %S from non-section variable." 822 "Cannot insert section %S from non-section variable."
824 (oref sti :object-name))) 823 (oref sti object-name)))
825 ;; If there is no section dictionary, then don't output anything 824 ;; If there is no section dictionary, then don't output anything
826 ;; from this section. 825 ;; from this section.
827 (while dicts 826 (while dicts
@@ -829,7 +828,7 @@ The template to insert is stored in SLOT."
829 (srecode-insert-report-error 828 (srecode-insert-report-error
830 dictionary 829 dictionary
831 "Cannot insert section %S from non-section variable." 830 "Cannot insert section %S from non-section variable."
832 (oref sti :object-name))) 831 (oref sti object-name)))
833 (srecode-insert-subtemplate sti (car dicts) slot) 832 (srecode-insert-subtemplate sti (car dicts) slot)
834 (setq dicts (cdr dicts))))) 833 (setq dicts (cdr dicts)))))
835 834
@@ -860,7 +859,7 @@ applied to the text between the section start and the
860Shorten input until the END token is found. 859Shorten input until the END token is found.
861Return the remains of INPUT." 860Return the remains of INPUT."
862 (let* ((out (srecode-compile-split-code tag input STATE 861 (let* ((out (srecode-compile-split-code tag input STATE
863 (oref ins :object-name)))) 862 (oref ins object-name))))
864 (oset ins template (srecode-template 863 (oset ins template (srecode-template
865 (eieio-object-name-string ins) 864 (eieio-object-name-string ins)
866 :context nil 865 :context nil
@@ -893,7 +892,7 @@ are treated specially.")
893(cl-defmethod srecode-match-end ((ins srecode-template-inserter-section-end) name) 892(cl-defmethod srecode-match-end ((ins srecode-template-inserter-section-end) name)
894 893
895 "For the template inserter INS, do I end a section called NAME?" 894 "For the template inserter INS, do I end a section called NAME?"
896 (string= name (oref ins :object-name))) 895 (string= name (oref ins object-name)))
897 896
898(defclass srecode-template-inserter-include (srecode-template-inserter-subtemplate) 897(defclass srecode-template-inserter-include (srecode-template-inserter-subtemplate)
899 ((key :initform ?> 898 ((key :initform ?>
@@ -924,13 +923,13 @@ Arguments ESCAPE-START and ESCAPE-END are the current escape sequences in use."
924 "For the template inserter STI, lookup the template to include. 923 "For the template inserter STI, lookup the template to include.
925Finds the template with this macro function part and stores it in 924Finds the template with this macro function part and stores it in
926this template instance." 925this template instance."
927 (let ((templatenamepart (oref sti :secondname))) 926 (let ((templatenamepart (oref sti secondname)))
928 ;; If there was no template name, throw an error. 927 ;; If there was no template name, throw an error.
929 (unless templatenamepart 928 (unless templatenamepart
930 (srecode-insert-report-error 929 (srecode-insert-report-error
931 dictionary 930 dictionary
932 "Include macro `%s' needs a template name" 931 "Include macro `%s' needs a template name"
933 (oref sti :object-name))) 932 (oref sti object-name)))
934 933
935 ;; NOTE: We used to cache the template and not look it up a second time, 934 ;; NOTE: We used to cache the template and not look it up a second time,
936 ;; but changes in the template tables can change which template is 935 ;; but changes in the template tables can change which template is
@@ -968,14 +967,14 @@ this template instance."
968 ) 967 )
969 968
970 ;; Store the found template into this object for later use. 969 ;; Store the found template into this object for later use.
971 (oset sti :includedtemplate tmpl)) 970 (oset sti includedtemplate tmpl))
972 971
973 (unless (oref sti includedtemplate) 972 (unless (oref sti includedtemplate)
974 ;; @todo - Call into a debugger to help find the template in question. 973 ;; @todo - Call into a debugger to help find the template in question.
975 (srecode-insert-report-error 974 (srecode-insert-report-error
976 dictionary 975 dictionary
977 "No template \"%s\" found for include macro `%s'" 976 "No template \"%s\" found for include macro `%s'"
978 templatenamepart (oref sti :object-name))))) 977 templatenamepart (oref sti object-name)))))
979 978
980(cl-defmethod srecode-insert-method ((sti srecode-template-inserter-include) 979(cl-defmethod srecode-insert-method ((sti srecode-template-inserter-include)
981 dictionary) 980 dictionary)
@@ -985,7 +984,7 @@ with the dictionaries found in the dictionary."
985 (srecode-insert-include-lookup sti dictionary) 984 (srecode-insert-include-lookup sti dictionary)
986 ;; Insert the template. 985 ;; Insert the template.
987 ;; Our baseclass has a simple way to do this. 986 ;; Our baseclass has a simple way to do this.
988 (if (srecode-dictionary-lookup-name dictionary (oref sti :object-name)) 987 (if (srecode-dictionary-lookup-name dictionary (oref sti object-name))
989 ;; If we have a value, then call the next method 988 ;; If we have a value, then call the next method
990 (srecode-insert-method-helper sti dictionary 'includedtemplate) 989 (srecode-insert-method-helper sti dictionary 'includedtemplate)
991 ;; If we don't have a special dictionary, then just insert with the 990 ;; If we don't have a special dictionary, then just insert with the
@@ -1053,7 +1052,7 @@ template where a ^ inserter occurs."
1053 (lambda (dict) 1052 (lambda (dict)
1054 (let ((srecode-template-inserter-point-override nil)) 1053 (let ((srecode-template-inserter-point-override nil))
1055 (if (srecode-dictionary-lookup-name 1054 (if (srecode-dictionary-lookup-name
1056 dict (oref sti :object-name)) 1055 dict (oref sti object-name))
1057 ;; Insert our sectional part with looping. 1056 ;; Insert our sectional part with looping.
1058 (srecode-insert-method-helper 1057 (srecode-insert-method-helper
1059 sti dict 'template) 1058 sti dict 'template)
diff --git a/lisp/cedet/srecode/mode.el b/lisp/cedet/srecode/mode.el
index a47520e013a..a40b9d09a6f 100644
--- a/lisp/cedet/srecode/mode.el
+++ b/lisp/cedet/srecode/mode.el
@@ -195,7 +195,7 @@ MENU-DEF is the menu to bind this into."
195 ;;(srecode-load-tables-for-mode major-mode) 195 ;;(srecode-load-tables-for-mode major-mode)
196 196
197 (let* ((modetable (srecode-get-mode-table major-mode)) 197 (let* ((modetable (srecode-get-mode-table major-mode))
198 (subtab (when modetable (oref modetable :tables))) 198 (subtab (when modetable (oref modetable tables)))
199 (context nil) 199 (context nil)
200 (active nil) 200 (active nil)
201 (ltab nil) 201 (ltab nil)
@@ -318,17 +318,17 @@ Template is chosen based on the mode of the starting buffer."
318 (if (not temp) 318 (if (not temp)
319 (error "No Template named %s" template-name)) 319 (error "No Template named %s" template-name))
320 ;; We need a template specific table, since tables chain. 320 ;; We need a template specific table, since tables chain.
321 (let ((tab (oref temp :table)) 321 (let ((tab (oref temp table))
322 (names nil) 322 (names nil)
323 ) 323 )
324 (find-file (oref tab :file)) 324 (find-file (oref tab file))
325 (setq names (semantic-find-tags-by-name (oref temp :object-name) 325 (setq names (semantic-find-tags-by-name (oref temp object-name)
326 (current-buffer))) 326 (current-buffer)))
327 (cond ((= (length names) 1) 327 (cond ((= (length names) 1)
328 (semantic-go-to-tag (car names)) 328 (semantic-go-to-tag (car names))
329 (semantic-momentary-highlight-tag (car names))) 329 (semantic-momentary-highlight-tag (car names)))
330 ((> (length names) 1) 330 ((> (length names) 1)
331 (let* ((ctxt (semantic-find-tags-by-name (oref temp :context) 331 (let* ((ctxt (semantic-find-tags-by-name (oref temp context)
332 (current-buffer))) 332 (current-buffer)))
333 (cls (semantic-find-tags-by-class 'context ctxt)) 333 (cls (semantic-find-tags-by-class 'context ctxt))
334 ) 334 )
diff --git a/lisp/cedet/srecode/semantic.el b/lisp/cedet/srecode/semantic.el
index ea11b0e4838..1e1a60e0245 100644
--- a/lisp/cedet/srecode/semantic.el
+++ b/lisp/cedet/srecode/semantic.el
@@ -63,10 +63,9 @@ If FUNCTION is non-nil, then FUNCTION is somehow applied to an
63aspect of the compound value." 63aspect of the compound value."
64 (if (not function) 64 (if (not function)
65 ;; Just format it in some handy dandy way. 65 ;; Just format it in some handy dandy way.
66 (semantic-format-tag-prototype (oref cp :prime)) 66 (semantic-format-tag-prototype (oref cp prime))
67 ;; Otherwise, apply the function to the tag itself. 67 ;; Otherwise, apply the function to the tag itself.
68 (funcall function (oref cp :prime)) 68 (funcall function (oref cp prime))))
69 ))
70 69
71 70
72;;; Managing the `current' tag 71;;; Managing the `current' tag
@@ -106,7 +105,7 @@ variable default values, and other things."
106 (srecode-dictionary-set-value dict "TAG" tagobj) 105 (srecode-dictionary-set-value dict "TAG" tagobj)
107 106
108 ;; Pull out the tag for the individual pieces. 107 ;; Pull out the tag for the individual pieces.
109 (let ((tag (oref tagobj :prime))) 108 (let ((tag (oref tagobj prime)))
110 109
111 (srecode-dictionary-set-value dict "NAME" (semantic-tag-name tag)) 110 (srecode-dictionary-set-value dict "NAME" (semantic-tag-name tag))
112 (srecode-dictionary-set-value dict "TYPE" (semantic-format-tag-type tag nil)) 111 (srecode-dictionary-set-value dict "TYPE" (semantic-format-tag-type tag nil))
diff --git a/lisp/cedet/srecode/srt-mode.el b/lisp/cedet/srecode/srt-mode.el
index 6bf2d51ab41..a4c8cbd1d01 100644
--- a/lisp/cedet/srecode/srt-mode.el
+++ b/lisp/cedet/srecode/srt-mode.el
@@ -502,10 +502,10 @@ section or ? for an ask variable."
502 ) 502 )
503 (when inserter 503 (when inserter
504 (let ((base 504 (let ((base
505 (cons (oref inserter :object-name) 505 (cons (oref inserter object-name)
506 (if (and (slot-boundp inserter :secondname) 506 (if (and (slot-boundp inserter :secondname)
507 (oref inserter :secondname)) 507 (oref inserter secondname))
508 (split-string (oref inserter :secondname) 508 (split-string (oref inserter secondname)
509 ":") 509 ":")
510 nil))) 510 nil)))
511 (key (oref inserter key))) 511 (key (oref inserter key)))
@@ -627,7 +627,7 @@ section or ? for an ask variable."
627 srecode-template-mode (context) 627 srecode-template-mode (context)
628 "Return a list of possible completions based on NONTEXT." 628 "Return a list of possible completions based on NONTEXT."
629 (with-current-buffer (oref context buffer) 629 (with-current-buffer (oref context buffer)
630 (let* ((prefix (car (last (oref context :prefix)))) 630 (let* ((prefix (car (last (oref context prefix))))
631 (prefixstr (cond ((stringp prefix) 631 (prefixstr (cond ((stringp prefix)
632 prefix) 632 prefix)
633 ((semantic-tag-p prefix) 633 ((semantic-tag-p prefix)
@@ -638,7 +638,7 @@ section or ? for an ask variable."
638; prefix) 638; prefix)
639; ((stringp (car prefix)) 639; ((stringp (car prefix))
640; (car prefix)))) 640; (car prefix))))
641 (argtype (car (oref context :argument))) 641 (argtype (car (oref context argument)))
642 (matches nil)) 642 (matches nil))
643 643
644 ;; Depending on what the analyzer is, we have different ways 644 ;; Depending on what the analyzer is, we have different ways
diff --git a/lisp/cedet/srecode/table.el b/lisp/cedet/srecode/table.el
index 95d8bfa1bc5..7a0600c3f81 100644
--- a/lisp/cedet/srecode/table.el
+++ b/lisp/cedet/srecode/table.el
@@ -201,8 +201,8 @@ INIT are the initialization parameters for the new template table."
201 ;; into the search table first, allowing lower priority items 201 ;; into the search table first, allowing lower priority items
202 ;; to be the items found in the search table. 202 ;; to be the items found in the search table.
203 (object-sort-list mt 'modetables (lambda (a b) 203 (object-sort-list mt 'modetables (lambda (a b)
204 (> (oref a :priority) 204 (> (oref a priority)
205 (oref b :priority)))) 205 (oref b priority))))
206 ;; Return it. 206 ;; Return it.
207 new)) 207 new))
208 208
@@ -239,9 +239,9 @@ Use PREDICATE is the same as for the `sort' function."
239(cl-defmethod srecode-dump ((tab srecode-mode-table)) 239(cl-defmethod srecode-dump ((tab srecode-mode-table))
240 "Dump the contents of the SRecode mode table TAB." 240 "Dump the contents of the SRecode mode table TAB."
241 (princ "MODE TABLE FOR ") 241 (princ "MODE TABLE FOR ")
242 (princ (oref tab :major-mode)) 242 (princ (oref tab major-mode))
243 (princ "\n--------------------------------------------\n\nNumber of tables: ") 243 (princ "\n--------------------------------------------\n\nNumber of tables: ")
244 (let ((subtab (oref tab :tables))) 244 (let ((subtab (oref tab tables)))
245 (princ (length subtab)) 245 (princ (length subtab))
246 (princ "\n\n") 246 (princ "\n\n")
247 (while subtab 247 (while subtab
@@ -254,17 +254,17 @@ Use PREDICATE is the same as for the `sort' function."
254 (princ "Template Table for ") 254 (princ "Template Table for ")
255 (princ (eieio-object-name-string tab)) 255 (princ (eieio-object-name-string tab))
256 (princ "\nPriority: ") 256 (princ "\nPriority: ")
257 (prin1 (oref tab :priority)) 257 (prin1 (oref tab priority))
258 (when (oref tab :application) 258 (when (oref tab application)
259 (princ "\nApplication: ") 259 (princ "\nApplication: ")
260 (princ (oref tab :application))) 260 (princ (oref tab application)))
261 (when (oref tab :framework) 261 (when (oref tab framework)
262 (princ "\nFramework: ") 262 (princ "\nFramework: ")
263 (princ (oref tab :framework))) 263 (princ (oref tab framework)))
264 (when (oref tab :project) 264 (when (oref tab project)
265 (require 'srecode/find) ; For srecode-template-table-in-project-p 265 (require 'srecode/find) ; For srecode-template-table-in-project-p
266 (princ "\nProject Directory: ") 266 (princ "\nProject Directory: ")
267 (princ (oref tab :project)) 267 (princ (oref tab project))
268 (when (not (srecode-template-table-in-project-p tab)) 268 (when (not (srecode-template-table-in-project-p tab))
269 (princ "\n ** Not Usable in this file. **"))) 269 (princ "\n ** Not Usable in this file. **")))
270 (princ "\n\nVariables:\n") 270 (princ "\n\nVariables:\n")
diff --git a/lisp/cedet/srecode/texi.el b/lisp/cedet/srecode/texi.el
index 212b56c6ca0..bb2b7c91316 100644
--- a/lisp/cedet/srecode/texi.el
+++ b/lisp/cedet/srecode/texi.el
@@ -156,7 +156,7 @@ Adds the following:
156 (error "No tag to insert for :texitag template argument")) 156 (error "No tag to insert for :texitag template argument"))
157 157
158 ;; Extract the tag out of the compound object. 158 ;; Extract the tag out of the compound object.
159 (setq tag (oref tag :prime)) 159 (setq tag (oref tag prime))
160 160
161 ;; Extract the doc string 161 ;; Extract the doc string
162 (setq doc (semantic-documentation-for-tag tag)) 162 (setq doc (semantic-documentation-for-tag tag))