diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2020-07-28 08:56:11 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2020-07-28 08:56:11 +0200 |
commit | b0d4b48317f400dc81a1989e2b92c35ba698cd03 (patch) | |
tree | 9a5e56cd1ee72ca578766eeea70b74fdc07afed7 /helm-types.el | |
parent | dfda01222534bb5a0000f0ea90c68225c00271ca (diff) |
Fix previous PR incompatible with emacs-26.3
Diffstat (limited to 'helm-types.el')
-rw-r--r-- | helm-types.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helm-types.el b/helm-types.el index 87be61d9..e2a02d44 100644 --- a/helm-types.el +++ b/helm-types.el @@ -36,7 +36,9 @@ (defclass helm-type-file (helm-source) () "A class to define helm type file.") -(eieio-declare-slots action) +;; Emacs-27+ only. FIXME Should be fixed in helm-source instead. +(when (fboundp 'eieio-declare-slots) + (eieio-declare-slots action)) (defmethod helm-source-get-action-from-type ((object helm-type-file)) (slot-value object 'action)) |