changeset 12270:0f080f07479d

Put menu-enable mark-active on relevant items.
author Simon Marshall <simon@gnu.org>
date Fri, 16 Jun 1995 12:30:26 +0000
parents 8c44bbf1cafe
children 245837225a31
files lisp/progmodes/c-mode.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/c-mode.el	Fri Jun 16 08:51:48 1995 +0000
+++ b/lisp/progmodes/c-mode.el	Fri Jun 16 12:30:26 1995 +0000
@@ -84,6 +84,9 @@
 (define-key c-mode-map [menu-bar c forward-stmt]
   '("Forward Statement" . c-end-of-statement))
 
+(put 'comment-region 'menu-enable 'mark-active)
+(put 'c-macro-expand 'menu-enable 'mark-active)
+
 (autoload 'c-macro-expand "cmacexp"
   "Display the result of expanding all C macros occurring in the region.
 The expansion is entirely correct because it uses the C preprocessor."