diff options
| author | Richard M. Stallman | 1997-04-12 03:18:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-04-12 03:18:33 +0000 |
| commit | bbf5eb2805e13c8e93f512c678054654c0917100 (patch) | |
| tree | 3f3d728b0c8e5c7f7988e6265575f918f6a6539d /lisp/textmodes | |
| parent | 124c852b0a825f7e64e41e4b137fc693060b3c19 (diff) | |
| download | emacs-bbf5eb2805e13c8e93f512c678054654c0917100.tar.gz emacs-bbf5eb2805e13c8e93f512c678054654c0917100.zip | |
Add defgroup's; use defcustom for user vars.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/makeinfo.el | 17 | ||||
| -rw-r--r-- | lisp/textmodes/ooutline.el | 34 |
2 files changed, 37 insertions, 14 deletions
diff --git a/lisp/textmodes/makeinfo.el b/lisp/textmodes/makeinfo.el index a649d522156..d6ee7bbb1c0 100644 --- a/lisp/textmodes/makeinfo.el +++ b/lisp/textmodes/makeinfo.el | |||
| @@ -47,15 +47,24 @@ | |||
| 47 | 47 | ||
| 48 | (require 'compile) | 48 | (require 'compile) |
| 49 | 49 | ||
| 50 | (defvar makeinfo-run-command "makeinfo" | 50 | (defgroup makeinfo nil |
| 51 | "Run makeinfo conveniently" | ||
| 52 | :group 'docs) | ||
| 53 | |||
| 54 | |||
| 55 | (defcustom makeinfo-run-command "makeinfo" | ||
| 51 | "*Command used to run `makeinfo' subjob. | 56 | "*Command used to run `makeinfo' subjob. |
| 52 | The name of the file is appended to this string, separated by a space.") | 57 | The name of the file is appended to this string, separated by a space." |
| 58 | :type 'string | ||
| 59 | :group 'makeinfo) | ||
| 53 | 60 | ||
| 54 | (defvar makeinfo-options "--fill-column=70" | 61 | (defcustom makeinfo-options "--fill-column=70" |
| 55 | "*String containing options for running `makeinfo'. | 62 | "*String containing options for running `makeinfo'. |
| 56 | Do not include `--footnote-style' or `--paragraph-indent'; | 63 | Do not include `--footnote-style' or `--paragraph-indent'; |
| 57 | the proper way to specify those is with the Texinfo commands | 64 | the proper way to specify those is with the Texinfo commands |
| 58 | `@footnotestyle` and `@paragraphindent'.") | 65 | `@footnotestyle` and `@paragraphindent'." |
| 66 | :type 'string | ||
| 67 | :group 'makeinfo) | ||
| 59 | 68 | ||
| 60 | (require 'texinfo) | 69 | (require 'texinfo) |
| 61 | 70 | ||
diff --git a/lisp/textmodes/ooutline.el b/lisp/textmodes/ooutline.el index af053cc3245..558d0a1cffc 100644 --- a/lisp/textmodes/ooutline.el +++ b/lisp/textmodes/ooutline.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; outline.el --- outline mode commands for Emacs | 1 | ;;; outline.el --- outline mode commands for Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1986, 1993, 1994 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1986, 1993, 1994, 1997 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Maintainer: FSF | 5 | ;; Maintainer: FSF |
| 6 | ;; Keywords: outlines | 6 | ;; Keywords: outlines |
| @@ -31,24 +31,34 @@ | |||
| 31 | ;;; Code: | 31 | ;;; Code: |
| 32 | 32 | ||
| 33 | ;; Jan '86, Some new features added by Peter Desnoyers and rewritten by RMS. | 33 | ;; Jan '86, Some new features added by Peter Desnoyers and rewritten by RMS. |
| 34 | 34 | ||
| 35 | (defvar outline-regexp nil | 35 | (defgroup outlines nil |
| 36 | "Support for hierarchical outlining" | ||
| 37 | :prefix "outline-" | ||
| 38 | :group 'editing) | ||
| 39 | |||
| 40 | |||
| 41 | (defcustom outline-regexp nil | ||
| 36 | "*Regular expression to match the beginning of a heading. | 42 | "*Regular expression to match the beginning of a heading. |
| 37 | Any line whose beginning matches this regexp is considered to start a heading. | 43 | Any line whose beginning matches this regexp is considered to start a heading. |
| 38 | The recommended way to set this is with a Local Variables: list | 44 | The recommended way to set this is with a Local Variables: list |
| 39 | in the file it applies to. See also outline-heading-end-regexp.") | 45 | in the file it applies to. See also outline-heading-end-regexp." |
| 46 | :type '(choice regexp (const nil)) | ||
| 47 | :group 'outlines) | ||
| 40 | 48 | ||
| 41 | ;; Can't initialize this in the defvar above -- some major modes have | 49 | ;; Can't initialize this in the defvar above -- some major modes have |
| 42 | ;; already assigned a local value to it. | 50 | ;; already assigned a local value to it. |
| 43 | (or (default-value 'outline-regexp) | 51 | (or (default-value 'outline-regexp) |
| 44 | (setq-default outline-regexp "[*\^L]+")) | 52 | (setq-default outline-regexp "[*\^L]+")) |
| 45 | 53 | ||
| 46 | (defvar outline-heading-end-regexp "[\n\^M]" | 54 | (defcustom outline-heading-end-regexp "[\n\^M]" |
| 47 | "*Regular expression to match the end of a heading line. | 55 | "*Regular expression to match the end of a heading line. |
| 48 | You can assume that point is at the beginning of a heading when this | 56 | You can assume that point is at the beginning of a heading when this |
| 49 | regexp is searched for. The heading ends at the end of the match. | 57 | regexp is searched for. The heading ends at the end of the match. |
| 50 | The recommended way to set this is with a \"Local Variables:\" list | 58 | The recommended way to set this is with a \"Local Variables:\" list |
| 51 | in the file it applies to.") | 59 | in the file it applies to." |
| 60 | :type 'regexp | ||
| 61 | :group 'outlines) | ||
| 52 | 62 | ||
| 53 | (defvar outline-mode-prefix-map nil) | 63 | (defvar outline-mode-prefix-map nil) |
| 54 | 64 | ||
| @@ -129,8 +139,10 @@ in the file it applies to.") | |||
| 129 | (define-key outline-mode-map "\C-c" outline-mode-prefix-map) | 139 | (define-key outline-mode-map "\C-c" outline-mode-prefix-map) |
| 130 | (define-key outline-mode-map [menu-bar] outline-mode-menu-bar-map)) | 140 | (define-key outline-mode-map [menu-bar] outline-mode-menu-bar-map)) |
| 131 | 141 | ||
| 132 | (defvar outline-minor-mode nil | 142 | (defcustom outline-minor-mode nil |
| 133 | "Non-nil if using Outline mode as a minor mode of some other mode.") | 143 | "Non-nil if using Outline mode as a minor mode of some other mode." |
| 144 | :type 'boolean | ||
| 145 | :group 'outlines) | ||
| 134 | (make-variable-buffer-local 'outline-minor-mode) | 146 | (make-variable-buffer-local 'outline-minor-mode) |
| 135 | (put 'outline-minor-mode 'permanent-local t) | 147 | (put 'outline-minor-mode 'permanent-local t) |
| 136 | (or (assq 'outline-minor-mode minor-mode-alist) | 148 | (or (assq 'outline-minor-mode minor-mode-alist) |
| @@ -215,10 +227,12 @@ Turning on outline mode calls the value of `text-mode-hook' and then of | |||
| 215 | (add-hook 'change-major-mode-hook 'show-all) | 227 | (add-hook 'change-major-mode-hook 'show-all) |
| 216 | (run-hooks 'text-mode-hook 'outline-mode-hook)) | 228 | (run-hooks 'text-mode-hook 'outline-mode-hook)) |
| 217 | 229 | ||
| 218 | (defvar outline-minor-mode-prefix "\C-c@" | 230 | (defcustom outline-minor-mode-prefix "\C-c@" |
| 219 | "*Prefix key to use for Outline commands in Outline minor mode. | 231 | "*Prefix key to use for Outline commands in Outline minor mode. |
| 220 | The value of this variable is checked as part of loading Outline mode. | 232 | The value of this variable is checked as part of loading Outline mode. |
| 221 | After that, changing the prefix key requires manipulating keymaps.") | 233 | After that, changing the prefix key requires manipulating keymaps." |
| 234 | :type 'string | ||
| 235 | :group 'outlines) | ||
| 222 | 236 | ||
| 223 | (defvar outline-minor-mode-map nil) | 237 | (defvar outline-minor-mode-map nil) |
| 224 | (if outline-minor-mode-map | 238 | (if outline-minor-mode-map |