diff options
| author | Glenn Morris | 2007-11-03 03:03:31 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-11-03 03:03:31 +0000 |
| commit | 7a05f2bd9a18a88a7e91be2bb0193de63d58dcb5 (patch) | |
| tree | 8b836850a50431239c1769250e7225808ee0ba64 | |
| parent | 802054c96394bce2422b72d1876d4fd54c1c219a (diff) | |
| download | emacs-7a05f2bd9a18a88a7e91be2bb0193de63d58dcb5.tar.gz emacs-7a05f2bd9a18a88a7e91be2bb0193de63d58dcb5.zip | |
(fortran-mode-map): Don't bind M-;.
(fortran-mode): Set values for comment-region-function,
uncomment-region-function and comment-insert-comment-function.
(fortran-uncomment-region): New function.
| -rw-r--r-- | lisp/ChangeLog | 15 | ||||
| -rw-r--r-- | lisp/progmodes/fortran.el | 13 |
2 files changed, 27 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 28630124723..3a723a52b70 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2007-11-03 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * newcomment.el (comment-dwim): Call comment-insert-comment-function, | ||
| 4 | if defined, for blank lines. Doc fix. | ||
| 5 | |||
| 6 | * progmodes/fortran.el (fortran-mode-map): Don't bind M-;. | ||
| 7 | (fortran-mode): Set values for comment-region-function, | ||
| 8 | uncomment-region-function and comment-insert-comment-function. | ||
| 9 | (fortran-uncomment-region): New function. | ||
| 10 | |||
| 11 | * textmodes/nroff-mode.el (nroff-mode): Set | ||
| 12 | comment-insert-comment-function rather than indent-line-function. | ||
| 13 | (nroff-indent-line-function): Remove. | ||
| 14 | (nroff-insert-comment-function): New function. | ||
| 15 | |||
| 1 | 2007-11-02 Michael Kifer <kifer@cs.stonybrook.edu> | 16 | 2007-11-02 Michael Kifer <kifer@cs.stonybrook.edu> |
| 2 | 17 | ||
| 3 | * ediff-vers.el (ediff-vc-working-revision): Add a quote. | 18 | * ediff-vers.el (ediff-vc-working-revision): Add a quote. |
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index 023e285659a..01c4c09c954 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el | |||
| @@ -593,7 +593,8 @@ Used in the Fortran entry in `hs-special-modes-alist'.") | |||
| 593 | (let ((map (make-sparse-keymap))) | 593 | (let ((map (make-sparse-keymap))) |
| 594 | (define-key map ";" 'fortran-abbrev-start) | 594 | (define-key map ";" 'fortran-abbrev-start) |
| 595 | (define-key map "\C-c;" 'fortran-comment-region) | 595 | (define-key map "\C-c;" 'fortran-comment-region) |
| 596 | (define-key map "\M-;" 'fortran-indent-comment) | 596 | ;; The default comment-dwim does at least as much as this. |
| 597 | ;;; (define-key map "\M-;" 'fortran-indent-comment) | ||
| 597 | (define-key map "\M-\n" 'fortran-split-line) | 598 | (define-key map "\M-\n" 'fortran-split-line) |
| 598 | (define-key map "\M-\C-n" 'fortran-end-of-block) | 599 | (define-key map "\M-\C-n" 'fortran-end-of-block) |
| 599 | (define-key map "\M-\C-p" 'fortran-beginning-of-block) | 600 | (define-key map "\M-\C-p" 'fortran-beginning-of-block) |
| @@ -841,6 +842,11 @@ with no args, if that value is non-nil." | |||
| 841 | ;; (concat "\\(\\)\\(![ \t]*\\|" fortran-comment-line-start-skip "\\)") | 842 | ;; (concat "\\(\\)\\(![ \t]*\\|" fortran-comment-line-start-skip "\\)") |
| 842 | "\\(\\)\\(?:^[CcDd*]\\|!\\)\\(?:\\([^ \t\n]\\)\\2+\\)?[ \t]*") | 843 | "\\(\\)\\(?:^[CcDd*]\\|!\\)\\(?:\\([^ \t\n]\\)\\2+\\)?[ \t]*") |
| 843 | (set (make-local-variable 'comment-indent-function) 'fortran-comment-indent) | 844 | (set (make-local-variable 'comment-indent-function) 'fortran-comment-indent) |
| 845 | (set (make-local-variable 'comment-region-function) 'fortran-comment-region) | ||
| 846 | (set (make-local-variable 'uncomment-region-function) | ||
| 847 | 'fortran-uncomment-region) | ||
| 848 | (set (make-local-variable 'comment-insert-comment-function) | ||
| 849 | 'fortran-indent-comment) | ||
| 844 | (set (make-local-variable 'abbrev-all-caps) t) | 850 | (set (make-local-variable 'abbrev-all-caps) t) |
| 845 | (set (make-local-variable 'normal-auto-fill-function) 'fortran-auto-fill) | 851 | (set (make-local-variable 'normal-auto-fill-function) 'fortran-auto-fill) |
| 846 | (set (make-local-variable 'indent-tabs-mode) (fortran-analyze-file-format)) | 852 | (set (make-local-variable 'indent-tabs-mode) (fortran-analyze-file-format)) |
| @@ -981,6 +987,11 @@ With non-nil ARG, uncomments the region." | |||
| 981 | (set-marker end-region-mark nil) | 987 | (set-marker end-region-mark nil) |
| 982 | (set-marker save-point nil))) | 988 | (set-marker save-point nil))) |
| 983 | 989 | ||
| 990 | ;; uncomment-region calls this with 3 args. | ||
| 991 | (defun fortran-uncomment-region (start end &optional ignored) | ||
| 992 | "Uncomment every line in the region." | ||
| 993 | (fortran-comment-region start end t)) | ||
| 994 | |||
| 984 | 995 | ||
| 985 | (defun fortran-abbrev-start () | 996 | (defun fortran-abbrev-start () |
| 986 | "Typing ;\\[help-command] or ;? lists all the Fortran abbrevs. | 997 | "Typing ;\\[help-command] or ;? lists all the Fortran abbrevs. |