diff options
| author | Richard M. Stallman | 1997-05-05 15:00:53 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-05 15:00:53 +0000 |
| commit | 9d325ebf0d4ff46c16515abcfb17310b246b4b86 (patch) | |
| tree | 4ec72180004e606a0ad3012504cd4c310e61c9c1 | |
| parent | 69c1dd37e33fdfc03617413a453c1fcfb3cd0551 (diff) | |
| download | emacs-9d325ebf0d4ff46c16515abcfb17310b246b4b86.tar.gz emacs-9d325ebf0d4ff46c16515abcfb17310b246b4b86.zip | |
Use defgroup and defcustom.
| -rw-r--r-- | lisp/replace.el | 18 | ||||
| -rw-r--r-- | lisp/textmodes/fill.el | 46 |
2 files changed, 44 insertions, 20 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index d1acbc6309b..67c02026352 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -26,8 +26,10 @@ | |||
| 26 | 26 | ||
| 27 | ;;; Code: | 27 | ;;; Code: |
| 28 | 28 | ||
| 29 | (defvar case-replace t "\ | 29 | (defcustom case-replace t |
| 30 | *Non-nil means query-replace should preserve case in replacements.") | 30 | "*Non-nil means query-replace should preserve case in replacements." |
| 31 | :type 'boolean | ||
| 32 | :group 'matching) | ||
| 31 | 33 | ||
| 32 | (defvar query-replace-history nil) | 34 | (defvar query-replace-history nil) |
| 33 | 35 | ||
| @@ -327,10 +329,12 @@ Alternatively, click \\[occur-mode-mouse-goto] on an item to go to it. | |||
| 327 | (pop-to-buffer occur-buffer) | 329 | (pop-to-buffer occur-buffer) |
| 328 | (goto-char (marker-position pos)))) | 330 | (goto-char (marker-position pos)))) |
| 329 | 331 | ||
| 330 | (defvar list-matching-lines-default-context-lines 0 | 332 | (defcustom list-matching-lines-default-context-lines 0 |
| 331 | "*Default number of context lines to include around a `list-matching-lines' | 333 | "*Default number of context lines to include around a `list-matching-lines' |
| 332 | match. A negative number means to include that many lines before the match. | 334 | match. A negative number means to include that many lines before the match. |
| 333 | A positive number means to include that many lines both before and after.") | 335 | A positive number means to include that many lines both before and after." |
| 336 | :type 'integer | ||
| 337 | :group 'matching) | ||
| 334 | 338 | ||
| 335 | (defalias 'list-matching-lines 'occur) | 339 | (defalias 'list-matching-lines 'occur) |
| 336 | 340 | ||
| @@ -740,8 +744,10 @@ which will run faster and probably do exactly what you want." | |||
| 740 | (if (= replace-count 1) "" "s"))) | 744 | (if (= replace-count 1) "" "s"))) |
| 741 | (and keep-going stack))) | 745 | (and keep-going stack))) |
| 742 | 746 | ||
| 743 | (defvar query-replace-highlight nil | 747 | (defcustom query-replace-highlight nil |
| 744 | "*Non-nil means to highlight words during query replacement.") | 748 | "*Non-nil means to highlight words during query replacement." |
| 749 | :type 'boolean | ||
| 750 | :group 'matching) | ||
| 745 | 751 | ||
| 746 | (defvar replace-overlay nil) | 752 | (defvar replace-overlay nil) |
| 747 | 753 | ||
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 6a8d6e7b132..805a11eceed 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -28,18 +28,24 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (defvar fill-individual-varying-indent nil | 31 | (defcustom fill-individual-varying-indent nil |
| 32 | "*Controls criterion for a new paragraph in `fill-individual-paragraphs'. | 32 | "*Controls criterion for a new paragraph in `fill-individual-paragraphs'. |
| 33 | Non-nil means changing indent doesn't end a paragraph. | 33 | Non-nil means changing indent doesn't end a paragraph. |
| 34 | That mode can handle paragraphs with extra indentation on the first line, | 34 | That mode can handle paragraphs with extra indentation on the first line, |
| 35 | but it requires separator lines between paragraphs. | 35 | but it requires separator lines between paragraphs. |
| 36 | A value of nil means that any change in indentation starts a new paragraph.") | 36 | A value of nil means that any change in indentation starts a new paragraph." |
| 37 | :type 'boolean | ||
| 38 | :group 'fill) | ||
| 37 | 39 | ||
| 38 | (defvar sentence-end-double-space t | 40 | (defcustom sentence-end-double-space t |
| 39 | "*Non-nil means a single space does not end a sentence.") | 41 | "*Non-nil means a single space does not end a sentence." |
| 42 | :type 'boolean | ||
| 43 | :group 'fill) | ||
| 40 | 44 | ||
| 41 | (defvar colon-double-space nil | 45 | (defcustom colon-double-space nil |
| 42 | "*Non-nil means put two spaces after a colon when filling.") | 46 | "*Non-nil means put two spaces after a colon when filling." |
| 47 | :type 'boolean | ||
| 48 | :group 'fill) | ||
| 43 | 49 | ||
| 44 | (defvar fill-paragraph-function nil | 50 | (defvar fill-paragraph-function nil |
| 45 | "Mode-specific function to fill a paragraph, or nil if there is none. | 51 | "Mode-specific function to fill a paragraph, or nil if there is none. |
| @@ -63,19 +69,25 @@ reinserts the fill prefix in each resulting line." | |||
| 63 | (message "fill-prefix: \"%s\"" fill-prefix) | 69 | (message "fill-prefix: \"%s\"" fill-prefix) |
| 64 | (message "fill-prefix cancelled"))) | 70 | (message "fill-prefix cancelled"))) |
| 65 | 71 | ||
| 66 | (defvar adaptive-fill-mode t | 72 | (defcustom adaptive-fill-mode t |
| 67 | "*Non-nil means determine a paragraph's fill prefix from its text.") | 73 | "*Non-nil means determine a paragraph's fill prefix from its text." |
| 74 | :type 'boolean | ||
| 75 | :group 'fill) | ||
| 68 | 76 | ||
| 69 | (defvar adaptive-fill-regexp "[ \t]*\\([#;>*]+ +\\)?" | 77 | (defcustom adaptive-fill-regexp "[ \t]*\\([#;>*]+ +\\)?" |
| 70 | "*Regexp to match text at start of line that constitutes indentation. | 78 | "*Regexp to match text at start of line that constitutes indentation. |
| 71 | If Adaptive Fill mode is enabled, whatever text matches this pattern | 79 | If Adaptive Fill mode is enabled, whatever text matches this pattern |
| 72 | on the second line of a paragraph is used as the standard indentation | 80 | on the second line of a paragraph is used as the standard indentation |
| 73 | for the paragraph. If the paragraph has just one line, the indentation | 81 | for the paragraph. If the paragraph has just one line, the indentation |
| 74 | is taken from that line.") | 82 | is taken from that line." |
| 83 | :type 'regexp | ||
| 84 | :group 'fill) | ||
| 75 | 85 | ||
| 76 | (defvar adaptive-fill-function nil | 86 | (defcustom adaptive-fill-function nil |
| 77 | "*Function to call to choose a fill prefix for a paragraph. | 87 | "*Function to call to choose a fill prefix for a paragraph. |
| 78 | This function is used when `adaptive-fill-regexp' does not match.") | 88 | This function is used when `adaptive-fill-regexp' does not match." |
| 89 | :type 'function | ||
| 90 | :group 'fill) | ||
| 79 | 91 | ||
| 80 | (defun current-fill-column () | 92 | (defun current-fill-column () |
| 81 | "Return the fill-column to use for this line. | 93 | "Return the fill-column to use for this line. |
| @@ -518,12 +530,18 @@ space does not end a sentence, so don't break a line there." | |||
| 518 | (goto-char end))))))) | 530 | (goto-char end))))))) |
| 519 | 531 | ||
| 520 | 532 | ||
| 521 | (defvar default-justification 'left | 533 | (defcustom default-justification 'left |
| 522 | "*Method of justifying text not otherwise specified. | 534 | "*Method of justifying text not otherwise specified. |
| 523 | Possible values are `left', `right', `full', `center', or `none'. | 535 | Possible values are `left', `right', `full', `center', or `none'. |
| 524 | The requested kind of justification is done whenever lines are filled. | 536 | The requested kind of justification is done whenever lines are filled. |
| 525 | The `justification' text-property can locally override this variable. | 537 | The `justification' text-property can locally override this variable. |
| 526 | This variable automatically becomes buffer-local when set in any fashion.") | 538 | This variable automatically becomes buffer-local when set in any fashion." |
| 539 | :type '(choice (const left) | ||
| 540 | (const right) | ||
| 541 | (const full) | ||
| 542 | (const center) | ||
| 543 | (const none)) | ||
| 544 | :group 'fill) | ||
| 527 | (make-variable-buffer-local 'default-justification) | 545 | (make-variable-buffer-local 'default-justification) |
| 528 | 546 | ||
| 529 | (defun current-justification () | 547 | (defun current-justification () |