Skip to content

Commit

Permalink
don't attempt to call a symex function unless it's bound
Browse files Browse the repository at this point in the history
  • Loading branch information
countvajhula committed Jul 22, 2024
1 parent 02b01cc commit 3c9c466
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rigpa.el
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ and simply toggles whether the menu is visible or not."
;; (3) the level index
;; and eventually make these "coordinates" generic
(when (boundp 'symex-mode)
(dolist (mode-name (symex-get-lisp-modes))
(dolist (mode-name (and (boundp 'symex-get-lisp-modes)
(symex-get-lisp-modes))
(let ((mode-hook (intern (concat (symbol-name mode-name)
"-hook"))))
(add-hook mode-hook (lambda ()
Expand Down

0 comments on commit 3c9c466

Please sign in to comment.