()
"Class to mix into a project to support java.")
+(eieio-declare-slots classpath)
+
(cl-defmethod ede-java-classpath ((proj ede-project-with-config-java))
"Return the classpath for this project."
;; The `classpath' slot only exists in the Java parts of cedet, and
;; those have not been merged into Emacs. Suppress the warning
;; about the unknown slot by using `intern'.
- (slot-value (ede-config-get-configuration proj)
- (intern "classpath" obarray)))
+ (oref (ede-config-get-configuration proj) classpath))
;; Local variables:
;; generated-autoload-file: "loaddefs.el"
(insert ee))))
)
+(eieio-declare-slots key)
(defun srecode-macro-help ()
"Provide help for working with macros in a template."
(let* ((C (car chl))
(name (symbol-name C))
(key (when (slot-exists-p C 'key)
- ;; This avoids a compilation warning, but we
- ;; know that 'key exists here.
- (slot-value C (intern "key" obarray))))
+ (oref C key)))
(showexample t))
(setq chl (cdr chl))
(setq chl (append (eieio-class-children C) chl))
":")
nil)))
(key (when (slot-exists-p inserter 'key)
- ;; This avoids a compilation warning, but we
- ;; know that 'key exists here.
- (slot-value inserter (intern "key" obarray)))))
+ (oref inserter key))))
(cond ((null key)
;; A plain variable
(cons nil base))