diff options
author | Eric S. Raymond <esr@snark.thyrsus.com> | 1993-03-22 03:27:18 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@snark.thyrsus.com> | 1993-03-22 03:27:18 +0000 |
commit | e41b2db1da153e3ead4a01cb6e729cb99cad78ae (patch) | |
tree | b1a9c9c673da674b66521088f3247ac5a34f5a02 /lisp/progmodes | |
parent | 33d92c1f9de704cda9309731b4d6add46178aafc (diff) | |
download | emacs-e41b2db1da153e3ead4a01cb6e729cb99cad78ae.tar.gz |
Added or corrected Commentary sections
Diffstat (limited to 'lisp/progmodes')
-rw-r--r-- | lisp/progmodes/awk-mode.el | 9 | ||||
-rw-r--r-- | lisp/progmodes/c-mode.el | 11 | ||||
-rw-r--r-- | lisp/progmodes/cmacexp.el | 14 | ||||
-rw-r--r-- | lisp/progmodes/compile.el | 1 | ||||
-rw-r--r-- | lisp/progmodes/cplus-md.el | 7 | ||||
-rw-r--r-- | lisp/progmodes/fortran.el | 5 | ||||
-rw-r--r-- | lisp/progmodes/hideif.el | 18 | ||||
-rw-r--r-- | lisp/progmodes/icon.el | 6 | ||||
-rw-r--r-- | lisp/progmodes/make-mode.el | 8 | ||||
-rw-r--r-- | lisp/progmodes/modula2.el | 4 | ||||
-rw-r--r-- | lisp/progmodes/perl-mode.el | 4 | ||||
-rw-r--r-- | lisp/progmodes/prolog.el | 4 | ||||
-rw-r--r-- | lisp/progmodes/scheme.el | 4 |
13 files changed, 64 insertions, 31 deletions
diff --git a/lisp/progmodes/awk-mode.el b/lisp/progmodes/awk-mode.el index b4ec8ddfb0e..40300e9bc22 100644 --- a/lisp/progmodes/awk-mode.el +++ b/lisp/progmodes/awk-mode.el @@ -21,6 +21,11 @@ ;; along with GNU Emacs; see the file COPYING. If not, write to ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +;;; Commentary: + +;; Sets up C-mode with support for awk-style #-comments and a lightly +;; hacked syntax table. + ;;; Code: (defvar awk-mode-syntax-table nil @@ -83,8 +88,8 @@ with no args, if that value is non-nil." (setq comment-column 32) (make-local-variable 'comment-start-skip) (setq comment-start-skip "#+ *") - (make-local-variable 'comment-indent-hook) - (setq comment-indent-hook 'c-comment-indent) + (make-local-variable 'comment-indent-function) + (setq comment-indent-function 'c-comment-indent) (run-hooks 'awk-mode-hook)) ;;; awk-mode.el ends here diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el index 957db277012..a9f7e0cedef 100644 --- a/lisp/progmodes/c-mode.el +++ b/lisp/progmodes/c-mode.el @@ -20,6 +20,13 @@ ;; along with GNU Emacs; see the file COPYING. If not, write to ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +;;; Commentary: + +;; A smart editing mode for C code. It knows a lot about C syntax and tries +;; to position the curser according to C layout conventions. You can +;; change the details of the layout style with option variables. Load it +;; and do M-x describe-mode for details. + ;;; Code: (defvar c-mode-abbrev-table nil @@ -204,8 +211,8 @@ if that value is non-nil." (setq comment-column 32) (make-local-variable 'comment-start-skip) (setq comment-start-skip "/\\*+ *") - (make-local-variable 'comment-indent-hook) - (setq comment-indent-hook 'c-comment-indent) + (make-local-variable 'comment-indent-function) + (setq comment-indent-function 'c-comment-indent) (make-local-variable 'parse-sexp-ignore-comments) (setq parse-sexp-ignore-comments t) (run-hooks 'c-mode-hook)) diff --git a/lisp/progmodes/cmacexp.el b/lisp/progmodes/cmacexp.el index 144ac7ab56f..dd2c6df2c67 100644 --- a/lisp/progmodes/cmacexp.el +++ b/lisp/progmodes/cmacexp.el @@ -1,4 +1,4 @@ -;;; cmacexp.el --- C macro expansion +;;; cmacexp.el --- C preprocessor macro expansion ;; Copyright (C) 1988 Free Software Foundation, Inc. @@ -21,6 +21,18 @@ ;; along with GNU Emacs; see the file COPYING. If not, write to ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +;;; Commentary: + +;; This package gives you the ability to run the C macro preprocessor +;; on the current region, expanding macros within it. This can be useful +;; when you're not sure of the value or expansion of such macros and want +;; to make sure they're doing what you think they're doing. +;; +;; This package supports the following option variables: +;; +;; c-macro-preprocessor --- program to be used for macro expansion. +;; c-macro-options --- command-line options to pass it. + ;;; Code: (defvar c-macro-preprocessor "/lib/cpp" diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index cacea5194ee..eeee97c7231 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -5,6 +5,7 @@ ;; Author: Roland McGrath <roland@prep.ai.mit.edu> ;; Maintainer: FSF ;; Keywords: tools, processes +;; Info-Node: Emacs:Compilation ;; This file is part of GNU Emacs. diff --git a/lisp/progmodes/cplus-md.el b/lisp/progmodes/cplus-md.el index 45b325d6850..5689183a56a 100644 --- a/lisp/progmodes/cplus-md.el +++ b/lisp/progmodes/cplus-md.el @@ -21,9 +21,10 @@ ;;; Commentary: -;; 1987 Dave Detlefs (dld@cs.cmu.edu) -;; and Stewart Clamen (clamen@cs.cmu.edu). +;; 1987 Dave Detlefs <dld@cs.cmu.edu> +;; and Stewart Clamen <clamen@cs.cmu.edu>. ;; Done by fairly faithful modification of: + ;;; Change Log: ;; Feb, 1990 (Dave Detlefs, dld@cs.cmu.edu) @@ -219,7 +220,7 @@ no args if that value is non-nil." (set (make-local-variable 'comment-start) "// ") (set (make-local-variable 'comment-end) "") (set (make-local-variable 'comment-start-skip) "/\\*+ *\\|// *") - (set (make-local-variable 'comment-indent-hook) 'c++-comment-indent) + (set (make-local-variable 'comment-indent-function) 'c++-comment-indent) (set (make-local-variable 'paragraph-start) (concat "^$\\|" page-delimiter)) (set (make-local-variable 'paragraph-separate) paragraph-start) (set (make-local-variable 'paragraph-ignore-fill-prefix) t) diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index e4035940726..7f9aa77d9b4 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el @@ -354,8 +354,8 @@ with no args, if that value is non-nil." (setq fortran-break-before-delimiters t) (make-local-variable 'indent-line-function) (setq indent-line-function 'fortran-indent-line) - (make-local-variable 'comment-indent-hook) - (setq comment-indent-hook 'fortran-comment-hook) + (make-local-variable 'comment-indent-function) + (setq comment-indent-function 'fortran-comment-hook) (make-local-variable 'comment-line-start-skip) (setq comment-line-start-skip "^[Cc*]\\(\\([^ \t\n]\\)\\2\\2*\\)?[ \t]*\\|^#.*") @@ -475,7 +475,6 @@ Any other key combination is executed normally." "List the currently defined abbrevs in Fortran mode." (interactive) (message "Listing abbrev table...") - (require 'abbrevlist) (display-buffer (fortran-prepare-abbrev-list-buffer)) (message "Listing abbrev table...done")) diff --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el index efd866fb89f..4d8ecefe7bf 100644 --- a/lisp/progmodes/hideif.el +++ b/lisp/progmodes/hideif.el @@ -23,15 +23,6 @@ ;;; Commentary: -;;; Written by Brian Marick, at Gould, Computer Systems Division, Urbana IL. -;;; Extensively modified by Daniel LaLiberte (while at Gould). -;;; -;;; You may freely modify and distribute this, but keep a record -;;; of modifications and send comments to: -;;; liberte@a.cs.uiuc.edu or ihnp4!uiucdcs!liberte -;;; I will continue to upgrade hide-ifdef-mode -;;; with your contributions. - ;;; To initialize, toggle the hide-ifdef minor mode with ;;; ;;; M-x hide-ifdef-mode @@ -105,6 +96,15 @@ ;;; If you have minor-mode-alist in your mode line (the default) two labels ;;; may appear. "Ifdef" will appear when hide-ifdef-mode is active. "Hiding" ;;; will appear when text may be hidden ("hide-ifdef-hiding" is non-nil). +;;; +;;; Written by Brian Marick, at Gould, Computer Systems Division, Urbana IL. +;;; Extensively modified by Daniel LaLiberte (while at Gould). +;;; +;;; You may freely modify and distribute this, but keep a record +;;; of modifications and send comments to: +;;; liberte@a.cs.uiuc.edu or ihnp4!uiucdcs!liberte +;;; I will continue to upgrade hide-ifdef-mode +;;; with your contributions. ;;; Change Log: ;;; diff --git a/lisp/progmodes/icon.el b/lisp/progmodes/icon.el index 2a2f5a9dcd4..f64ed19dd37 100644 --- a/lisp/progmodes/icon.el +++ b/lisp/progmodes/icon.el @@ -24,6 +24,8 @@ ;;; Commentary: +;; A major mode for editing the Icon programming language. +;; ;; Note: use ;; (autoload 'icon-mode "icon" nil t) ;; (setq auto-mode-alist (cons '("\\.icn$" . icon-mode) auto-mode-alist)) @@ -146,8 +148,8 @@ with no args, if that value is non-nil." (setq comment-column 32) (make-local-variable 'comment-start-skip) (setq comment-start-skip "# *") - (make-local-variable 'comment-indent-hook) - (setq comment-indent-hook 'icon-comment-indent) + (make-local-variable 'comment-indent-function) + (setq comment-indent-function 'icon-comment-indent) (run-hooks 'icon-mode-hook)) ;; This is used by indent-for-comment to decide how much to diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index b8e19e48e19..4dcc45cee12 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -6,7 +6,7 @@ ;; Adapted-By: ESR ;; Keywords: unix, tools -;; $Id: makefile.el,v 1.7.1.17 1992/07/15 20:05:15 tom Exp tom $ +;; $Id: makefile.el,v 1.3 1992/07/22 02:13:37 eric Exp eric $ ;; This file is part of GNU Emacs. @@ -24,6 +24,12 @@ ;; along with GNU Emacs; see the file COPYING. If not, write to ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +;;; Commentary: + +;; A major mode for editing Makefiles. Hairy. Needs more documentation. +;; If you get familiar with it, please write some and send it to the GNU +;; Emacs maintainers. + ;;; Code: (provide 'makefile) diff --git a/lisp/progmodes/modula2.el b/lisp/progmodes/modula2.el index 2a84787c8d6..fd261980d80 100644 --- a/lisp/progmodes/modula2.el +++ b/lisp/progmodes/modula2.el @@ -134,8 +134,8 @@ followed by the first character of the construct. (setq comment-column 41) (make-local-variable 'comment-start-skip) (setq comment-start-skip "/\\*+ *") - (make-local-variable 'comment-indent-hook) - (setq comment-indent-hook 'c-comment-indent) + (make-local-variable 'comment-indent-function) + (setq comment-indent-function 'c-comment-indent) (make-local-variable 'parse-sexp-ignore-comments) (setq parse-sexp-ignore-comments t) (run-hooks 'm2-mode-hook)) diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index 0f0599bafe8..5afd03adc74 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el @@ -243,8 +243,8 @@ args, if that value is non-nil." (setq comment-column 32) (make-local-variable 'comment-start-skip) (setq comment-start-skip "\\(^\\|\\s-\\);?#+ *") - (make-local-variable 'comment-indent-hook) - (setq comment-indent-hook 'perl-comment-indent) + (make-local-variable 'comment-indent-function) + (setq comment-indent-function 'perl-comment-indent) (make-local-variable 'parse-sexp-ignore-comments) (setq parse-sexp-ignore-comments nil) (run-hooks 'perl-mode-hook)) diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el index 35472d9d587..d6b93b70a42 100644 --- a/lisp/progmodes/prolog.el +++ b/lisp/progmodes/prolog.el @@ -77,8 +77,8 @@ nil means send actual operating system end of file.") (setq comment-start-skip "%+ *") (make-local-variable 'comment-column) (setq comment-column 48) - (make-local-variable 'comment-indent-hook) - (setq comment-indent-hook 'prolog-comment-indent)) + (make-local-variable 'comment-indent-function) + (setq comment-indent-function 'prolog-comment-indent)) (defun prolog-mode-commands (map) (define-key map "\t" 'prolog-indent-line) diff --git a/lisp/progmodes/scheme.el b/lisp/progmodes/scheme.el index 3a470f9fa49..76190c948b4 100644 --- a/lisp/progmodes/scheme.el +++ b/lisp/progmodes/scheme.el @@ -104,8 +104,8 @@ (setq comment-start-skip ";+[ \t]*") (make-local-variable 'comment-column) (setq comment-column 40) - (make-local-variable 'comment-indent-hook) - (setq comment-indent-hook 'scheme-comment-indent) + (make-local-variable 'comment-indent-function) + (setq comment-indent-function 'scheme-comment-indent) (setq mode-line-process '("" scheme-mode-line-process))) (defvar scheme-mode-line-process "") |