Mercurial > emacs
comparison lisp/textmodes/paragraphs.el @ 69818:684aaf007d39
* files.el: Move some `safe-local-variable' declarations to the
respective files.
* textmodes/ispell.el (ispell-check-comments)
(ispell-local-dictionary): Mark as safe.
* abbrev.el (abbrev-mode): Mark as safe.
* add-log.el (change-log-default-name): Mark as safe.
* textmodes/reftex-vars.el (reftex-vref-is-default)
(reftex-fref-is-default, reftex-level-indent)
(reftex-guess-label-type): Mark as safe.
* textmodes/fill.el (colon-double-space): Mark as safe.
* textmodes/paragraphs.el (paragraph-start, paragraph-separate)
(sentence-end-double-space, sentence-end-without-period)
(sentence-end-without-space, sentence-end, sentence-end-base)
(page-delimiter, paragraph-ignore-fill-prefix): Mark as safe.
author | Reiner Steib <Reiner.Steib@gmx.de> |
---|---|
date | Thu, 06 Apr 2006 15:36:24 +0000 |
parents | 067115a6e738 |
children | 196122ba0b05 |
comparison
equal
deleted
inserted
replaced
69817:4521b7c3be30 | 69818:684aaf007d39 |
---|---|
96 | 96 |
97 If the variable `use-hard-newlines' is non-nil, then only lines following a | 97 If the variable `use-hard-newlines' is non-nil, then only lines following a |
98 hard newline are considered to match." | 98 hard newline are considered to match." |
99 :group 'paragraphs | 99 :group 'paragraphs |
100 :type 'regexp) | 100 :type 'regexp) |
101 ;;;###autoload(put 'paragraph-start 'safe-local-variable 'stringp) | |
101 | 102 |
102 ;; paragraph-start requires a hard newline, but paragraph-separate does not: | 103 ;; paragraph-start requires a hard newline, but paragraph-separate does not: |
103 ;; It is assumed that paragraph-separate is distinctive enough to be believed | 104 ;; It is assumed that paragraph-separate is distinctive enough to be believed |
104 ;; whenever it occurs, while it is reasonable to set paragraph-start to | 105 ;; whenever it occurs, while it is reasonable to set paragraph-start to |
105 ;; something very minimal, even including "." (which makes every hard newline | 106 ;; something very minimal, even including "." (which makes every hard newline |
113 the beginning of the line, so it should not use \"^\" as an anchor. This | 114 the beginning of the line, so it should not use \"^\" as an anchor. This |
114 ensures that the paragraph functions will work equally within a region of | 115 ensures that the paragraph functions will work equally within a region of |
115 text indented by a margin setting." | 116 text indented by a margin setting." |
116 :group 'paragraphs | 117 :group 'paragraphs |
117 :type 'regexp) | 118 :type 'regexp) |
119 ;;;###autoload(put 'paragraph-separate 'safe-local-variable 'stringp) | |
118 | 120 |
119 (defcustom sentence-end-double-space t | 121 (defcustom sentence-end-double-space t |
120 "*Non-nil means a single space does not end a sentence. | 122 "*Non-nil means a single space does not end a sentence. |
121 This is relevant for filling. See also `sentence-end-without-period' | 123 This is relevant for filling. See also `sentence-end-without-period' |
122 and `colon-double-space'. | 124 and `colon-double-space'. |
124 This value is used by the function `sentence-end' to construct the | 126 This value is used by the function `sentence-end' to construct the |
125 regexp describing the end of a sentence, when the value of the variable | 127 regexp describing the end of a sentence, when the value of the variable |
126 `sentence-end' is nil. See Info node `(elisp)Standard Regexps'." | 128 `sentence-end' is nil. See Info node `(elisp)Standard Regexps'." |
127 :type 'boolean | 129 :type 'boolean |
128 :group 'fill) | 130 :group 'fill) |
131 ;;;###autoload(put 'sentence-end-double-space 'safe-local-variable t) | |
129 | 132 |
130 (defcustom sentence-end-without-period nil | 133 (defcustom sentence-end-without-period nil |
131 "*Non-nil means a sentence will end without a period. | 134 "*Non-nil means a sentence will end without a period. |
132 For example, a sentence in Thai text ends with double space but | 135 For example, a sentence in Thai text ends with double space but |
133 without a period. | 136 without a period. |
135 This value is used by the function `sentence-end' to construct the | 138 This value is used by the function `sentence-end' to construct the |
136 regexp describing the end of a sentence, when the value of the variable | 139 regexp describing the end of a sentence, when the value of the variable |
137 `sentence-end' is nil. See Info node `(elisp)Standard Regexps'." | 140 `sentence-end' is nil. See Info node `(elisp)Standard Regexps'." |
138 :type 'boolean | 141 :type 'boolean |
139 :group 'fill) | 142 :group 'fill) |
143 ;;;###autoload(put 'sentence-end-without-period 'safe-local-variable t) | |
140 | 144 |
141 (defcustom sentence-end-without-space | 145 (defcustom sentence-end-without-space |
142 "$B!#!%!)!*$A!##.#?#!$(0!$!%!)!*$(G!$!%!)!*(B" | 146 "$B!#!%!)!*$A!##.#?#!$(0!$!%!)!*$(G!$!%!)!*(B" |
143 "*String of characters that end sentence without following spaces. | 147 "*String of characters that end sentence without following spaces. |
144 | 148 |
145 This value is used by the function `sentence-end' to construct the | 149 This value is used by the function `sentence-end' to construct the |
146 regexp describing the end of a sentence, when the value of the variable | 150 regexp describing the end of a sentence, when the value of the variable |
147 `sentence-end' is nil. See Info node `(elisp)Standard Regexps'." | 151 `sentence-end' is nil. See Info node `(elisp)Standard Regexps'." |
148 :group 'paragraphs | 152 :group 'paragraphs |
149 :type 'string) | 153 :type 'string) |
154 ;;;###autoload(put 'sentence-end-without-space 'safe-local-variable t) | |
150 | 155 |
151 (defcustom sentence-end nil | 156 (defcustom sentence-end nil |
152 "*Regexp describing the end of a sentence. | 157 "*Regexp describing the end of a sentence. |
153 The value includes the whitespace following the sentence. | 158 The value includes the whitespace following the sentence. |
154 All paragraph boundaries also end sentences, regardless. | 159 All paragraph boundaries also end sentences, regardless. |
156 The value nil means to use the default value defined by the | 161 The value nil means to use the default value defined by the |
157 function `sentence-end'. You should always use this function | 162 function `sentence-end'. You should always use this function |
158 to obtain the value of this variable." | 163 to obtain the value of this variable." |
159 :group 'paragraphs | 164 :group 'paragraphs |
160 :type '(choice regexp (const :tag "Use default value" nil))) | 165 :type '(choice regexp (const :tag "Use default value" nil))) |
166 ;;;###autoload(put 'sentence-end 'safe-local-variable (lambda (a) (or (stringp a) (null a)))) | |
161 | 167 |
162 (defcustom sentence-end-base "[.?!][]\"'$B!I$,1r}(B)}]*" | 168 (defcustom sentence-end-base "[.?!][]\"'$B!I$,1r}(B)}]*" |
163 "*Regexp matching the basic end of a sentence, not including following space." | 169 "*Regexp matching the basic end of a sentence, not including following space." |
164 :group 'paragraphs | 170 :group 'paragraphs |
165 :type 'string | 171 :type 'string |
166 :version "22.1") | 172 :version "22.1") |
173 ;;;###autoload(put 'sentence-end-base 'safe-local-variable 'stringp) | |
167 | 174 |
168 (defun sentence-end () | 175 (defun sentence-end () |
169 "Return the regexp describing the end of a sentence. | 176 "Return the regexp describing the end of a sentence. |
170 | 177 |
171 This function returns either the value of the variable `sentence-end' | 178 This function returns either the value of the variable `sentence-end' |
189 | 196 |
190 (defcustom page-delimiter "^\014" | 197 (defcustom page-delimiter "^\014" |
191 "*Regexp describing line-beginnings that separate pages." | 198 "*Regexp describing line-beginnings that separate pages." |
192 :group 'paragraphs | 199 :group 'paragraphs |
193 :type 'regexp) | 200 :type 'regexp) |
201 ;;;###autoload(put 'page-delimiter 'safe-local-variable t) | |
194 | 202 |
195 (defcustom paragraph-ignore-fill-prefix nil | 203 (defcustom paragraph-ignore-fill-prefix nil |
196 "*Non-nil means the paragraph commands are not affected by `fill-prefix'. | 204 "*Non-nil means the paragraph commands are not affected by `fill-prefix'. |
197 This is desirable in modes where blank lines are the paragraph delimiters." | 205 This is desirable in modes where blank lines are the paragraph delimiters." |
198 :group 'paragraphs | 206 :group 'paragraphs |
199 :type 'boolean) | 207 :type 'boolean) |
208 ;;;###autoload(put 'paragraph-ignore-fill-prefix 'safe-local-variable t) | |
200 | 209 |
201 (defun forward-paragraph (&optional arg) | 210 (defun forward-paragraph (&optional arg) |
202 "Move forward to end of paragraph. | 211 "Move forward to end of paragraph. |
203 With argument ARG, do it ARG times; | 212 With argument ARG, do it ARG times; |
204 a negative argument ARG = -N means move backward N paragraphs. | 213 a negative argument ARG = -N means move backward N paragraphs. |