# HG changeset patch # User Dave Love # Date 899406738 0 # Node ID 54d865200af8cf9077fdb2d1331facb06bfe6c63 # Parent f0078b7750b737057584e8c1760147bd1d091bab (fortran-mode-map) : Tweak the imenu menu entry. diff -r f0078b7750b7 -r 54d865200af8 lisp/progmodes/fortran.el --- a/lisp/progmodes/fortran.el Thu Jul 02 17:47:49 1998 +0000 +++ b/lisp/progmodes/fortran.el Thu Jul 02 19:12:18 1998 +0000 @@ -405,8 +405,7 @@ (define-key fortran-mode-map "\C-c\C-p" 'fortran-previous-statement) (define-key fortran-mode-map "\C-c\C-n" 'fortran-next-statement) (define-key fortran-mode-map "\C-c\C-d" 'fortran-join-line) ; like f90 - (define-key fortran-mode-map - "\M-^" 'fortran-join-line) ; basically a delete-indentation equivalent + (define-key fortran-mode-map "\M-^" 'fortran-join-line) ; subvert delete-indentation (define-key fortran-mode-map "\C-xnd" 'fortran-narrow-to-subprogram) ;(define-key fortran-mode-map "\t" 'fortran-indent-line) (define-key fortran-mode-map "0" 'fortran-electric-line-number) @@ -457,10 +456,11 @@ ["Fill Statement/Comment" fill-paragraph t] "----" ["Add imenu menu" - (progn (imenu-add-to-menubar "Index") + (progn (imenu-add-menubar-index) ;; Prod menu bar to update -- is this the right way? (menu-bar-mode 1)) - t])))) + (not (and (boundp 'imenu--index-alist) + imenu--index-alist))])))) (defvar fortran-mode-abbrev-table nil) (if fortran-mode-abbrev-table