diff options
| author | Eric S. Raymond | 1993-03-22 03:27:18 +0000 |
|---|---|---|
| committer | Eric S. Raymond | 1993-03-22 03:27:18 +0000 |
| commit | e41b2db1da153e3ead4a01cb6e729cb99cad78ae (patch) | |
| tree | b1a9c9c673da674b66521088f3247ac5a34f5a02 | |
| parent | 33d92c1f9de704cda9309731b4d6add46178aafc (diff) | |
| download | emacs-e41b2db1da153e3ead4a01cb6e729cb99cad78ae.tar.gz emacs-e41b2db1da153e3ead4a01cb6e729cb99cad78ae.zip | |
Added or corrected Commentary sections
64 files changed, 521 insertions, 270 deletions
diff --git a/lisp/abbrev.el b/lisp/abbrev.el index 3e24f0f6388..39323b938b4 100644 --- a/lisp/abbrev.el +++ b/lisp/abbrev.el | |||
| @@ -20,6 +20,10 @@ | |||
| 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 22 | 22 | ||
| 23 | ;;; Commentary: | ||
| 24 | |||
| 25 | ;; This facility is documented in the Emacs Manual. | ||
| 26 | |||
| 23 | ;;; Code: | 27 | ;;; Code: |
| 24 | 28 | ||
| 25 | (defconst only-global-abbrevs nil "\ | 29 | (defconst only-global-abbrevs nil "\ |
diff --git a/lisp/ada.el b/lisp/ada.el index 6cb305c3425..8ee750fc6c0 100644 --- a/lisp/ada.el +++ b/lisp/ada.el | |||
| @@ -166,8 +166,8 @@ Variable `ada-indent' controls the number of spaces for indent/undent." | |||
| 166 | (setq comment-column 41) | 166 | (setq comment-column 41) |
| 167 | (make-local-variable 'comment-start-skip) | 167 | (make-local-variable 'comment-start-skip) |
| 168 | (setq comment-start-skip "--+ *") | 168 | (setq comment-start-skip "--+ *") |
| 169 | (make-local-variable 'comment-indent-hook) | 169 | (make-local-variable 'comment-indent-function) |
| 170 | (setq comment-indent-hook 'c-comment-indent) | 170 | (setq comment-indent-function 'c-comment-indent) |
| 171 | (make-local-variable 'parse-sexp-ignore-comments) | 171 | (make-local-variable 'parse-sexp-ignore-comments) |
| 172 | (setq parse-sexp-ignore-comments t) | 172 | (setq parse-sexp-ignore-comments t) |
| 173 | (run-hooks 'ada-mode-hook)) | 173 | (run-hooks 'ada-mode-hook)) |
diff --git a/lisp/add-log.el b/lisp/add-log.el index ab7760c9c21..7b3b6d26c67 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -20,6 +20,10 @@ | |||
| 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 22 | 22 | ||
| 23 | ;;; Commentary: | ||
| 24 | |||
| 25 | ;; This facility is documented in the Emacs Manual. | ||
| 26 | |||
| 23 | ;;; Code: | 27 | ;;; Code: |
| 24 | 28 | ||
| 25 | ;;;###autoload | 29 | ;;;###autoload |
diff --git a/lisp/array.el b/lisp/array.el index 1c86c11a6b3..c17aae26f4a 100644 --- a/lisp/array.el +++ b/lisp/array.el | |||
| @@ -24,14 +24,18 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Commentary: | 25 | ;;; Commentary: |
| 26 | 26 | ||
| 27 | ;;; Written by dmb%morgoth@harvard.harvard.edu (address is old) | 27 | ;; Commands for editing a buffer interpreted as a rectangular array |
| 28 | ;;; (David M. Brown at Goldberg-Zoino & Associates, Inc.) | 28 | ;; or matrix of whitespace-separated strings. You specify the array |
| 29 | ;;; Thanks to cph@kleph.ai.mit.edu for assistance | 29 | ;; dimensions and some other parameters at startup time. |
| 30 | 30 | ||
| 31 | ;;; To do: | 31 | ;; Written by dmb%morgoth@harvard.harvard.edu (address is old) |
| 32 | ;;; Smooth initialization process by grokking local variables list | 32 | ;; (David M. Brown at Goldberg-Zoino & Associates, Inc.) |
| 33 | ;;; at end of buffer or parsing buffer using whitespace as delimiters. | 33 | ;; Thanks to cph@kleph.ai.mit.edu for assistance |
| 34 | ;;; Make 'array-copy-column-right faster. | 34 | |
| 35 | ;; To do: | ||
| 36 | ;; Smooth initialization process by grokking local variables list | ||
| 37 | ;; at end of buffer or parsing buffer using whitespace as delimiters. | ||
| 38 | ;; Make 'array-copy-column-right faster. | ||
| 35 | 39 | ||
| 36 | 40 | ||
| 37 | ;;; Code: | 41 | ;;; Code: |
diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el index 1046aa65904..9851ded2cdb 100644 --- a/lisp/autoinsert.el +++ b/lisp/autoinsert.el | |||
| @@ -49,8 +49,6 @@ | |||
| 49 | ;;; Duke University Medical Center | 49 | ;;; Duke University Medical Center |
| 50 | ;;; Durham, NC 27710 | 50 | ;;; Durham, NC 27710 |
| 51 | ;;; (crm@cs.duke.edu,mcnc!duke!crm) | 51 | ;;; (crm@cs.duke.edu,mcnc!duke!crm) |
| 52 | ;;; | ||
| 53 | ;;; Date: Fri Jul 1 16:15:31 EDT 1988 | ||
| 54 | 52 | ||
| 55 | ;;; Code: | 53 | ;;; Code: |
| 56 | 54 | ||
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el index 3e509b5198f..6e70146086e 100644 --- a/lisp/buff-menu.el +++ b/lisp/buff-menu.el | |||
| @@ -20,6 +20,13 @@ | |||
| 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 22 | 22 | ||
| 23 | ;;; Commentary: | ||
| 24 | |||
| 25 | ;; Edit, delete, or change attributes of all currently active Emacs | ||
| 26 | ;; buffers from a list summarizing thir state. A good way to browse | ||
| 27 | ;; any special or scratch buffers you have loaded, since you can't find | ||
| 28 | ;; them by filename. | ||
| 29 | |||
| 23 | ;;; Code: | 30 | ;;; Code: |
| 24 | 31 | ||
| 25 | ; Put buffer *Buffer List* into proper mode right away | 32 | ; Put buffer *Buffer List* into proper mode right away |
diff --git a/lisp/cmulisp.el b/lisp/cmulisp.el index b247d79718b..3557be394b5 100644 --- a/lisp/cmulisp.el +++ b/lisp/cmulisp.el | |||
| @@ -72,62 +72,65 @@ | |||
| 72 | ;; '((lambda () | 72 | ;; '((lambda () |
| 73 | ;; (define-key cmulisp-mode-map "\C-ct" 'favorite-cmd)))) | 73 | ;; (define-key cmulisp-mode-map "\C-ct" 'favorite-cmd)))) |
| 74 | 74 | ||
| 75 | 75 | ;; Brief Command Documentation: | |
| 76 | ;;; Brief Command Documentation: | 76 | ;;============================================================================ |
| 77 | ;;;============================================================================ | 77 | ;; Comint Mode Commands: (common to cmulisp and all comint-derived modes) |
| 78 | ;;; Comint Mode Commands: (common to cmulisp and all comint-derived modes) | 78 | ;; |
| 79 | ;;; | 79 | ;; m-p comint-previous-input Cycle backwards in input history |
| 80 | ;;; m-p comint-previous-input Cycle backwards in input history | 80 | ;; m-n comint-next-input Cycle forwards |
| 81 | ;;; m-n comint-next-input Cycle forwards | 81 | ;; m-c-r comint-previous-input-matching Search backwards in input history |
| 82 | ;;; m-c-r comint-previous-input-matching Search backwards in input history | 82 | ;; return comint-send-input |
| 83 | ;;; return comint-send-input | 83 | ;; c-a comint-bol Beginning of line; skip prompt. |
| 84 | ;;; c-a comint-bol Beginning of line; skip prompt. | 84 | ;; c-d comint-delchar-or-maybe-eof Delete char unless at end of buff. |
| 85 | ;;; c-d comint-delchar-or-maybe-eof Delete char unless at end of buff. | 85 | ;; c-c c-u comint-kill-input ^u |
| 86 | ;;; c-c c-u comint-kill-input ^u | 86 | ;; c-c c-w backward-kill-word ^w |
| 87 | ;;; c-c c-w backward-kill-word ^w | 87 | ;; c-c c-c comint-interrupt-subjob ^c |
| 88 | ;;; c-c c-c comint-interrupt-subjob ^c | 88 | ;; c-c c-z comint-stop-subjob ^z |
| 89 | ;;; c-c c-z comint-stop-subjob ^z | 89 | ;; c-c c-\ comint-quit-subjob ^\ |
| 90 | ;;; c-c c-\ comint-quit-subjob ^\ | 90 | ;; c-c c-o comint-kill-output Delete last batch of process output |
| 91 | ;;; c-c c-o comint-kill-output Delete last batch of process output | 91 | ;; c-c c-r comint-show-output Show last batch of process output |
| 92 | ;;; c-c c-r comint-show-output Show last batch of process output | 92 | ;; send-invisible Read line w/o echo & send to proc |
| 93 | ;;; send-invisible Read line w/o echo & send to proc | 93 | ;; comint-continue-subjob Useful if you accidentally suspend |
| 94 | ;;; comint-continue-subjob Useful if you accidentally suspend | 94 | ;; top-level job. |
| 95 | ;;; top-level job. | 95 | ;; comint-mode-hook is the comint mode hook. |
| 96 | ;;; comint-mode-hook is the comint mode hook. | 96 | |
| 97 | 97 | ;; CMU Lisp Mode Commands: | |
| 98 | ;;; CMU Lisp Mode Commands: | 98 | ;; c-m-x lisp-send-defun This binding is a gnu convention. |
| 99 | ;;; c-m-x lisp-send-defun This binding is a gnu convention. | 99 | ;; c-c c-l lisp-load-file Prompt for file name; tell Lisp to load it. |
| 100 | ;;; c-c c-l lisp-load-file Prompt for file name; tell Lisp to load it. | 100 | ;; c-c c-k lisp-compile-file Prompt for file name; tell Lisp to kompile it. |
| 101 | ;;; c-c c-k lisp-compile-file Prompt for file name; tell Lisp to kompile it. | 101 | ;; Filename completion is available, of course. |
| 102 | ;;; Filename completion is available, of course. | 102 | ;; |
| 103 | ;;; | 103 | ;; Additionally, these commands are added to the key bindings of Lisp mode: |
| 104 | ;;; Additionally, these commands are added to the key bindings of Lisp mode: | 104 | ;; c-m-x lisp-eval-defun This binding is a gnu convention. |
| 105 | ;;; c-m-x lisp-eval-defun This binding is a gnu convention. | 105 | ;; c-c c-e lisp-eval-defun Send the current defun to Lisp process. |
| 106 | ;;; c-c c-e lisp-eval-defun Send the current defun to Lisp process. | 106 | ;; c-x c-e lisp-eval-last-sexp Send the previous sexp to Lisp process. |
| 107 | ;;; c-x c-e lisp-eval-last-sexp Send the previous sexp to Lisp process. | 107 | ;; c-c c-r lisp-eval-region Send the current region to Lisp process. |
| 108 | ;;; c-c c-r lisp-eval-region Send the current region to Lisp process. | 108 | ;; c-c c-c lisp-compile-defun Compile the current defun in Lisp process. |
| 109 | ;;; c-c c-c lisp-compile-defun Compile the current defun in Lisp process. | 109 | ;; c-c c-z switch-to-lisp Switch to the Lisp process buffer. |
| 110 | ;;; c-c c-z switch-to-lisp Switch to the Lisp process buffer. | 110 | ;; c-c c-l lisp-load-file (See above. In a Lisp file buffer, default |
| 111 | ;;; c-c c-l lisp-load-file (See above. In a Lisp file buffer, default | 111 | ;; c-c c-k lisp-compile-file is to load/compile the current file.) |
| 112 | ;;; c-c c-k lisp-compile-file is to load/compile the current file.) | 112 | ;; c-c c-d lisp-describe-sym Query Lisp for a symbol's description. |
| 113 | ;;; c-c c-d lisp-describe-sym Query Lisp for a symbol's description. | 113 | ;; c-c c-a lisp-show-arglist Query Lisp for function's arglist. |
| 114 | ;;; c-c c-a lisp-show-arglist Query Lisp for function's arglist. | 114 | ;; c-c c-f lisp-show-function-documentation Query Lisp for a function's doc. |
| 115 | ;;; c-c c-f lisp-show-function-documentation Query Lisp for a function's doc. | 115 | ;; c-c c-v lisp-show-variable-documentation Query Lisp for a variable's doc. |
| 116 | ;;; c-c c-v lisp-show-variable-documentation Query Lisp for a variable's doc. | 116 | |
| 117 | 117 | ;; cmulisp Fires up the Lisp process. | |
| 118 | ;;; cmulisp Fires up the Lisp process. | 118 | ;; lisp-compile-region Compile all forms in the current region. |
| 119 | ;;; lisp-compile-region Compile all forms in the current region. | 119 | ;; |
| 120 | ;;; | 120 | ;; CMU Lisp Mode Variables: |
| 121 | ;;; CMU Lisp Mode Variables: | 121 | ;; cmulisp-filter-regexp Match this => don't get saved on input hist |
| 122 | ;;; cmulisp-filter-regexp Match this => don't get saved on input hist | 122 | ;; inferior-lisp-program Name of Lisp program run-lisp executes |
| 123 | ;;; inferior-lisp-program Name of Lisp program run-lisp executes | 123 | ;; inferior-lisp-load-command Customises lisp-load-file |
| 124 | ;;; inferior-lisp-load-command Customises lisp-load-file | 124 | ;; cmulisp-mode-hook |
| 125 | ;;; cmulisp-mode-hook | 125 | ;; inferior-lisp-prompt Initialises comint-prompt-regexp. |
| 126 | ;;; inferior-lisp-prompt Initialises comint-prompt-regexp. | 126 | ;; Backwards compatibility. |
| 127 | ;;; Backwards compatibility. | 127 | ;; lisp-source-modes Anything loaded into a buffer that's in |
| 128 | ;;; lisp-source-modes Anything loaded into a buffer that's in | 128 | ;; one of these modes is considered Lisp |
| 129 | ;;; one of these modes is considered Lisp | 129 | ;; source by lisp-load/compile-file. |
| 130 | ;;; source by lisp-load/compile-file. | 130 | |
| 131 | ;;; Code: | ||
| 132 | |||
| 133 | (require 'comint) | ||
| 131 | 134 | ||
| 132 | ;;; Read the rest of this file for more information. | 135 | ;;; Read the rest of this file for more information. |
| 133 | 136 | ||
diff --git a/lisp/cmuscheme.el b/lisp/cmuscheme.el index 6000d421212..982a0c3dc10 100644 --- a/lisp/cmuscheme.el +++ b/lisp/cmuscheme.el | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | ;;; cmuscheme.el --- Scheme process in a buffer. Adapted from tea.el. | 1 | ;;; cmuscheme.el --- Scheme process in a buffer. Adapted from tea.el. |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 1988 Free Software Foundation, Inc. | 3 | |
| 4 | ;; Copyright (C) 1988 Free Software Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | ;; Author: Olin Shivers <olin.shivers@cs.cmu.edu> | 6 | ;; Author: Olin Shivers <olin.shivers@cs.cmu.edu> |
| 6 | ;; Keywords: processes, lisp | 7 | ;; Keywords: processes, lisp |
diff --git a/lisp/comint.el b/lisp/comint.el index 80abf0cd752..bc737c8a20d 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | ;;; comint.el --- general command interpreter in a window stuff | 1 | ;;; comint.el --- general command interpreter in a window stuff |
| 2 | |||
| 2 | ;; Copyright (C) 1988, 1990, 1992, 1993 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1988, 1990, 1992, 1993 Free Software Foundation, Inc. |
| 3 | 4 | ||
| 4 | ;; Author: Olin Shivers <shivers@cs.cmu.edu> | 5 | ;; Author: Olin Shivers <shivers@cs.cmu.edu> |
diff --git a/lisp/compare-w.el b/lisp/compare-w.el index d4d6a4d746e..b7df1ad31b4 100644 --- a/lisp/compare-w.el +++ b/lisp/compare-w.el | |||
| @@ -20,6 +20,13 @@ | |||
| 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 22 | 22 | ||
| 23 | ;;; Commentary: | ||
| 24 | |||
| 25 | ;; This package provides one entry point, compare-windows. It compares | ||
| 26 | ;; text starting from point in two adjacent windows, advancing point | ||
| 27 | ;; until it finds a difference. Option variables permit you to ignore | ||
| 28 | ;; whitespace differences, or case differences, or both. | ||
| 29 | |||
| 23 | ;;; Code: | 30 | ;;; Code: |
| 24 | 31 | ||
| 25 | (defvar compare-windows-whitespace " \t\n" | 32 | (defvar compare-windows-whitespace " \t\n" |
diff --git a/lisp/diff.el b/lisp/diff.el index cd85ec29d10..bb33689c0f9 100644 --- a/lisp/diff.el +++ b/lisp/diff.el | |||
| @@ -20,6 +20,12 @@ | |||
| 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 22 | 22 | ||
| 23 | ;;; Commentary: | ||
| 24 | |||
| 25 | ;; This package helps you explore differences between files, using the | ||
| 26 | ;; UNIX command diff(1). The commands are `diff' and `diff-backup'. | ||
| 27 | ;; You can specify options with `diff-switches'. | ||
| 28 | |||
| 23 | ;;; Code: | 29 | ;;; Code: |
| 24 | 30 | ||
| 25 | (require 'compile) | 31 | (require 'compile) |
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 0af40a03c54..3cff0fc3ea7 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -22,6 +22,10 @@ | |||
| 22 | 22 | ||
| 23 | ;;; Commentary: | 23 | ;;; Commentary: |
| 24 | 24 | ||
| 25 | ;; The parts of dired mode not normally used. This is a space-saving hack | ||
| 26 | ;; to avoid having to load a large mode when all that's wanted are a few | ||
| 27 | ;; functions. | ||
| 28 | |||
| 25 | ;; Rewritten in 1990/1991 to add tree features, file marking and | 29 | ;; Rewritten in 1990/1991 to add tree features, file marking and |
| 26 | ;; sorting by Sebastian Kremer <sk@thp.uni-koeln.de>. | 30 | ;; sorting by Sebastian Kremer <sk@thp.uni-koeln.de>. |
| 27 | ;; Finished up by rms in 1992. | 31 | ;; Finished up by rms in 1992. |
diff --git a/lisp/dired.el b/lisp/dired.el index e68b58891ec..859f8e108ba 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -23,6 +23,9 @@ | |||
| 23 | 23 | ||
| 24 | ;;; Commentary: | 24 | ;;; Commentary: |
| 25 | 25 | ||
| 26 | ;; This is a major mode for directory browsing and editing. It is | ||
| 27 | ;; documented in the Emacs manual. | ||
| 28 | |||
| 26 | ;; Rewritten in 1990/1991 to add tree features, file marking and | 29 | ;; Rewritten in 1990/1991 to add tree features, file marking and |
| 27 | ;; sorting by Sebastian Kremer <sk@thp.uni-koeln.de>. | 30 | ;; sorting by Sebastian Kremer <sk@thp.uni-koeln.de>. |
| 28 | ;; Finished up by rms in 1992. | 31 | ;; Finished up by rms in 1992. |
diff --git a/lisp/ebuff-menu.el b/lisp/ebuff-menu.el index 3e92bfdb387..eedc984df06 100644 --- a/lisp/ebuff-menu.el +++ b/lisp/ebuff-menu.el | |||
| @@ -22,8 +22,9 @@ | |||
| 22 | 22 | ||
| 23 | ;;; Commentary: | 23 | ;;; Commentary: |
| 24 | 24 | ||
| 25 | ;; who says one can't have typeout windows in gnu emacs? | 25 | ;; Who says one can't have typeout windows in GNU Emacs? The entry |
| 26 | ;; like ^r select buffer from its emacs lunar or tmacs libraries. | 26 | ;; point, `electric-buffer-list' works like ^r select buffer from the |
| 27 | ;; ITS Emacs lunar or tmacs libraries. | ||
| 27 | 28 | ||
| 28 | ;;; Code: | 29 | ;;; Code: |
| 29 | 30 | ||
diff --git a/lisp/ehelp.el b/lisp/ehelp.el index e73fe74a124..baa2a052181 100644 --- a/lisp/ehelp.el +++ b/lisp/ehelp.el | |||
| @@ -21,6 +21,14 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; This package provides a pre-packaged `Electric Help Mode' for | ||
| 27 | ;; browsing on-line help screens. There is one entry point, | ||
| 28 | ;; `with-electric-help'; All you have to give it is a no-argument | ||
| 29 | ;; function that generates the actual text of the help into the urrent | ||
| 30 | ;; buffer. | ||
| 31 | |||
| 24 | ;;; Code: | 32 | ;;; Code: |
| 25 | 33 | ||
| 26 | (require 'electric) | 34 | (require 'electric) |
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 257aaed9769..2b02f1f1e41 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el | |||
| @@ -21,6 +21,13 @@ | |||
| 21 | ;;; 02139, USA. | 21 | ;;; 02139, USA. |
| 22 | ;;; | 22 | ;;; |
| 23 | 23 | ||
| 24 | ;;; Commentary;: | ||
| 25 | |||
| 26 | ;; This code helps GNU Emacs maintainers keep the autoload.el file up to | ||
| 27 | ;; date. It interprets magic cookies of the form ";;;###autoload" in | ||
| 28 | ;; lisp source files in various useful ways. To learn more, read the | ||
| 29 | ;; source; if you're going to use this, you'd better be able to. | ||
| 30 | |||
| 24 | ;;; Code: | 31 | ;;; Code: |
| 25 | 32 | ||
| 26 | (defun make-autoload (form file) | 33 | (defun make-autoload (form file) |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 921737df870..ab40f109e93 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -28,6 +28,12 @@ | |||
| 28 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 28 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 29 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 29 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 30 | 30 | ||
| 31 | ;;; Commentary: | ||
| 32 | |||
| 33 | ;; The Emacs Lisp byte compiler. This crunches lisp source into a sort | ||
| 34 | ;; of p-code which takes up less space and can be interpreted faster. | ||
| 35 | ;; The user entry points are byte-compile-file and byte-recompile-directory. | ||
| 36 | |||
| 31 | ;;; Code: | 37 | ;;; Code: |
| 32 | 38 | ||
| 33 | ;;; ======================================================================== | 39 | ;;; ======================================================================== |
diff --git a/lisp/emacs-lisp/cl-indent.el b/lisp/emacs-lisp/cl-indent.el index 537b16e6916..f063f92ee7a 100644 --- a/lisp/emacs-lisp/cl-indent.el +++ b/lisp/emacs-lisp/cl-indent.el | |||
| @@ -1,12 +1,12 @@ | |||
| 1 | ;;; cl-indent.el --- enhanced lisp-indent mode | 1 | ;;; cl-indent.el --- enhanced lisp-indent mode |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1987 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1987 Free Software Foundation, Inc. |
| 4 | ;; Written by Richard Mlynarik July 1987 | 4 | |
| 5 | ;; Author: Richard Mlynark <mly@eddie.mit.edu> | 5 | ;; Author: Richard Mlynark <mly@eddie.mit.edu> |
| 6 | ;; Created: July 1987 | ||
| 6 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| 7 | ;; Keywords: lisp, tools | 8 | ;; Keywords: lisp, tools |
| 8 | 9 | ||
| 9 | |||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| 12 | ;; GNU Emacs is free software; you can redistribute it and/or modify | 12 | ;; GNU Emacs is free software; you can redistribute it and/or modify |
| @@ -25,6 +25,12 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Commentary: | 26 | ;;; Commentary: |
| 27 | 27 | ||
| 28 | ;; This package supplies a single entry point, common-lisp-indent-function, | ||
| 29 | ;; which performs indentation in the preferred style for Common Lisp code. | ||
| 30 | ;; To enable it: | ||
| 31 | ;; | ||
| 32 | ;; (setq lisp-indent-function 'common-lisp-indent-function) | ||
| 33 | |||
| 28 | ;;>> TODO | 34 | ;;>> TODO |
| 29 | ;; :foo | 35 | ;; :foo |
| 30 | ;; bar | 36 | ;; bar |
| @@ -41,8 +47,6 @@ | |||
| 41 | 47 | ||
| 42 | ;;; Code: | 48 | ;;; Code: |
| 43 | 49 | ||
| 44 | ;;; Hairy lisp indentation. | ||
| 45 | |||
| 46 | (defvar lisp-indent-maximum-backtracking 3 | 50 | (defvar lisp-indent-maximum-backtracking 3 |
| 47 | "*Maximum depth to backtrack out from a sublist for structured indentation. | 51 | "*Maximum depth to backtrack out from a sublist for structured indentation. |
| 48 | If this variable is 0, no backtracking will occur and forms such as flet | 52 | If this variable is 0, no backtracking will occur and forms such as flet |
| @@ -466,10 +470,4 @@ by `lisp-body-indent'.") | |||
| 466 | ;(put 'with-condition-handler 'common-lisp-indent-function '((1 4 ((* 1))) (2 &body))) | 470 | ;(put 'with-condition-handler 'common-lisp-indent-function '((1 4 ((* 1))) (2 &body))) |
| 467 | ;(put 'condition-case 'common-lisp-indent-function '((1 4) (* 2 ((0 1) (1 3) (2 &body))))) | 471 | ;(put 'condition-case 'common-lisp-indent-function '((1 4) (* 2 ((0 1) (1 3) (2 &body))))) |
| 468 | 472 | ||
| 469 | |||
| 470 | ;;;; Turn it on. | ||
| 471 | ;(setq lisp-indent-function 'common-lisp-indent-function) | ||
| 472 | |||
| 473 | ;; To disable this stuff, (setq lisp-indent-function 'lisp-indent-function) | ||
| 474 | |||
| 475 | ;;; cl-indent.el ends here | 473 | ;;; cl-indent.el ends here |
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index c37250f8eae..910a5ddf322 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -21,6 +21,10 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; This is a major mode documented in the Emacs manual. | ||
| 27 | |||
| 24 | ;;; Code: | 28 | ;;; Code: |
| 25 | 29 | ||
| 26 | (defvar debug-function-list nil | 30 | (defvar debug-function-list nil |
diff --git a/lisp/emacs-lisp/disass.el b/lisp/emacs-lisp/disass.el index 9045032cad0..b60ba5a2385 100644 --- a/lisp/emacs-lisp/disass.el +++ b/lisp/emacs-lisp/disass.el | |||
| @@ -25,9 +25,14 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Commentary: | 26 | ;;; Commentary: |
| 27 | 27 | ||
| 28 | ;;; Original version by Doug Cutting (doug@csli.stanford.edu) | 28 | ;; The single entry point, `disassemble', disassembles a code object generated |
| 29 | ;;; Substantially modified by Jamie Zawinski <jwz@lucid.com> for | 29 | ;; by the Emacs Lisp byte-compiler. This doesn't invert the compilation |
| 30 | ;;; the new lapcode-based byte compiler. | 30 | ;; operation, not by a long shot, but it's useful for debugging. |
| 31 | |||
| 32 | ;; | ||
| 33 | ;; Original version by Doug Cutting (doug@csli.stanford.edu) | ||
| 34 | ;; Substantially modified by Jamie Zawinski <jwz@lucid.com> for | ||
| 35 | ;; the new lapcode-based byte compiler. | ||
| 31 | 36 | ||
| 32 | ;;; Code: | 37 | ;;; Code: |
| 33 | 38 | ||
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index e5a366f6880..61961f68251 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el | |||
| @@ -5,6 +5,10 @@ | |||
| 5 | ;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu> | 5 | ;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu> |
| 6 | ;; Keywords: lisp, tools, maint | 6 | ;; Keywords: lisp, tools, maint |
| 7 | 7 | ||
| 8 | ;; This is Dan's 2.5 version with some header comments rearranged to separate | ||
| 9 | ;; the Change Log from the Commentary (so the package-finder code can browse | ||
| 10 | ;; the Commentary). | ||
| 11 | |||
| 8 | ;; This file is part of GNU Emacs. | 12 | ;; This file is part of GNU Emacs. |
| 9 | 13 | ||
| 10 | ;; GNU Emacs is distributed in the hope that it will be useful, | 14 | ;; GNU Emacs is distributed in the hope that it will be useful, |
| @@ -41,17 +45,30 @@ | |||
| 41 | 45 | ||
| 42 | ;;; Contents: | 46 | ;;; Contents: |
| 43 | ;;; ========= | 47 | ;;; ========= |
| 44 | ;;; Change list | ||
| 45 | ;;; Installation | 48 | ;;; Installation |
| 46 | ;;; Todo list | 49 | ;;; Change list |
| 47 | ;;; Utilities | 50 | ;;; Utilities |
| 48 | ;;; Parser | 51 | ;;; Parser |
| 49 | ;;; Debugger | 52 | ;;; Debugger |
| 50 | 53 | ||
| 51 | 54 | ||
| 52 | ;;;================================================================ | 55 | ;;; Installation |
| 53 | ;;; Change list | 56 | ;;; ------------ |
| 54 | ;;; ----------- | 57 | ;; Put edebug.el in some directory in your load-path and byte-compile it. |
| 58 | |||
| 59 | ;; Put the following forms in your .emacs file. | ||
| 60 | ;; (define-key emacs-lisp-mode-map "\^Xx" 'edebug-defun) | ||
| 61 | ;; (autoload 'edebug-defun "edebug") | ||
| 62 | ;; (autoload 'edebug-debug "edebug") | ||
| 63 | ;; (setq debugger 'edebug-debug) | ||
| 64 | ;; ... other options, described in the next section. | ||
| 65 | |||
| 66 | ;; Evaluate a defun for edebug with edebug-defun. | ||
| 67 | ;; Evaluate your function normally. | ||
| 68 | ;; Use the "?" command in edebug to describe other commands. | ||
| 69 | ;; See edebug.texinfo for more instructions. | ||
| 70 | |||
| 71 | ;;; Change Log: | ||
| 55 | 72 | ||
| 56 | ;;; Revision 2.5 91/07/25 13:32:53 liberte | 73 | ;;; Revision 2.5 91/07/25 13:32:53 liberte |
| 57 | ;;; Doc string cleanup. | 74 | ;;; Doc string cleanup. |
| @@ -171,23 +188,6 @@ | |||
| 171 | ;;; Initial revision | 188 | ;;; Initial revision |
| 172 | ;;; | 189 | ;;; |
| 173 | 190 | ||
| 174 | |||
| 175 | ;;; Installation | ||
| 176 | ;;; ------------ | ||
| 177 | ;; Put edebug.el in some directory in your load-path and byte-compile it. | ||
| 178 | |||
| 179 | ;; Put the following forms in your .emacs file. | ||
| 180 | ;; (define-key emacs-lisp-mode-map "\^Xx" 'edebug-defun) | ||
| 181 | ;; (autoload 'edebug-defun "edebug") | ||
| 182 | ;; (autoload 'edebug-debug "edebug") | ||
| 183 | ;; (setq debugger 'edebug-debug) | ||
| 184 | ;; ... other options, described in the next section. | ||
| 185 | |||
| 186 | ;; Evaluate a defun for edebug with edebug-defun. | ||
| 187 | ;; Evaluate your function normally. | ||
| 188 | ;; Use the "?" command in edebug to describe other commands. | ||
| 189 | ;; See edebug.texinfo for more instructions. | ||
| 190 | |||
| 191 | ;;; Code: | 191 | ;;; Code: |
| 192 | 192 | ||
| 193 | 193 | ||
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index f56fefedf00..67c2a96c069 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -23,6 +23,13 @@ | |||
| 23 | 23 | ||
| 24 | ;;; Code: | 24 | ;;; Code: |
| 25 | 25 | ||
| 26 | ;;; Commentary: | ||
| 27 | |||
| 28 | ;; The base major mode for editing Lisp code (used also for Emacs Lisp). | ||
| 29 | ;; This mode is documented in the Emacs manual | ||
| 30 | |||
| 31 | ;;; Code: | ||
| 32 | |||
| 26 | (defvar lisp-mode-syntax-table nil "") | 33 | (defvar lisp-mode-syntax-table nil "") |
| 27 | (defvar emacs-lisp-mode-syntax-table nil "") | 34 | (defvar emacs-lisp-mode-syntax-table nil "") |
| 28 | (defvar lisp-mode-abbrev-table nil "") | 35 | (defvar lisp-mode-abbrev-table nil "") |
| @@ -94,8 +101,8 @@ | |||
| 94 | (setq comment-start-skip ";+ *") | 101 | (setq comment-start-skip ";+ *") |
| 95 | (make-local-variable 'comment-column) | 102 | (make-local-variable 'comment-column) |
| 96 | (setq comment-column 40) | 103 | (setq comment-column 40) |
| 97 | (make-local-variable 'comment-indent-hook) | 104 | (make-local-variable 'comment-indent-function) |
| 98 | (setq comment-indent-hook 'lisp-comment-indent)) | 105 | (setq comment-indent-function 'lisp-comment-indent)) |
| 99 | 106 | ||
| 100 | (defvar shared-lisp-mode-map () | 107 | (defvar shared-lisp-mode-map () |
| 101 | "Keymap for commands shared by all sorts of Lisp modes.") | 108 | "Keymap for commands shared by all sorts of Lisp modes.") |
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index c35574b73be..9cd00517cc2 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el | |||
| @@ -21,6 +21,10 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; Lisp ediing commands to go with Lisp major mode. | ||
| 27 | |||
| 24 | ;;; Code: | 28 | ;;; Code: |
| 25 | 29 | ||
| 26 | (defvar defun-prompt-regexp nil | 30 | (defvar defun-prompt-regexp nil |
diff --git a/lisp/emerge.el b/lisp/emerge.el index 09c29fbb680..c0efed32175 100644 --- a/lisp/emerge.el +++ b/lisp/emerge.el | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | ;;; emerge.el --- merge diffs under Emacs control | 1 | ;;; emerge.el --- merge diffs under Emacs control |
| 2 | |||
| 2 | ;;; The author has placed this file in the public domain. | 3 | ;;; The author has placed this file in the public domain. |
| 3 | 4 | ||
| 4 | ;; Author: Dale R. Worley <drw@math.mit.edu> | 5 | ;; Author: Dale R. Worley <drw@math.mit.edu> |
| @@ -7,120 +8,8 @@ | |||
| 7 | 8 | ||
| 8 | ;;; Commentary: | 9 | ;;; Commentary: |
| 9 | 10 | ||
| 10 | ; - Changes from version 3 to version 4 | 11 | ;; This package assists you in reconciling differences between pair of files. |
| 11 | ; | 12 | |
| 12 | ; More configuration variables are marked as user options. | ||
| 13 | ; | ||
| 14 | ; Code is included for an improved version of make-auto-save-file-name | ||
| 15 | ; which eliminates many problems with the default version. See the | ||
| 16 | ; documentation of emerge-make-auto-save-file-name to see how to | ||
| 17 | ; activate it. | ||
| 18 | ; | ||
| 19 | ; Emerge now works with Gnu diff3, which can produce the groups of lines | ||
| 20 | ; from the various files in the order 1, 2, 3 or 1, 3, 2. | ||
| 21 | ; | ||
| 22 | ; Added x f command to show what files or buffers are being operated on. | ||
| 23 | ; | ||
| 24 | ; The merge buffer now starts read-only, which being in fast mode it | ||
| 25 | ; should be. | ||
| 26 | ; | ||
| 27 | ; When merging buffers, Emerge writes their contents into temporary | ||
| 28 | ; files in the directory $TMPDIR (if it is defined), or /tmp by default. | ||
| 29 | ; | ||
| 30 | ; Added x j command to join two differences. | ||
| 31 | ; | ||
| 32 | ; Added x s command to split a difference into two differences. | ||
| 33 | ; | ||
| 34 | ; Added emerge-version variable and function to report the version of Emerge | ||
| 35 | ; being run. | ||
| 36 | ; | ||
| 37 | ; Added x t command to trim unchanged lines off top and bottom of | ||
| 38 | ; difference region. | ||
| 39 | ; | ||
| 40 | ; Added x d, x a, and x b commands to locate the differences at or near | ||
| 41 | ; a given location in one of the buffers. | ||
| 42 | ; | ||
| 43 | ; Emerge no longer tries to copy the minor modes from the A buffer to | ||
| 44 | ; the merge buffer, only the major mode. | ||
| 45 | ; | ||
| 46 | ; The programs executed to find the differences between versions of the file | ||
| 47 | ; are no longer controlled by emerge-diff/diff3-command, but rather by: | ||
| 48 | ; emerge-diff-program | ||
| 49 | ; Variable: *Name of the program which compares two files. | ||
| 50 | ; emerge-diff3-program | ||
| 51 | ; Variable: *Name of the program which compares an ancestor file | ||
| 52 | ; (first argument) and two variant files (second and third arguments). | ||
| 53 | ; emerge-diff-options | ||
| 54 | ; Variable: *Options to be passed to emerge-diff/diff3-program. | ||
| 55 | ; | ||
| 56 | ; The names of the files are expanded (see expand-file-name) before being | ||
| 57 | ; passed to emerge-diff/diff3-program, so diff need not invoked under a shell | ||
| 58 | ; that understands '~', for instance. | ||
| 59 | ; | ||
| 60 | ; If the diff/diff3 program reports errors, the user is notified and the | ||
| 61 | ; errors are displayed. | ||
| 62 | ; | ||
| 63 | ; The command "0j" can be used to suppress the flags from showing in the buffers. | ||
| 64 | ; | ||
| 65 | ; A discussion of the effect of the merge flags on indentation of code | ||
| 66 | ; has been added to the documentation. | ||
| 67 | ; | ||
| 68 | ; If kill-fix.el is loaded, Emerge control variables new have their | ||
| 69 | ; 'preserved' property set, so setting the major mode in the merge | ||
| 70 | ; buffer doesn't destroy Emerge's state. | ||
| 71 | ; | ||
| 72 | ; Added x c, x C, and x x commands to allow the A and B versions to be | ||
| 73 | ; combined into #ifdef - #endif forms. | ||
| 74 | ; | ||
| 75 | ; Replaced calls of "ding" to calls of "error" where appropriate. | ||
| 76 | ; | ||
| 77 | ; Added x m command to allow major mode of merge buffer to be changed. | ||
| 78 | ; | ||
| 79 | ; Added x 1 command to shrink the merge window to one line. | ||
| 80 | ; | ||
| 81 | ; Added emerge-startup-hook to allow customization. | ||
| 82 | ; | ||
| 83 | ; Fixed a bug that is activated when a remote merge request is made when | ||
| 84 | ; the minibuffer window is selected. | ||
| 85 | ; | ||
| 86 | ; - Changes from version 2 to version 3 | ||
| 87 | ; | ||
| 88 | ; The directory into which temporary files are written is now controlled | ||
| 89 | ; by a user option (emerge-temp-file-prefix). | ||
| 90 | ; | ||
| 91 | ; The A and B versions of the difference can be loaded into the kill | ||
| 92 | ; ring with the "c a" and "c b" commands. | ||
| 93 | ; | ||
| 94 | ; The A and B versions of the difference can be inserted into the merge | ||
| 95 | ; buffer with the "i a" and "i b" commands. | ||
| 96 | ; | ||
| 97 | ; The difference region of the merge buffer can be surrounded by the | ||
| 98 | ; point and mark with the "m" command. | ||
| 99 | ; | ||
| 100 | ; The three windows can be scrolled together with the "^", "v", "<", | ||
| 101 | ; ">", and "|" commands. | ||
| 102 | ; | ||
| 103 | ; The "s s" and "s a" commands report the state of the option in the | ||
| 104 | ; echo area. Similarly, the "f" and "e" commands report what they do in | ||
| 105 | ; the echo area. | ||
| 106 | ; | ||
| 107 | ; The "q" command has been revamped, and its behavior is now controlled | ||
| 108 | ; by the manner in which Emerge is started. In particular, if you wish | ||
| 109 | ; to write the merge buffer into a file upon exiting, invoke | ||
| 110 | ; emerge-files[-with-ancestor] with a prefix argument, and it will | ||
| 111 | ; prompt you for the file name. Then exiting will write the merge | ||
| 112 | ; buffer to the file, unless "q" is given a prefix argument. | ||
| 113 | ; | ||
| 114 | ; The "i a" and "i b" commands now work in fast mode. | ||
| 115 | ; | ||
| 116 | ; The modifications that Emerge makes to save-buffer and write-file are | ||
| 117 | ; described. | ||
| 118 | ; | ||
| 119 | ; Emerge now handles merging narrowed buffers correctly. | ||
| 120 | ; | ||
| 121 | ; Emerge now isn't fooled when the buffer visiting a file is not the | ||
| 122 | ; same as the file on disk. | ||
| 123 | ; | ||
| 124 | ; - Starting | 13 | ; - Starting |
| 125 | ; | 14 | ; |
| 126 | ; To start Emerge, you must run one of four commands: | 15 | ; To start Emerge, you must run one of four commands: |
| @@ -558,6 +447,122 @@ | |||
| 558 | ; | 447 | ; |
| 559 | ; ================================================================ | 448 | ; ================================================================ |
| 560 | 449 | ||
| 450 | ;;; Change Log: | ||
| 451 | |||
| 452 | ; - Changes from version 3 to version 4 | ||
| 453 | ; | ||
| 454 | ; More configuration variables are marked as user options. | ||
| 455 | ; | ||
| 456 | ; Code is included for an improved version of make-auto-save-file-name | ||
| 457 | ; which eliminates many problems with the default version. See the | ||
| 458 | ; documentation of emerge-make-auto-save-file-name to see how to | ||
| 459 | ; activate it. | ||
| 460 | ; | ||
| 461 | ; Emerge now works with Gnu diff3, which can produce the groups of lines | ||
| 462 | ; from the various files in the order 1, 2, 3 or 1, 3, 2. | ||
| 463 | ; | ||
| 464 | ; Added x f command to show what files or buffers are being operated on. | ||
| 465 | ; | ||
| 466 | ; The merge buffer now starts read-only, which being in fast mode it | ||
| 467 | ; should be. | ||
| 468 | ; | ||
| 469 | ; When merging buffers, Emerge writes their contents into temporary | ||
| 470 | ; files in the directory $TMPDIR (if it is defined), or /tmp by default. | ||
| 471 | ; | ||
| 472 | ; Added x j command to join two differences. | ||
| 473 | ; | ||
| 474 | ; Added x s command to split a difference into two differences. | ||
| 475 | ; | ||
| 476 | ; Added emerge-version variable and function to report the version of Emerge | ||
| 477 | ; being run. | ||
| 478 | ; | ||
| 479 | ; Added x t command to trim unchanged lines off top and bottom of | ||
| 480 | ; difference region. | ||
| 481 | ; | ||
| 482 | ; Added x d, x a, and x b commands to locate the differences at or near | ||
| 483 | ; a given location in one of the buffers. | ||
| 484 | ; | ||
| 485 | ; Emerge no longer tries to copy the minor modes from the A buffer to | ||
| 486 | ; the merge buffer, only the major mode. | ||
| 487 | ; | ||
| 488 | ; The programs executed to find the differences between versions of the file | ||
| 489 | ; are no longer controlled by emerge-diff/diff3-command, but rather by: | ||
| 490 | ; emerge-diff-program | ||
| 491 | ; Variable: *Name of the program which compares two files. | ||
| 492 | ; emerge-diff3-program | ||
| 493 | ; Variable: *Name of the program which compares an ancestor file | ||
| 494 | ; (first argument) and two variant files (second and third arguments). | ||
| 495 | ; emerge-diff-options | ||
| 496 | ; Variable: *Options to be passed to emerge-diff/diff3-program. | ||
| 497 | ; | ||
| 498 | ; The names of the files are expanded (see expand-file-name) before being | ||
| 499 | ; passed to emerge-diff/diff3-program, so diff need not invoked under a shell | ||
| 500 | ; that understands '~', for instance. | ||
| 501 | ; | ||
| 502 | ; If the diff/diff3 program reports errors, the user is notified and the | ||
| 503 | ; errors are displayed. | ||
| 504 | ; | ||
| 505 | ; The command "0j" can be used to suppress the flags from showing in the buffers. | ||
| 506 | ; | ||
| 507 | ; A discussion of the effect of the merge flags on indentation of code | ||
| 508 | ; has been added to the documentation. | ||
| 509 | ; | ||
| 510 | ; If kill-fix.el is loaded, Emerge control variables new have their | ||
| 511 | ; 'preserved' property set, so setting the major mode in the merge | ||
| 512 | ; buffer doesn't destroy Emerge's state. | ||
| 513 | ; | ||
| 514 | ; Added x c, x C, and x x commands to allow the A and B versions to be | ||
| 515 | ; combined into #ifdef - #endif forms. | ||
| 516 | ; | ||
| 517 | ; Replaced calls of "ding" to calls of "error" where appropriate. | ||
| 518 | ; | ||
| 519 | ; Added x m command to allow major mode of merge buffer to be changed. | ||
| 520 | ; | ||
| 521 | ; Added x 1 command to shrink the merge window to one line. | ||
| 522 | ; | ||
| 523 | ; Added emerge-startup-hook to allow customization. | ||
| 524 | ; | ||
| 525 | ; Fixed a bug that is activated when a remote merge request is made when | ||
| 526 | ; the minibuffer window is selected. | ||
| 527 | ; | ||
| 528 | ; - Changes from version 2 to version 3 | ||
| 529 | ; | ||
| 530 | ; The directory into which temporary files are written is now controlled | ||
| 531 | ; by a user option (emerge-temp-file-prefix). | ||
| 532 | ; | ||
| 533 | ; The A and B versions of the difference can be loaded into the kill | ||
| 534 | ; ring with the "c a" and "c b" commands. | ||
| 535 | ; | ||
| 536 | ; The A and B versions of the difference can be inserted into the merge | ||
| 537 | ; buffer with the "i a" and "i b" commands. | ||
| 538 | ; | ||
| 539 | ; The difference region of the merge buffer can be surrounded by the | ||
| 540 | ; point and mark with the "m" command. | ||
| 541 | ; | ||
| 542 | ; The three windows can be scrolled together with the "^", "v", "<", | ||
| 543 | ; ">", and "|" commands. | ||
| 544 | ; | ||
| 545 | ; The "s s" and "s a" commands report the state of the option in the | ||
| 546 | ; echo area. Similarly, the "f" and "e" commands report what they do in | ||
| 547 | ; the echo area. | ||
| 548 | ; | ||
| 549 | ; The "q" command has been revamped, and its behavior is now controlled | ||
| 550 | ; by the manner in which Emerge is started. In particular, if you wish | ||
| 551 | ; to write the merge buffer into a file upon exiting, invoke | ||
| 552 | ; emerge-files[-with-ancestor] with a prefix argument, and it will | ||
| 553 | ; prompt you for the file name. Then exiting will write the merge | ||
| 554 | ; buffer to the file, unless "q" is given a prefix argument. | ||
| 555 | ; | ||
| 556 | ; The "i a" and "i b" commands now work in fast mode. | ||
| 557 | ; | ||
| 558 | ; The modifications that Emerge makes to save-buffer and write-file are | ||
| 559 | ; described. | ||
| 560 | ; | ||
| 561 | ; Emerge now handles merging narrowed buffers correctly. | ||
| 562 | ; | ||
| 563 | ; Emerge now isn't fooled when the buffer visiting a file is not the | ||
| 564 | ; same as the file on disk. | ||
| 565 | |||
| 561 | ;;; Code: | 566 | ;;; Code: |
| 562 | 567 | ||
| 563 | ;;; Macros | 568 | ;;; Macros |
diff --git a/lisp/files.el b/lisp/files.el index 88150a7133b..f27ceff0506 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -20,6 +20,12 @@ | |||
| 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 22 | 22 | ||
| 23 | ;;; Commentary: | ||
| 24 | |||
| 25 | ;; Defines most of Emacs's file- and directory-handling functions, | ||
| 26 | ;; including basic file visiting, backup generation, link handling, | ||
| 27 | ;; ITS-id version control, load- and write-hook handling, and the like. | ||
| 28 | |||
| 23 | ;;; Code: | 29 | ;;; Code: |
| 24 | 30 | ||
| 25 | (defconst delete-auto-save-files t | 31 | (defconst delete-auto-save-files t |
diff --git a/lisp/gosmacs.el b/lisp/gosmacs.el index c432f4293cf..93bbbaa5b80 100644 --- a/lisp/gosmacs.el +++ b/lisp/gosmacs.el | |||
| @@ -21,6 +21,11 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; Make GNU Emacs look like Gosling Emacs. `M-x set-gosmacs-bindings' | ||
| 27 | ;; does this change; `M-x set-gnu-bindings' undoes it. | ||
| 28 | |||
| 24 | ;;; Code: | 29 | ;;; Code: |
| 25 | 30 | ||
| 26 | (require 'mlsupport) | 31 | (require 'mlsupport) |
diff --git a/lisp/hexl.el b/lisp/hexl.el index a38e12366ee..20e9c161754 100644 --- a/lisp/hexl.el +++ b/lisp/hexl.el | |||
| @@ -22,6 +22,12 @@ | |||
| 22 | 22 | ||
| 23 | ;;; Commentary: | 23 | ;;; Commentary: |
| 24 | 24 | ||
| 25 | ;; This package implements a major mode for editing binary files. It uses | ||
| 26 | ;; a program called hexl, supplied with the GNU Emacs distribution, that | ||
| 27 | ;; can filter a binary into an editable format or from the format back into | ||
| 28 | ;; binary. For full instructions, invoke `hexl-mode' on an empty buffer and | ||
| 29 | ;; do `M-x describe-mode'. | ||
| 30 | ;; | ||
| 25 | ;; This may be useful in your .emacs: | 31 | ;; This may be useful in your .emacs: |
| 26 | ;; | 32 | ;; |
| 27 | ;; (autoload 'hexl-find-file "hexl" | 33 | ;; (autoload 'hexl-find-file "hexl" |
| @@ -74,7 +80,7 @@ and \"-de\" when dehexlfying a buffer.") | |||
| 74 | ;;;###autoload | 80 | ;;;###autoload |
| 75 | (defun hexl-mode (&optional arg) | 81 | (defun hexl-mode (&optional arg) |
| 76 | "\\<hexl-mode-map> | 82 | "\\<hexl-mode-map> |
| 77 | A major mode for editting binary files in hex dump format. | 83 | A major mode for editing binary files in hex dump format. |
| 78 | 84 | ||
| 79 | This function automatically converts a buffer into the hexl format | 85 | This function automatically converts a buffer into the hexl format |
| 80 | using the function `hexlify-buffer'. | 86 | using the function `hexlify-buffer'. |
diff --git a/lisp/indent.el b/lisp/indent.el index 8a972b82349..dd6a0588453 100644 --- a/lisp/indent.el +++ b/lisp/indent.el | |||
| @@ -20,6 +20,11 @@ | |||
| 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 22 | 22 | ||
| 23 | ;;; Commentary: | ||
| 24 | |||
| 25 | ;; Commands for making and changing indentation in text. These are | ||
| 26 | ;; described in the Emacs manual. | ||
| 27 | |||
| 23 | ;;; Code: | 28 | ;;; Code: |
| 24 | 29 | ||
| 25 | (defvar indent-line-function 'indent-to-left-margin "\ | 30 | (defvar indent-line-function 'indent-to-left-margin "\ |
diff --git a/lisp/international/iso-insert.el b/lisp/international/iso-insert.el index efe7e0cd3c7..89528d0bc60 100644 --- a/lisp/international/iso-insert.el +++ b/lisp/international/iso-insert.el | |||
| @@ -22,10 +22,12 @@ | |||
| 22 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 22 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 23 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 23 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Commentary: |
| 26 | 26 | ||
| 27 | ;; Written by Howard Gayle. See case-table.el for details. | 27 | ;; Written by Howard Gayle. See case-table.el for details. |
| 28 | 28 | ||
| 29 | ;;; Code: | ||
| 30 | |||
| 29 | (defun insert-no-break-space () | 31 | (defun insert-no-break-space () |
| 30 | (interactive "*") | 32 | (interactive "*") |
| 31 | (insert 160) | 33 | (insert 160) |
diff --git a/lisp/international/iso-swed.el b/lisp/international/iso-swed.el index a39c70c3706..107d2f6c4dc 100644 --- a/lisp/international/iso-swed.el +++ b/lisp/international/iso-swed.el | |||
| @@ -22,10 +22,12 @@ | |||
| 22 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 22 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 23 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 23 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Commentary: |
| 26 | 26 | ||
| 27 | ;; Written by Howard Gayle. See case-table.el for details. | 27 | ;; Written by Howard Gayle. See case-table.el for details. |
| 28 | 28 | ||
| 29 | ;;; Code: | ||
| 30 | |||
| 29 | ;; This code sets up to display ISO 8859/1 characters on | 31 | ;; This code sets up to display ISO 8859/1 characters on |
| 30 | ;; terminals that have ASCII in the G0 set and a Swedish/Finnish | 32 | ;; terminals that have ASCII in the G0 set and a Swedish/Finnish |
| 31 | ;; version of ISO 646 in the G1 set. The G1 set differs from | 33 | ;; version of ISO 646 in the G1 set. The G1 set differs from |
diff --git a/lisp/iso8859-1.el b/lisp/iso8859-1.el index 7cca9047704..1f6c23a9ddc 100644 --- a/lisp/iso8859-1.el +++ b/lisp/iso8859-1.el | |||
| @@ -22,10 +22,12 @@ | |||
| 22 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 22 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 23 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 23 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Commentary: |
| 26 | 26 | ||
| 27 | ;; Written by Howard Gayle. See case-table.el for details. | 27 | ;; Written by Howard Gayle. See case-table.el for details. |
| 28 | 28 | ||
| 29 | ;;; Code: | ||
| 30 | |||
| 29 | (require 'case-table) | 31 | (require 'case-table) |
| 30 | 32 | ||
| 31 | (let ((table (standard-case-table))) | 33 | (let ((table (standard-case-table))) |
diff --git a/lisp/kermit.el b/lisp/kermit.el index 66f9c18414a..9387c098372 100644 --- a/lisp/kermit.el +++ b/lisp/kermit.el | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Jeff Norden <jeff@colgate.csnet> | 5 | ;; Author: Jeff Norden <jeff@colgate.csnet> |
| 6 | ;; Created: 15 Feb 1988 | 6 | ;; Created: 15 Feb 1988 |
| 7 | ;; Keywords: comm | ||
| 7 | 8 | ||
| 8 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 9 | 10 | ||
| @@ -21,7 +22,7 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 22 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 23 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 24 | ||
| 24 | ;;; Commentary | 25 | ;;; Commentary: |
| 25 | 26 | ||
| 26 | ;; I'm not sure, but I think somebody asked about running kermit under shell | 27 | ;; I'm not sure, but I think somebody asked about running kermit under shell |
| 27 | ;; mode a while ago. Anyway, here is some code that I find useful. The result | 28 | ;; mode a while ago. Anyway, here is some code that I find useful. The result |
| @@ -51,8 +52,8 @@ | |||
| 51 | ;; ^C^Q^C to send an interrupt, and ^C^Q^Z for a stop signal, etc. (since ^C^C | 52 | ;; ^C^Q^C to send an interrupt, and ^C^Q^Z for a stop signal, etc. (since ^C^C |
| 52 | ;; just generates a local stop signal, which kermit ignores). | 53 | ;; just generates a local stop signal, which kermit ignores). |
| 53 | ;; To connect to a VMS system, I use a shell script to invoke kermit thru the | 54 | ;; To connect to a VMS system, I use a shell script to invoke kermit thru the |
| 54 | ;; tr filter, do "M-X kermit-send-cr", and then tell VMS that I'm on a half-duplex | 55 | ;; tr filter, do "M-X kermit-send-cr", and then tell VMS that I'm on a |
| 55 | ;; terminal. | 56 | ;; half-duplex terminal. |
| 56 | 57 | ||
| 57 | ;; Some caveats: | 58 | ;; Some caveats: |
| 58 | ;; 1) Kermit under shell mode is a real pain if you don't have pty's. I | 59 | ;; 1) Kermit under shell mode is a real pain if you don't have pty's. I |
diff --git a/lisp/ledit.el b/lisp/ledit.el index fa7892545cf..f76aa468d89 100644 --- a/lisp/ledit.el +++ b/lisp/ledit.el | |||
| @@ -21,6 +21,10 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; This is a major mode for editing Liszt. See etc/LEDIT for details. | ||
| 27 | |||
| 24 | ;;; Code: | 28 | ;;; Code: |
| 25 | 29 | ||
| 26 | ;;; To do: | 30 | ;;; To do: |
diff --git a/lisp/lpr.el b/lisp/lpr.el index 1f4ec62dfc1..2beead551ec 100644 --- a/lisp/lpr.el +++ b/lisp/lpr.el | |||
| @@ -21,6 +21,12 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; Commands to send the region or a buffer your printer. Entry points | ||
| 27 | ;; are `lpr-buffer', `print-buffer', lpr-region', or `print-region'; option | ||
| 28 | ;; variables include `lpr-switches' and `lpr-command'. | ||
| 29 | |||
| 24 | ;;; Code: | 30 | ;;; Code: |
| 25 | 31 | ||
| 26 | ;;;###autoload | 32 | ;;;###autoload |
diff --git a/lisp/macros.el b/lisp/macros.el index f1aec4e51b8..41c021897cd 100644 --- a/lisp/macros.el +++ b/lisp/macros.el | |||
| @@ -21,6 +21,13 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; Extension commands for keyboard macros. These permit you to assign | ||
| 27 | ;; a name to the last-defined keyboard macro, expand and insert the | ||
| 28 | ;; lisp corresponding to a macro, query the user from within a macro, | ||
| 29 | ;; or apply a macro to each line in the reason. | ||
| 30 | |||
| 24 | ;;; Code: | 31 | ;;; Code: |
| 25 | 32 | ||
| 26 | ;;;###autoload | 33 | ;;;###autoload |
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index 3af19d75ab3..8f64f8f8da7 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el | |||
| @@ -23,6 +23,11 @@ | |||
| 23 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 23 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 24 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 24 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 25 | 25 | ||
| 26 | ;;; Commentary: | ||
| 27 | |||
| 28 | ;; `M-x report-emacs-bug ' starts an email note to the Emacs maintainers | ||
| 29 | ;; describing a problem. Here's how it's done... | ||
| 30 | |||
| 26 | ;;; Code: | 31 | ;;; Code: |
| 27 | 32 | ||
| 28 | ;; >> This should be an address which is accessible to your machine, | 33 | ;; >> This should be an address which is accessible to your machine, |
diff --git a/lisp/mail/mail-utils.el b/lisp/mail/mail-utils.el index d165dc6d756..63757511013 100644 --- a/lisp/mail/mail-utils.el +++ b/lisp/mail/mail-utils.el | |||
| @@ -21,6 +21,11 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; Utility functions for maol and netnews handling. These handle fine | ||
| 27 | ;; points of header parsing. | ||
| 28 | |||
| 24 | ;;; Code: | 29 | ;;; Code: |
| 25 | 30 | ||
| 26 | ;;; We require lisp-mode to make sure that lisp-mode-syntax-table has | 31 | ;;; We require lisp-mode to make sure that lisp-mode-syntax-table has |
diff --git a/lisp/mail/mailalias.el b/lisp/mail/mailalias.el index b07725a5a7c..3918a520e04 100644 --- a/lisp/mail/mailalias.el +++ b/lisp/mail/mailalias.el | |||
| @@ -21,6 +21,12 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; Basic functions for defining and expanding mail aliases. | ||
| 27 | ;; These seal off the interface to the alias-definition parts of a | ||
| 28 | ;; .mailrc file formatted for BSD's Mail or USL's mailx. | ||
| 29 | |||
| 24 | ;;; Code: | 30 | ;;; Code: |
| 25 | 31 | ||
| 26 | (defvar mail-aliases t | 32 | (defvar mail-aliases t |
diff --git a/lisp/makesum.el b/lisp/makesum.el index 0808501f4ee..a9311e0906e 100644 --- a/lisp/makesum.el +++ b/lisp/makesum.el | |||
| @@ -21,6 +21,11 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; Displays a nice human-readable summary of all keybindings in a | ||
| 27 | ;; two-column format. | ||
| 28 | |||
| 24 | ;;; Code: | 29 | ;;; Code: |
| 25 | 30 | ||
| 26 | ;;;###autoload | 31 | ;;;###autoload |
diff --git a/lisp/mim-mode.el b/lisp/mim-mode.el index 25d60d947ef..b5970de19ea 100644 --- a/lisp/mim-mode.el +++ b/lisp/mim-mode.el | |||
| @@ -225,8 +225,8 @@ Entry to this mode calls the value of mim-mode-hook if non-nil." | |||
| 225 | (setq comment-end "\"") | 225 | (setq comment-end "\"") |
| 226 | (make-local-variable 'comment-column) | 226 | (make-local-variable 'comment-column) |
| 227 | (setq comment-column 40) | 227 | (setq comment-column 40) |
| 228 | (make-local-variable 'comment-indent-hook) | 228 | (make-local-variable 'comment-indent-function) |
| 229 | (setq comment-indent-hook 'indent-mim-comment) | 229 | (setq comment-indent-function 'indent-mim-comment) |
| 230 | ;; tell generic indenter how to indent. | 230 | ;; tell generic indenter how to indent. |
| 231 | (make-local-variable 'indent-line-function) | 231 | (make-local-variable 'indent-line-function) |
| 232 | (setq indent-line-function 'indent-mim-line) | 232 | (setq indent-line-function 'indent-mim-line) |
diff --git a/lisp/play/dissociate.el b/lisp/play/dissociate.el index d399212a441..ebf6b637a8d 100644 --- a/lisp/play/dissociate.el +++ b/lisp/play/dissociate.el | |||
| @@ -21,6 +21,11 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; The single entry point, `dissociatesd-press', applies a travesty | ||
| 27 | ;; generator to the current buffer. The results can be quite amusing. | ||
| 28 | |||
| 24 | ;;; Code: | 29 | ;;; Code: |
| 25 | 30 | ||
| 26 | ;;;###autoload | 31 | ;;;###autoload |
diff --git a/lisp/play/doctor.el b/lisp/play/doctor.el index 315c4cc11f7..702f053b25e 100644 --- a/lisp/play/doctor.el +++ b/lisp/play/doctor.el | |||
| @@ -21,6 +21,12 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; The single entry point `doctor', simulates a Rogerian analyst using | ||
| 27 | ;; phrase-production techniques similar to the classic ELIZA demonstration | ||
| 28 | ;; of pseudo-AI. | ||
| 29 | |||
| 24 | ;;; Code: | 30 | ;;; Code: |
| 25 | 31 | ||
| 26 | (defun doctor-cadr (x) (car (cdr x))) | 32 | (defun doctor-cadr (x) (car (cdr x))) |
diff --git a/lisp/play/hanoi.el b/lisp/play/hanoi.el index e65608235fd..99e2acdd92a 100644 --- a/lisp/play/hanoi.el +++ b/lisp/play/hanoi.el | |||
| @@ -8,6 +8,35 @@ | |||
| 8 | ; This is in the public domain | 8 | ; This is in the public domain |
| 9 | ; since he distributed it without copyright notice in 1985. | 9 | ; since he distributed it without copyright notice in 1985. |
| 10 | 10 | ||
| 11 | ;;; Commentary: | ||
| 12 | |||
| 13 | ;; Solves the Towers of Hanoi puzzle while-U-wait. | ||
| 14 | ;; | ||
| 15 | ;; The puzzle: Start with N rings, decreasing in sizes from bottom to | ||
| 16 | ;; top, stacked around a post. There are two other posts. Your mission, | ||
| 17 | ;; should you choose to accept it, is to shift the pile, stacked in its | ||
| 18 | ;; original order, to another post. | ||
| 19 | ;; | ||
| 20 | ;; The challenge is to do it in the fewest possible moves. Each move | ||
| 21 | ;; shifts one ring to a different post. But there's a rule; you can | ||
| 22 | ;; only stack a ring on top of a larger one. | ||
| 23 | ;; | ||
| 24 | ;; The simplest nontrivial version of this puzzle is N = 3. Solution | ||
| 25 | ;; time rises as 2**N, and programs to solve it have long been considered | ||
| 26 | ;; classic introductory exercises in the use of recursion. | ||
| 27 | ;; | ||
| 28 | ;; The puzzle is called `Towers of Hanoi' because an early popular | ||
| 29 | ;; presentation wove a fanciful legend around it. According to this | ||
| 30 | ;; myth (uttered long before the Vietnam War), there is a Buddhist | ||
| 31 | ;; monastery at Hanoi which contains a large room with three time-worn | ||
| 32 | ;; posts in it surrounded by 21 golden discs. Monks, acting out the | ||
| 33 | ;; command of an ancient prophecy, have been moving these disks, in | ||
| 34 | ;; accordance with the rules of the puzzle, once every day since the | ||
| 35 | ;; monastery was founded over a thousand years ago. They are said | ||
| 36 | ;; believe that when the last move of the puzzle is completed, the | ||
| 37 | ;; world will end in a clap of thunder. Fortunately, they are nowhere | ||
| 38 | ;; even close to being done... | ||
| 39 | |||
| 11 | ;;; Code: | 40 | ;;; Code: |
| 12 | 41 | ||
| 13 | ;;; | 42 | ;;; |
diff --git a/lisp/play/life.el b/lisp/play/life.el index 8b8c34b4b98..8e1732ed303 100644 --- a/lisp/play/life.el +++ b/lisp/play/life.el | |||
| @@ -21,6 +21,12 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; A demonstrator for John Horton Conway's "Life" cellular automaton | ||
| 27 | ;; in Emacs Lisp. Picks a random one of a set of interesting Life | ||
| 28 | ;; patterns and avolves it according to the familiar rules. | ||
| 29 | |||
| 24 | ;;; Code: | 30 | ;;; Code: |
| 25 | 31 | ||
| 26 | (defconst life-patterns | 32 | (defconst life-patterns |
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 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; Sets up C-mode with support for awk-style #-comments and a lightly | ||
| 27 | ;; hacked syntax table. | ||
| 28 | |||
| 24 | ;;; Code: | 29 | ;;; Code: |
| 25 | 30 | ||
| 26 | (defvar awk-mode-syntax-table nil | 31 | (defvar awk-mode-syntax-table nil |
| @@ -83,8 +88,8 @@ with no args, if that value is non-nil." | |||
| 83 | (setq comment-column 32) | 88 | (setq comment-column 32) |
| 84 | (make-local-variable 'comment-start-skip) | 89 | (make-local-variable 'comment-start-skip) |
| 85 | (setq comment-start-skip "#+ *") | 90 | (setq comment-start-skip "#+ *") |
| 86 | (make-local-variable 'comment-indent-hook) | 91 | (make-local-variable 'comment-indent-function) |
| 87 | (setq comment-indent-hook 'c-comment-indent) | 92 | (setq comment-indent-function 'c-comment-indent) |
| 88 | (run-hooks 'awk-mode-hook)) | 93 | (run-hooks 'awk-mode-hook)) |
| 89 | 94 | ||
| 90 | ;;; awk-mode.el ends here | 95 | ;;; 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 @@ | |||
| 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 22 | 22 | ||
| 23 | ;;; Commentary: | ||
| 24 | |||
| 25 | ;; A smart editing mode for C code. It knows a lot about C syntax and tries | ||
| 26 | ;; to position the curser according to C layout conventions. You can | ||
| 27 | ;; change the details of the layout style with option variables. Load it | ||
| 28 | ;; and do M-x describe-mode for details. | ||
| 29 | |||
| 23 | ;;; Code: | 30 | ;;; Code: |
| 24 | 31 | ||
| 25 | (defvar c-mode-abbrev-table nil | 32 | (defvar c-mode-abbrev-table nil |
| @@ -204,8 +211,8 @@ if that value is non-nil." | |||
| 204 | (setq comment-column 32) | 211 | (setq comment-column 32) |
| 205 | (make-local-variable 'comment-start-skip) | 212 | (make-local-variable 'comment-start-skip) |
| 206 | (setq comment-start-skip "/\\*+ *") | 213 | (setq comment-start-skip "/\\*+ *") |
| 207 | (make-local-variable 'comment-indent-hook) | 214 | (make-local-variable 'comment-indent-function) |
| 208 | (setq comment-indent-hook 'c-comment-indent) | 215 | (setq comment-indent-function 'c-comment-indent) |
| 209 | (make-local-variable 'parse-sexp-ignore-comments) | 216 | (make-local-variable 'parse-sexp-ignore-comments) |
| 210 | (setq parse-sexp-ignore-comments t) | 217 | (setq parse-sexp-ignore-comments t) |
| 211 | (run-hooks 'c-mode-hook)) | 218 | (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 @@ | |||
| 1 | ;;; cmacexp.el --- C macro expansion | 1 | ;;; cmacexp.el --- C preprocessor macro expansion |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1988 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1988 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -21,6 +21,18 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Commentary: | ||
| 25 | |||
| 26 | ;; This package gives you the ability to run the C macro preprocessor | ||
| 27 | ;; on the current region, expanding macros within it. This can be useful | ||
| 28 | ;; when you're not sure of the value or expansion of such macros and want | ||
| 29 | ;; to make sure they're doing what you think they're doing. | ||
| 30 | ;; | ||
| 31 | ;; This package supports the following option variables: | ||
| 32 | ;; | ||
| 33 | ;; c-macro-preprocessor --- program to be used for macro expansion. | ||
| 34 | ;; c-macro-options --- command-line options to pass it. | ||
| 35 | |||
| 24 | ;;; Code: | 36 | ;;; Code: |
| 25 | 37 | ||
| 26 | (defvar c-macro-preprocessor "/lib/cpp" | 38 | (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 @@ | |||
| 5 | ;; Author: Roland McGrath <roland@prep.ai.mit.edu> | 5 | ;; Author: Roland McGrath <roland@prep.ai.mit.edu> |
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| 7 | ;; Keywords: tools, processes | 7 | ;; Keywords: tools, processes |
| 8 | ;; Info-Node: Emacs:Compilation | ||
| 8 | 9 | ||
| 9 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 10 | 11 | ||
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 @@ | |||
| 21 | 21 | ||
| 22 | ;;; Commentary: | 22 | ;;; Commentary: |
| 23 | 23 | ||
| 24 | ;; 1987 Dave Detlefs (dld@cs.cmu.edu) | 24 | ;; 1987 Dave Detlefs <dld@cs.cmu.edu> |
| 25 | ;; and Stewart Clamen (clamen@cs.cmu.edu). | 25 | ;; and Stewart Clamen <clamen@cs.cmu.edu>. |
| 26 | ;; Done by fairly faithful modification of: | 26 | ;; Done by fairly faithful modification of: |
| 27 | |||
| 27 | ;;; Change Log: | 28 | ;;; Change Log: |
| 28 | 29 | ||
| 29 | ;; Feb, 1990 (Dave Detlefs, dld@cs.cmu.edu) | 30 | ;; Feb, 1990 (Dave Detlefs, dld@cs.cmu.edu) |
| @@ -219,7 +220,7 @@ no args if that value is non-nil." | |||
| 219 | (set (make-local-variable 'comment-start) "// ") | 220 | (set (make-local-variable 'comment-start) "// ") |
| 220 | (set (make-local-variable 'comment-end) "") | 221 | (set (make-local-variable 'comment-end) "") |
| 221 | (set (make-local-variable 'comment-start-skip) "/\\*+ *\\|// *") | 222 | (set (make-local-variable 'comment-start-skip) "/\\*+ *\\|// *") |
| 222 | (set (make-local-variable 'comment-indent-hook) 'c++-comment-indent) | 223 | (set (make-local-variable 'comment-indent-function) 'c++-comment-indent) |
| 223 | (set (make-local-variable 'paragraph-start) (concat "^$\\|" page-delimiter)) | 224 | (set (make-local-variable 'paragraph-start) (concat "^$\\|" page-delimiter)) |
| 224 | (set (make-local-variable 'paragraph-separate) paragraph-start) | 225 | (set (make-local-variable 'paragraph-separate) paragraph-start) |
| 225 | (set (make-local-variable 'paragraph-ignore-fill-prefix) t) | 226 | (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." | |||
| 354 | (setq fortran-break-before-delimiters t) | 354 | (setq fortran-break-before-delimiters t) |
| 355 | (make-local-variable 'indent-line-function) | 355 | (make-local-variable 'indent-line-function) |
| 356 | (setq indent-line-function 'fortran-indent-line) | 356 | (setq indent-line-function 'fortran-indent-line) |
| 357 | (make-local-variable 'comment-indent-hook) | 357 | (make-local-variable 'comment-indent-function) |
| 358 | (setq comment-indent-hook 'fortran-comment-hook) | 358 | (setq comment-indent-function 'fortran-comment-hook) |
| 359 | (make-local-variable 'comment-line-start-skip) | 359 | (make-local-variable 'comment-line-start-skip) |
| 360 | (setq comment-line-start-skip | 360 | (setq comment-line-start-skip |
| 361 | "^[Cc*]\\(\\([^ \t\n]\\)\\2\\2*\\)?[ \t]*\\|^#.*") | 361 | "^[Cc*]\\(\\([^ \t\n]\\)\\2\\2*\\)?[ \t]*\\|^#.*") |
| @@ -475,7 +475,6 @@ Any other key combination is executed normally." | |||
| 475 | "List the currently defined abbrevs in Fortran mode." | 475 | "List the currently defined abbrevs in Fortran mode." |
| 476 | (interactive) | 476 | (interactive) |
| 477 | (message "Listing abbrev table...") | 477 | (message "Listing abbrev table...") |
| 478 | (require 'abbrevlist) | ||
| 479 | (display-buffer (fortran-prepare-abbrev-list-buffer)) | 478 | (display-buffer (fortran-prepare-abbrev-list-buffer)) |
| 480 | (message "Listing abbrev table...done")) | 479 | (message "Listing abbrev table...done")) |
| 481 | 480 | ||
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 @@ | |||
| 23 | 23 | ||
| 24 | ;;; Commentary: | 24 | ;;; Commentary: |
| 25 | 25 | ||
| 26 | ;;; Written by Brian Marick, at Gould, Computer Systems Division, Urbana IL. | ||
| 27 | ;;; Extensively modified by Daniel LaLiberte (while at Gould). | ||
| 28 | ;;; | ||
| 29 | ;;; You may freely modify and distribute this, but keep a record | ||
| 30 | ;;; of modifications and send comments to: | ||
| 31 | ;;; liberte@a.cs.uiuc.edu or ihnp4!uiucdcs!liberte | ||
| 32 | ;;; I will continue to upgrade hide-ifdef-mode | ||
| 33 | ;;; with your contributions. | ||
| 34 | |||
| 35 | ;;; To initialize, toggle the hide-ifdef minor mode with | 26 | ;;; To initialize, toggle the hide-ifdef minor mode with |
| 36 | ;;; | 27 | ;;; |
| 37 | ;;; M-x hide-ifdef-mode | 28 | ;;; M-x hide-ifdef-mode |
| @@ -105,6 +96,15 @@ | |||
| 105 | ;;; If you have minor-mode-alist in your mode line (the default) two labels | 96 | ;;; If you have minor-mode-alist in your mode line (the default) two labels |
| 106 | ;;; may appear. "Ifdef" will appear when hide-ifdef-mode is active. "Hiding" | 97 | ;;; may appear. "Ifdef" will appear when hide-ifdef-mode is active. "Hiding" |
| 107 | ;;; will appear when text may be hidden ("hide-ifdef-hiding" is non-nil). | 98 | ;;; will appear when text may be hidden ("hide-ifdef-hiding" is non-nil). |
| 99 | ;;; | ||
| 100 | ;;; Written by Brian Marick, at Gould, Computer Systems Division, Urbana IL. | ||
| 101 | ;;; Extensively modified by Daniel LaLiberte (while at Gould). | ||
| 102 | ;;; | ||
| 103 | ;;; You may freely modify and distribute this, but keep a record | ||
| 104 | ;;; of modifications and send comments to: | ||
| 105 | ;;; liberte@a.cs.uiuc.edu or ihnp4!uiucdcs!liberte | ||
| 106 | ;;; I will continue to upgrade hide-ifdef-mode | ||
| 107 | ;;; with your contributions. | ||
| 108 | 108 | ||
| 109 | ;;; Change Log: | 109 | ;;; Change Log: |
| 110 | ;;; | 110 | ;;; |
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 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Commentary: | 25 | ;;; Commentary: |
| 26 | 26 | ||
| 27 | ;; A major mode for editing the Icon programming language. | ||
| 28 | ;; | ||
| 27 | ;; Note: use | 29 | ;; Note: use |
| 28 | ;; (autoload 'icon-mode "icon" nil t) | 30 | ;; (autoload 'icon-mode "icon" nil t) |
| 29 | ;; (setq auto-mode-alist (cons '("\\.icn$" . icon-mode) auto-mode-alist)) | 31 | ;; (setq auto-mode-alist (cons '("\\.icn$" . icon-mode) auto-mode-alist)) |
| @@ -146,8 +148,8 @@ with no args, if that value is non-nil." | |||
| 146 | (setq comment-column 32) | 148 | (setq comment-column 32) |
| 147 | (make-local-variable 'comment-start-skip) | 149 | (make-local-variable 'comment-start-skip) |
| 148 | (setq comment-start-skip "# *") | 150 | (setq comment-start-skip "# *") |
| 149 | (make-local-variable 'comment-indent-hook) | 151 | (make-local-variable 'comment-indent-function) |
| 150 | (setq comment-indent-hook 'icon-comment-indent) | 152 | (setq comment-indent-function 'icon-comment-indent) |
| 151 | (run-hooks 'icon-mode-hook)) | 153 | (run-hooks 'icon-mode-hook)) |
| 152 | 154 | ||
| 153 | ;; This is used by indent-for-comment to decide how much to | 155 | ;; 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 @@ | |||
| 6 | ;; Adapted-By: ESR | 6 | ;; Adapted-By: ESR |
| 7 | ;; Keywords: unix, tools | 7 | ;; Keywords: unix, tools |
| 8 | 8 | ||
| 9 | ;; $Id: makefile.el,v 1.7.1.17 1992/07/15 20:05:15 tom Exp tom $ | 9 | ;; $Id: makefile.el,v 1.3 1992/07/22 02:13:37 eric Exp eric $ |
| 10 | 10 | ||
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | 12 | ||
| @@ -24,6 +24,12 @@ | |||
| 24 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 24 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 25 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 25 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 26 | 26 | ||
| 27 | ;;; Commentary: | ||
| 28 | |||
| 29 | ;; A major mode for editing Makefiles. Hairy. Needs more documentation. | ||
| 30 | ;; If you get familiar with it, please write some and send it to the GNU | ||
| 31 | ;; Emacs maintainers. | ||
| 32 | |||
| 27 | ;;; Code: | 33 | ;;; Code: |
| 28 | 34 | ||
| 29 | (provide 'makefile) | 35 | (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. | |||
| 134 | (setq comment-column 41) | 134 | (setq comment-column 41) |
| 135 | (make-local-variable 'comment-start-skip) | 135 | (make-local-variable 'comment-start-skip) |
| 136 | (setq comment-start-skip "/\\*+ *") | 136 | (setq comment-start-skip "/\\*+ *") |
| 137 | (make-local-variable 'comment-indent-hook) | 137 | (make-local-variable 'comment-indent-function) |
| 138 | (setq comment-indent-hook 'c-comment-indent) | 138 | (setq comment-indent-function 'c-comment-indent) |
| 139 | (make-local-variable 'parse-sexp-ignore-comments) | 139 | (make-local-variable 'parse-sexp-ignore-comments) |
| 140 | (setq parse-sexp-ignore-comments t) | 140 | (setq parse-sexp-ignore-comments t) |
| 141 | (run-hooks 'm2-mode-hook)) | 141 | (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." | |||
| 243 | (setq comment-column 32) | 243 | (setq comment-column 32) |
| 244 | (make-local-variable 'comment-start-skip) | 244 | (make-local-variable 'comment-start-skip) |
| 245 | (setq comment-start-skip "\\(^\\|\\s-\\);?#+ *") | 245 | (setq comment-start-skip "\\(^\\|\\s-\\);?#+ *") |
| 246 | (make-local-variable 'comment-indent-hook) | 246 | (make-local-variable 'comment-indent-function) |
| 247 | (setq comment-indent-hook 'perl-comment-indent) | 247 | (setq comment-indent-function 'perl-comment-indent) |
| 248 | (make-local-variable 'parse-sexp-ignore-comments) | 248 | (make-local-variable 'parse-sexp-ignore-comments) |
| 249 | (setq parse-sexp-ignore-comments nil) | 249 | (setq parse-sexp-ignore-comments nil) |
| 250 | (run-hooks 'perl-mode-hook)) | 250 | (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.") | |||
| 77 | (setq comment-start-skip "%+ *") | 77 | (setq comment-start-skip "%+ *") |
| 78 | (make-local-variable 'comment-column) | 78 | (make-local-variable 'comment-column) |
| 79 | (setq comment-column 48) | 79 | (setq comment-column 48) |
| 80 | (make-local-variable 'comment-indent-hook) | 80 | (make-local-variable 'comment-indent-function) |
| 81 | (setq comment-indent-hook 'prolog-comment-indent)) | 81 | (setq comment-indent-function 'prolog-comment-indent)) |
| 82 | 82 | ||
| 83 | (defun prolog-mode-commands (map) | 83 | (defun prolog-mode-commands (map) |
| 84 | (define-key map "\t" 'prolog-indent-line) | 84 | (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 @@ | |||
| 104 | (setq comment-start-skip ";+[ \t]*") | 104 | (setq comment-start-skip ";+[ \t]*") |
| 105 | (make-local-variable 'comment-column) | 105 | (make-local-variable 'comment-column) |
| 106 | (setq comment-column 40) | 106 | (setq comment-column 40) |
| 107 | (make-local-variable 'comment-indent-hook) | 107 | (make-local-variable 'comment-indent-function) |
| 108 | (setq comment-indent-hook 'scheme-comment-indent) | 108 | (setq comment-indent-function 'scheme-comment-indent) |
| 109 | (setq mode-line-process '("" scheme-mode-line-process))) | 109 | (setq mode-line-process '("" scheme-mode-line-process))) |
| 110 | 110 | ||
| 111 | (defvar scheme-mode-line-process "") | 111 | (defvar scheme-mode-line-process "") |
diff --git a/lisp/textmodes/bib-mode.el b/lisp/textmodes/bib-mode.el index 5a9bd6e0e6f..d772ddcff1e 100644 --- a/lisp/textmodes/bib-mode.el +++ b/lisp/textmodes/bib-mode.el | |||
| @@ -21,14 +21,15 @@ | |||
| 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | 23 | ||
| 24 | ;;; Code: | 24 | ;;; Commentary: |
| 25 | 25 | ||
| 26 | ;; Bib-Mode | ||
| 27 | ;; GNU Emacs code to help maintain databases compatible with (troff) | 26 | ;; GNU Emacs code to help maintain databases compatible with (troff) |
| 28 | ;; refer and lookbib. The file bib-file should be set to your | 27 | ;; refer and lookbib. The file bib-file should be set to your |
| 29 | ;; bibliography file. Keys are automagically inserted as you type, | 28 | ;; bibliography file. Keys are automagically inserted as you type, |
| 30 | ;; and appropriate keys are presented for various kinds of entries. | 29 | ;; and appropriate keys are presented for various kinds of entries. |
| 31 | 30 | ||
| 31 | ;;; Code: | ||
| 32 | |||
| 32 | (defvar bib-file "~/my-bibliography.bib" | 33 | (defvar bib-file "~/my-bibliography.bib" |
| 33 | "Default name of file used by `addbib'.") | 34 | "Default name of file used by `addbib'.") |
| 34 | 35 | ||
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 851bf9f64d9..b441eaa9fbd 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el | |||
| @@ -25,6 +25,13 @@ | |||
| 25 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 25 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 26 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 26 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 27 | 27 | ||
| 28 | ;;; Commentary: | ||
| 29 | |||
| 30 | ;; A major mode for entering and editing BibTex files, validating | ||
| 31 | ;; them, canonicalizing them, and sorting them. Includes entry | ||
| 32 | ;; commands tailored to many different formats (book, master's this, | ||
| 33 | ;; journal article, etc). Has loads of options. | ||
| 34 | |||
| 28 | ;;; Change Log: | 35 | ;;; Change Log: |
| 29 | 36 | ||
| 30 | ;;; alarson@src.honeywell.com 92-Jan-31 | 37 | ;;; alarson@src.honeywell.com 92-Jan-31 |
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index eb2ba5be696..a905bef78d1 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -20,6 +20,11 @@ | |||
| 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to | 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to |
| 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 21 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 22 | 22 | ||
| 23 | ;;; Commentary: | ||
| 24 | |||
| 25 | ;; All the commands for filling text. These are documented in the Emacs | ||
| 26 | ;; manual. | ||
| 27 | |||
| 23 | ;;; Code: | 28 | ;;; Code: |
| 24 | 29 | ||
| 25 | (defconst fill-individual-varying-indent nil | 30 | (defconst fill-individual-varying-indent nil |
diff --git a/lisp/textmodes/ispell4.el b/lisp/textmodes/ispell4.el index ded85446595..4520ebcff0d 100644 --- a/lisp/textmodes/ispell4.el +++ b/lisp/textmodes/ispell4.el | |||
| @@ -20,6 +20,11 @@ | |||
| 20 | ;;along with GNU Emacs; see the file COPYING. If not, write to | 20 | ;;along with GNU Emacs; see the file COPYING. If not, write to |
| 21 | ;;the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 21 | ;;the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 22 | 22 | ||
| 23 | ;;; Commentary: | ||
| 24 | |||
| 25 | ;; This package provides a graceful interface to ispell, the GNU | ||
| 26 | ;; spelling checker. | ||
| 27 | |||
| 23 | ;;; Code: | 28 | ;;; Code: |
| 24 | 29 | ||
| 25 | (defvar ispell-have-new-look t | 30 | (defvar ispell-have-new-look t |
diff --git a/lisp/textmodes/nroff-mode.el b/lisp/textmodes/nroff-mode.el index bc2013412de..5c87ca567ff 100644 --- a/lisp/textmodes/nroff-mode.el +++ b/lisp/textmodes/nroff-mode.el | |||
| @@ -67,8 +67,8 @@ closing requests for requests that are used in matched pairs." | |||
| 67 | (setq comment-start-skip "\\\\\"[ \t]*") | 67 | (setq comment-start-skip "\\\\\"[ \t]*") |
| 68 | (make-local-variable 'comment-column) | 68 | (make-local-variable 'comment-column) |
| 69 | (setq comment-column 24) | 69 | (setq comment-column 24) |
| 70 | (make-local-variable 'comment-indent-hook) | 70 | (make-local-variable 'comment-indent-function) |
| 71 | (setq comment-indent-hook 'nroff-comment-indent) | 71 | (setq comment-indent-function 'nroff-comment-indent) |
| 72 | (run-hooks 'text-mode-hook 'nroff-mode-hook)) | 72 | (run-hooks 'text-mode-hook 'nroff-mode-hook)) |
| 73 | 73 | ||
| 74 | ;;; Compute how much to indent a comment in nroff/troff source. | 74 | ;;; Compute how much to indent a comment in nroff/troff source. |
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index d03e631a91e..b6200ac0bc7 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el | |||
| @@ -89,8 +89,8 @@ Use \\[sgml-validate] to validate your document with an SGML parser." | |||
| 89 | (setq comment-start "<!-- ") | 89 | (setq comment-start "<!-- ") |
| 90 | (make-local-variable 'comment-end) | 90 | (make-local-variable 'comment-end) |
| 91 | (setq comment-end " -->") | 91 | (setq comment-end " -->") |
| 92 | (make-local-variable 'comment-indent-hook) | 92 | (make-local-variable 'comment-indent-function) |
| 93 | (setq comment-indent-hook 'sgml-comment-indent) | 93 | (setq comment-indent-function 'sgml-comment-indent) |
| 94 | (make-local-variable 'comment-start-skip) | 94 | (make-local-variable 'comment-start-skip) |
| 95 | ;; This will allow existing comments within declarations to be | 95 | ;; This will allow existing comments within declarations to be |
| 96 | ;; recognized. | 96 | ;; recognized. |
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index cee97ffa407..7835bfd120a 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -437,8 +437,8 @@ tex-shell-hook is called." | |||
| 437 | (setq comment-start "%") | 437 | (setq comment-start "%") |
| 438 | (make-local-variable 'comment-start-skip) | 438 | (make-local-variable 'comment-start-skip) |
| 439 | (setq comment-start-skip "\\(\\(^\\|[^\\]\\)\\(\\\\\\\\\\)*\\)\\(%+ *\\)") | 439 | (setq comment-start-skip "\\(\\(^\\|[^\\]\\)\\(\\\\\\\\\\)*\\)\\(%+ *\\)") |
| 440 | (make-local-variable 'comment-indent-hook) | 440 | (make-local-variable 'comment-indent-function) |
| 441 | (setq comment-indent-hook 'tex-comment-indent) | 441 | (setq comment-indent-function 'tex-comment-indent) |
| 442 | (make-local-variable 'compare-windows-whitespace) | 442 | (make-local-variable 'compare-windows-whitespace) |
| 443 | (setq compare-windows-whitespace 'tex-categorize-whitespace) | 443 | (setq compare-windows-whitespace 'tex-categorize-whitespace) |
| 444 | (make-local-variable 'tex-command) | 444 | (make-local-variable 'tex-command) |