Mercurial > emacs
changeset 19475:c8c9212a86a7
Customized.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 22 Aug 1997 21:59:21 +0000 |
parents | 750d8bbecb4f |
children | 4ae9466b064e |
files | lisp/textmodes/nroff-mode.el lisp/textmodes/paragraphs.el |
diffstat | 2 files changed, 47 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/textmodes/nroff-mode.el Fri Aug 22 21:26:45 1997 +0000 +++ b/lisp/textmodes/nroff-mode.el Fri Aug 22 21:59:21 1997 +0000 @@ -35,12 +35,19 @@ ;;; Code: +(defgroup nroff nil + "Nroff mode." + :group 'editing + :prefix "nroff-") + (defvar nroff-mode-abbrev-table nil "Abbrev table used while in nroff mode.") (define-abbrev-table 'nroff-mode-abbrev-table ()) -(defvar nroff-electric-mode nil - "*Non-nil means automatically closing requests when you insert an open.") +(defcustom nroff-electric-mode nil + "*Non-nil means automatically closing requests when you insert an open." + :group 'nroff + :type 'boolean) (defvar nroff-mode-map nil "Major mode keymap for nroff mode.") @@ -57,7 +64,7 @@ (defvar nroff-mode-syntax-table nil "Syntax table used while in nroff mode.") -(defvar nroff-font-lock-keywords +(defcustom nroff-font-lock-keywords (list ;; Directives are . or ' at start of line, followed by ;; optional whitespace, then command (which my be longer than @@ -78,7 +85,9 @@ ) "\\|") "\\)") ) - "Font-lock highlighting control in nroff-mode.") + "Font-lock highlighting control in nroff-mode." + :group 'nroff + :type '(repeat regexp)) ;;;###autoload (defun nroff-mode ()
--- a/lisp/textmodes/paragraphs.el Fri Aug 22 21:26:45 1997 +0000 +++ b/lisp/textmodes/paragraphs.el Fri Aug 22 21:59:21 1997 +0000 @@ -1,6 +1,7 @@ ;;; paragraphs.el --- paragraph and sentence parsing. -;; Copyright (C) 1985, 86, 87, 91, 94, 95, 96 Free Software Foundation, Inc. +;; Copyright (C) 1985, 86, 87, 91, 94, 95, 96, 1997 +;; Free Software Foundation, Inc. ;; Maintainer: FSF ;; Keywords: wp @@ -29,9 +30,16 @@ ;;; Code: -(defvar use-hard-newlines nil +(defgroup paragraphs nil + "Paragraph and sentence parsing." + :group 'editing) + +(defcustom use-hard-newlines nil "Non-nil means to distinguish hard and soft newlines. -See documentation for the `use-hard-newlines' function.") +See documentation for the `use-hard-newlines' function." + :set '(lambda (symbol value) (use-hard-newlines (or value 0))) + :group 'paragraphs + :type 'boolean) (make-variable-buffer-local 'use-hard-newlines) (defun use-hard-newlines (&optional arg insert) @@ -85,7 +93,7 @@ (point) (1+ (point)))))))))))) (setq use-hard-newlines t))) -(defvar paragraph-start "[ \t\n\f]" "\ +(defcustom paragraph-start "[ \t\n\f]" "\ *Regexp for beginning of a line that starts OR separates paragraphs. This regexp should match lines that separate paragraphs and should also match lines that start a paragraph @@ -100,7 +108,9 @@ lines that start paragraphs from lines that separate them. If the variable `use-hard-newlines' is nonnil, then only lines following a -hard newline are considered to match.") +hard newline are considered to match." + :group 'paragraphs + :type 'regexp) ;; paragraph-start requires a hard newline, but paragraph-separate does not: ;; It is assumed that paragraph-separate is distinctive enough to be believed @@ -108,29 +118,37 @@ ;; something very minimal, even including "." (which makes every hard newline ;; start a new paragraph). -(defvar paragraph-separate "[ \t\f]*$" "\ -*Regexp for beginning of a line that separates paragraphs. +(defcustom paragraph-separate "[ \t\f]*$" + "*Regexp for beginning of a line that separates paragraphs. If you change this, you may have to change paragraph-start also. This is matched against the text at the left margin, which is not necessarily the beginning of the line, so it should not use \"^\" as an anchor. This ensures that the paragraph functions will work equally within a region of -text indented by a margin setting.") +text indented by a margin setting." + :group 'paragraphs + :type 'regexp) -(defvar sentence-end (purecopy "[.?!][]\"')}]*\\($\\| $\\|\t\\| \\)[ \t\n]*") "\ -*Regexp describing the end of a sentence. +(defcustom sentence-end (purecopy "[.?!][]\"')}]*\\($\\| $\\|\t\\| \\)[ \t\n]*") + "*Regexp describing the end of a sentence. All paragraph boundaries also end sentences, regardless. In order to be recognized as the end of a sentence, the ending period, question mark, or exclamation point must be followed by two spaces, -unless it's inside some sort of quotes or parenthesis.") +unless it's inside some sort of quotes or parenthesis." + :group 'paragraphs + :type 'regexp) -(defvar page-delimiter "^\014" "\ -*Regexp describing line-beginnings that separate pages.") +(defcustom page-delimiter "^\014" + "*Regexp describing line-beginnings that separate pages." + :group 'paragraphs + :type 'regexp) -(defvar paragraph-ignore-fill-prefix nil "\ -Non-nil means the paragraph commands are not affected by `fill-prefix'. -This is desirable in modes where blank lines are the paragraph delimiters.") +(defcustom paragraph-ignore-fill-prefix nil + "*Non-nil means the paragraph commands are not affected by `fill-prefix'. +This is desirable in modes where blank lines are the paragraph delimiters." + :group 'paragraphs + :type 'boolean) (defun forward-paragraph (&optional arg) "Move forward to end of paragraph.