diff options
| author | Glenn Morris | 2008-11-20 02:44:38 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-11-20 02:44:38 +0000 |
| commit | 9028691df64c9891746854ee13e1987f777787bc (patch) | |
| tree | fdd0175fc3f53773c7ca656b5a82bb13ad988230 | |
| parent | 112203942cb957d9cfed035442b3b51752b8350a (diff) | |
| download | emacs-9028691df64c9891746854ee13e1987f777787bc.tar.gz emacs-9028691df64c9891746854ee13e1987f777787bc.zip | |
(fortran-mode-map): Add some menu :help.
| -rw-r--r-- | lisp/progmodes/fortran.el | 60 |
1 files changed, 39 insertions, 21 deletions
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index bfc95479ced..ada2877ed3d 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el | |||
| @@ -619,14 +619,21 @@ Used in the Fortran entry in `hs-special-modes-alist'.") | |||
| 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] |
| @@ -636,9 +643,12 @@ Used in the Fortran entry in `hs-special-modes-alist'.") | |||
| 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] |
| @@ -646,26 +656,34 @@ Used in the Fortran entry in `hs-special-modes-alist'.") | |||
| 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 | ||