comparison lisp/progmodes/c-mode.el @ 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 70e05c1afba7
children 245837225a31
comparison
equal deleted inserted replaced
12269:8c44bbf1cafe 12270:0f080f07479d
81 '("Forward Conditional" . c-forward-conditional)) 81 '("Forward Conditional" . c-forward-conditional))
82 (define-key c-mode-map [menu-bar c backward-stmt] 82 (define-key c-mode-map [menu-bar c backward-stmt]
83 '("Backward Statement" . c-beginning-of-statement)) 83 '("Backward Statement" . c-beginning-of-statement))
84 (define-key c-mode-map [menu-bar c forward-stmt] 84 (define-key c-mode-map [menu-bar c forward-stmt]
85 '("Forward Statement" . c-end-of-statement)) 85 '("Forward Statement" . c-end-of-statement))
86
87 (put 'comment-region 'menu-enable 'mark-active)
88 (put 'c-macro-expand 'menu-enable 'mark-active)
86 89
87 (autoload 'c-macro-expand "cmacexp" 90 (autoload 'c-macro-expand "cmacexp"
88 "Display the result of expanding all C macros occurring in the region. 91 "Display the result of expanding all C macros occurring in the region.
89 The expansion is entirely correct because it uses the C preprocessor." 92 The expansion is entirely correct because it uses the C preprocessor."
90 t) 93 t)