summaryrefslogtreecommitdiff
path: root/elisp/geiser-mode.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-10-12 00:28:00 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-10-12 00:28:00 +0200
commitec03576e168be91d74ef38f15ceccddf2aa8c891 (patch)
tree0792443c4f3d8fe5fc47faf220bfe2c97066eb64 /elisp/geiser-mode.el
parent11bde7b13d2152d3d5ee6d70bee1b8743528b89d (diff)
downloadgeiser-ec03576e168be91d74ef38f15ceccddf2aa8c891.tar.gz
geiser-ec03576e168be91d74ef38f15ceccddf2aa8c891.tar.bz2
Menus: callers/callees active only if available
Diffstat (limited to 'elisp/geiser-mode.el')
-rw-r--r--elisp/geiser-mode.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el
index dc154bc..e9e5563 100644
--- a/elisp/geiser-mode.el
+++ b/elisp/geiser-mode.el
@@ -259,8 +259,10 @@ interacting with the Geiser REPL is at your disposal.
geiser-completion--complete-module)
("Edit module" ("\C-c\C-e\C-m" "\C-c\C-em") geiser-edit-module)
--
- ("Callers" ((kbd "C-c <")) geiser-xref-callers)
- ("Callees" ((kbd "C-c >")) geiser-xref-callees)
+ ("Callers" ((kbd "C-c <")) geiser-xref-callers
+ :enable (and (geiser-eval--supported-p 'callers) (symbol-at-point)))
+ ("Callees" ((kbd "C-c >")) geiser-xref-callees
+ :enable (and (geiser-eval--supported-p 'callees) (symbol-at-point)))
--
(mode "Smart TAB mode" nil geiser-smart-tab-mode)
--