@@ -144,13 +144,14 @@ http://www.gnu.org/licenses/ for details.")
144144 (set (make-local-variable 'imenu-syntax-alist )
145145 '((" +-*/.<>=?!$%_&~^:" . " w" ))))
146146
147- (when (fboundp 'helm )
148- (require 'helm )
149147
150- (defun racket-helm-apropos-init ()
151- (with-current-buffer (helm-candidate-buffer 'global )
152- (dolist (elem (racket--eval/sexpr " ,apropos" ))
153- (insert (car elem) " \n " ))))
148+ (when (require 'helm nil 't )
149+
150+ (when (fboundp 'helm-candidate-buffer )
151+ (defun racket-helm-apropos-init ()
152+ (with-current-buffer (helm-candidate-buffer 'global )
153+ (dolist (elem (racket--eval/sexpr " ,apropos" ))
154+ (insert (car elem) " \n " )))))
154155
155156 (defun racket-helm-apropos-match-part (candidate )
156157 candidate)
@@ -166,10 +167,11 @@ http://www.gnu.org/licenses/ for details.")
166167 (match-part . racket-helm-apropos-match-part)
167168 (action . racket-helm-apropos-action)))
168169
169- (defun racket-helm-apropos ()
170- " Equivalent of helm-apropos but for the racket installed documentation"
171- (interactive )
172- (helm :sources 'helm-source-racket-apropos :buffer " *helm racket apropos*" )))
170+ (when (fboundp 'helm )
171+ (defun racket-helm-apropos ()
172+ " Equivalent of helm-apropos but for the racket installed documentation"
173+ (interactive )
174+ (helm :sources 'helm-source-racket-apropos :buffer " *helm racket apropos*" ))))
173175
174176;;;### autoload
175177(define-derived-mode racket-mode prog-mode
0 commit comments