From 443b3399a1efbea581694e856b67095e9dbaad51 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Tue, 12 Oct 2010 00:28:00 +0200 Subject: Menus: callers/callees active only if available --- elisp/geiser-mode.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'elisp/geiser-mode.el') 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) -- -- cgit v1.2.3