Mercurial > emacs
comparison lisp/progmodes/fortran.el @ 99739:eea622f6a4fe
(fortran-mode-map): Add some menu :help.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 20 Nov 2008 02:44:38 +0000 |
parents | 5da85bdafc91 |
children | a9dc0e7c3f2b |
comparison
equal
deleted
inserted
replaced
99738:f84e322e603e | 99739:eea622f6a4fe |
---|---|
617 (define-key map "8" 'fortran-electric-line-number) | 617 (define-key map "8" 'fortran-electric-line-number) |
618 (define-key map "9" 'fortran-electric-line-number) | 618 (define-key map "9" 'fortran-electric-line-number) |
619 | 619 |
620 (easy-menu-define fortran-menu map "Menu for Fortran mode." | 620 (easy-menu-define fortran-menu map "Menu for Fortran mode." |
621 `("Fortran" | 621 `("Fortran" |
622 ["Manual" (info "(emacs)Fortran")] | 622 ["Manual" (info "(emacs)Fortran") :active t |
623 :help "Read the Emacs manual chapter on Fortran mode"] | |
623 ("Customization" | 624 ("Customization" |
624 ,(custom-menu-create 'fortran) | 625 ,(custom-menu-create 'fortran) |
625 ["Set" Custom-set t] | 626 ;; FIXME useless? |
626 ["Save" Custom-save t] | 627 ["Set" Custom-set :active t |
627 ["Reset to Current" Custom-reset-current t] | 628 :help "Set current value of all edited settings in the buffer"] |
628 ["Reset to Saved" Custom-reset-saved t] | 629 ["Save" Custom-save :active t |
629 ["Reset to Standard Settings" Custom-reset-standard t] | 630 :help "Set and save all edited settings"] |
631 ["Reset to Current" Custom-reset-current :active t | |
632 :help "Reset all edited settings to current"] | |
633 ["Reset to Saved" Custom-reset-saved :active t | |
634 :help "Reset all edited or set settings to saved"] | |
635 ["Reset to Standard Settings" Custom-reset-standard :active t | |
636 :help "Erase all cusomizations in buffer"] | |
630 ) | 637 ) |
631 "--" | 638 "--" |
632 ["Comment Region" fortran-comment-region mark-active] | 639 ["Comment Region" fortran-comment-region mark-active] |
633 ["Uncomment Region" | 640 ["Uncomment Region" |
634 (fortran-comment-region (region-beginning) (region-end) 1) | 641 (fortran-comment-region (region-beginning) (region-end) 1) |
635 mark-active] | 642 mark-active] |
636 ["Indent Region" indent-region mark-active] | 643 ["Indent Region" indent-region mark-active] |
637 ["Indent Subprogram" fortran-indent-subprogram t] | 644 ["Indent Subprogram" fortran-indent-subprogram t] |
638 "--" | 645 "--" |
639 ["Beginning of Subprogram" fortran-beginning-of-subprogram t] | 646 ["Beginning of Subprogram" fortran-beginning-of-subprogram :active t |
640 ["End of Subprogram" fortran-end-of-subprogram t] | 647 :help "Move point to the start of the current subprogram"] |
648 ["End of Subprogram" fortran-end-of-subprogram :active t | |
649 :help "Move point to the end of the current subprogram"] | |
641 ("Mark" | 650 ("Mark" |
651 :help "Mark a region of code" | |
642 ["Subprogram" mark-defun t] | 652 ["Subprogram" mark-defun t] |
643 ["IF Block" fortran-mark-if t] | 653 ["IF Block" fortran-mark-if t] |
644 ["DO Block" fortran-mark-do t] | 654 ["DO Block" fortran-mark-do t] |
645 ) | 655 ) |
646 ["Narrow to Subprogram" narrow-to-defun t] | 656 ["Narrow to Subprogram" narrow-to-defun t] |
647 ["Widen" widen t] | 657 ["Widen" widen t] |
648 "--" | 658 "--" |
649 ["Temporary column ruler" fortran-column-ruler t] | 659 ["Temporary Column Ruler" fortran-column-ruler :active t |
660 :help "Briefly display Fortran column numbers"] | |
650 ;; May not be '72', depending on fortran-line-length, but this | 661 ;; May not be '72', depending on fortran-line-length, but this |
651 ;; seems ok for a menu item. | 662 ;; seems ok for a menu item. |
652 ["72-column window" fortran-window-create t] | 663 ["72-column Window" fortran-window-create :active t |
664 :help "Set window width to Fortran line length"] | |
653 ["Full Width Window" | 665 ["Full Width Window" |
654 (enlarge-window-horizontally (- (frame-width) (window-width))) | 666 (enlarge-window-horizontally (- (frame-width) (window-width))) |
655 (not (window-full-width-p))] | 667 :active (not (window-full-width-p)) |
656 ["Momentary 72-column window" fortran-window-create-momentarily t] | 668 :help "Make window full width"] |
669 ["Momentary 72-Column Window" fortran-window-create-momentarily | |
670 :active t :help "Briefly set window width to Fortran line length"] | |
657 "--" | 671 "--" |
658 ["Break Line at Point" fortran-split-line t] | 672 ["Break Line at Point" fortran-split-line :active t |
659 ["Join Line" fortran-join-line t] | 673 :help "Break the current line at point"] |
660 ["Fill Statement/Comment" fill-paragraph t] | 674 ["Join Line" fortran-join-line :active t |
675 :help "Join the current line to the previous one"] | |
676 ["Fill Statement/Comment" fill-paragraph t] | |
661 "--" | 677 "--" |
662 ["Toggle auto-fill" auto-fill-mode :selected auto-fill-function | 678 ["Toggle Auto Fill" auto-fill-mode :selected auto-fill-function |
663 :style toggle] | 679 :style toggle |
664 ["Toggle abbrev-mode" abbrev-mode :selected abbrev-mode | 680 :help "Automatically fill text while typing in this buffer"] |
665 :style toggle] | 681 ["Toggle Abbrev Mode" abbrev-mode :selected abbrev-mode |
666 ["Add imenu Menu" imenu-add-menubar-index | 682 :style toggle :help "Expand abbreviations while typing in this buffer"] |
683 ["Add Imenu Menu" imenu-add-menubar-index | |
667 :active (not (lookup-key (current-local-map) [menu-bar index])) | 684 :active (not (lookup-key (current-local-map) [menu-bar index])) |
668 :included (fboundp 'imenu-add-to-menubar)])) | 685 :included (fboundp 'imenu-add-to-menubar) |
686 :help "Add an index menu to the menu-bar"])) | |
669 map) | 687 map) |
670 "Keymap used in Fortran mode.") | 688 "Keymap used in Fortran mode.") |
671 | 689 |
672 | 690 |
673 (define-abbrev-table 'fortran-mode-abbrev-table | 691 (define-abbrev-table 'fortran-mode-abbrev-table |