From 8fbfe89f860203f767ea902dc3803a540e5702ef Mon Sep 17 00:00:00 2001 From: Dave Love Date: Thu, 2 Jul 1998 19:12:18 +0000 Subject: [PATCH] (fortran-mode-map) : Tweak the imenu menu entry. --- lisp/progmodes/fortran.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index ea537f011d8..4b54bb16ed7 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el @@ -405,8 +405,7 @@ format style.") (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 @@ format style.") ["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 -- 2.39.2