diff options
| author | Lars Ingebrigtsen | 2019-06-16 15:42:30 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-16 15:42:30 +0200 |
| commit | 59821926204e59d0db021591db4c05e3571d2465 (patch) | |
| tree | 9f23ba2e874c333da8c223aec6ae0e781372ab56 | |
| parent | 4f2f95049738be97df8647705a8fc05a029ed244 (diff) | |
| download | emacs-59821926204e59d0db021591db4c05e3571d2465.tar.gz emacs-59821926204e59d0db021591db4c05e3571d2465.zip | |
Avoid a compilation warning in srt-mode.el
* lisp/cedet/srecode/srt-mode.el (srecode-macro-help): Add hack to
avoid compilation warning about slot that has to exist at this
point.
| -rw-r--r-- | lisp/cedet/srecode/srt-mode.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/cedet/srecode/srt-mode.el b/lisp/cedet/srecode/srt-mode.el index 1b58ce326ce..660225925e0 100644 --- a/lisp/cedet/srecode/srt-mode.el +++ b/lisp/cedet/srecode/srt-mode.el | |||
| @@ -247,9 +247,10 @@ we can tell font lock about them.") | |||
| 247 | (let* ((C (car chl)) | 247 | (let* ((C (car chl)) |
| 248 | (name (symbol-name C)) | 248 | (name (symbol-name C)) |
| 249 | (key (when (slot-exists-p C 'key) | 249 | (key (when (slot-exists-p C 'key) |
| 250 | (oref C key))) | 250 | ;; This avoids a compilation warning, but we |
| 251 | (showexample t) | 251 | ;; know that 'key exists here. |
| 252 | ) | 252 | (slot-value C (intern "key" obarray)))) |
| 253 | (showexample t)) | ||
| 253 | (setq chl (cdr chl)) | 254 | (setq chl (cdr chl)) |
| 254 | (setq chl (append (eieio-class-children C) chl)) | 255 | (setq chl (append (eieio-class-children C) chl)) |
| 255 | 256 | ||