aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet/srecode
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cedet/srecode')
-rw-r--r--lisp/cedet/srecode/srt-mode.el9
1 files changed, 3 insertions, 6 deletions
diff --git a/lisp/cedet/srecode/srt-mode.el b/lisp/cedet/srecode/srt-mode.el
index 0179929e7a9..5e7c7c111a3 100644
--- a/lisp/cedet/srecode/srt-mode.el
+++ b/lisp/cedet/srecode/srt-mode.el
@@ -229,6 +229,7 @@ we can tell font lock about them.")
229 (insert ee)))) 229 (insert ee))))
230 ) 230 )
231 231
232(eieio-declare-slots key)
232 233
233(defun srecode-macro-help () 234(defun srecode-macro-help ()
234 "Provide help for working with macros in a template." 235 "Provide help for working with macros in a template."
@@ -247,9 +248,7 @@ we can tell font lock about them.")
247 (let* ((C (car chl)) 248 (let* ((C (car chl))
248 (name (symbol-name C)) 249 (name (symbol-name C))
249 (key (when (slot-exists-p C 'key) 250 (key (when (slot-exists-p C 'key)
250 ;; This avoids a compilation warning, but we 251 (oref C key)))
251 ;; know that 'key exists here.
252 (slot-value C (intern "key" obarray))))
253 (showexample t)) 252 (showexample t))
254 (setq chl (cdr chl)) 253 (setq chl (cdr chl))
255 (setq chl (append (eieio-class-children C) chl)) 254 (setq chl (append (eieio-class-children C) chl))
@@ -512,9 +511,7 @@ section or ? for an ask variable."
512 ":") 511 ":")
513 nil))) 512 nil)))
514 (key (when (slot-exists-p inserter 'key) 513 (key (when (slot-exists-p inserter 'key)
515 ;; This avoids a compilation warning, but we 514 (oref inserter key))))
516 ;; know that 'key exists here.
517 (slot-value inserter (intern "key" obarray)))))
518 (cond ((null key) 515 (cond ((null key)
519 ;; A plain variable 516 ;; A plain variable
520 (cons nil base)) 517 (cons nil base))