]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid a compilation warning in srt-mode.el
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 16 Jun 2019 13:42:30 +0000 (15:42 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 16 Jun 2019 13:42:30 +0000 (15:42 +0200)
* lisp/cedet/srecode/srt-mode.el (srecode-macro-help): Add hack to
avoid compilation warning about slot that has to exist at this
point.

lisp/cedet/srecode/srt-mode.el

index 1b58ce326cecf2b0a95e57b38415317f0bdf044c..660225925e0460852c0af6ab637ac49db3cdd165 100644 (file)
@@ -247,9 +247,10 @@ we can tell font lock about them.")
        (let* ((C (car chl))
               (name (symbol-name C))
               (key (when (slot-exists-p C 'key)
-                     (oref C key)))
-              (showexample t)
-              )
+                      ;; This avoids a compilation warning, but we
+                      ;; know that 'key exists here.
+                     (slot-value C (intern "key" obarray))))
+              (showexample t))
          (setq chl (cdr chl))
          (setq chl (append (eieio-class-children C) chl))