From: Jay Belanger Date: Thu, 15 Nov 2007 03:21:46 +0000 (+0000) Subject: (calc-menu): Make menu visible only in Calc buffer. X-Git-Tag: emacs-pretest-23.0.90~9748 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=011279a63c39c77a3f36ce34865f3302dff69b5a;p=emacs.git (calc-menu): Make menu visible only in Calc buffer. --- diff --git a/lisp/calc/calc-menu.el b/lisp/calc/calc-menu.el index 6cc356f87f8..1e8259bdf62 100644 --- a/lisp/calc/calc-menu.el +++ b/lisp/calc/calc-menu.el @@ -1098,6 +1098,7 @@ calc-mode-map "Menu for Calc." (list "Calc" + :visible '(eq major-mode 'calc-mode) calc-arithmetic-menu calc-scientific-function-menu calc-algebra-menu