]> git.eshelyaron.com Git - emacs.git/commitdiff
Put menu-enable mark-active on relevant items.
authorSimon Marshall <simon@gnu.org>
Fri, 16 Jun 1995 12:30:26 +0000 (12:30 +0000)
committerSimon Marshall <simon@gnu.org>
Fri, 16 Jun 1995 12:30:26 +0000 (12:30 +0000)
lisp/progmodes/c-mode.el

index 959bb9f06b133de38f825dc2b4abb7c281c40919..ff4a8e465c79157deacabed2632df880a34d724c 100644 (file)
@@ -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."