aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2006-10-11 06:47:35 +0000
committerStefan Monnier2006-10-11 06:47:35 +0000
commit9968f10f12f4c4f0b2458719e9673a52d2e43de3 (patch)
tree14faf3121382c61a46c698350eda324ecd9c07ab
parent4ab89e7b3b31b6056ca9a987b2454851f37c421b (diff)
downloademacs-9968f10f12f4c4f0b2458719e9673a52d2e43de3.tar.gz
emacs-9968f10f12f4c4f0b2458719e9673a52d2e43de3.zip
Merge from upstream, upto version 5.22.
After 5.0: `cperl-add-tags-recurse-noxs-fullpath': new function (for -batch mode) Fine-grained changelog: `cperl-hook-after-change': New configuration variable `cperl-vc-sccs-header': Likewise. `cperl-vc-sccs-header': Likewise. `cperl-vc-header-alist': Default via two preceding variables `cperl-invalid-face': Remove double quoting under XEmacs (still needed under 21.2) `cperl-tips': Update URLs for resources `cperl-problems': Likewise. `cperl-praise': Mention new features New C-c key bindings: for `cperl-find-bad-style', `cperl-pod-spell', `cperl-here-doc-spell', `cperl-narrow-to-here-doc', `cperl-perdoc', `cperl-perldoc-at-point' CPerl Mode menu changes: "Fix style by spaces", "Imenu on Perl Info" moved, new submenu of Tools with Ispell entries and narrowing. `cperl-after-sub-regexp': New defsubst `cperl-imenu--function-name-regexp-perl': Use `cperl-after-sub-regexp', Allows heads up to head4 Allow "package;" `defun-prompt-regexp': Use `cperl-after-sub-regexp', `paren-backwards-message': ??? Something for XEmacs??? `cperl-mode': Never auto-switch abbrev-mode off Try to allow '_' be non-word char Do not use `font-lock-unfontify-region-function' on XEmacs Reset syntax cache on mode start Support multiline facification (even on legacy `font-lock') `cperl-facemenu-add-face-function': ??? Some contributed code ??? `cperl-after-change-function': Since `font-lock' and `lazy-lock' refuse to inform us whether the fontification is due to lazy calling or due to edit to a buffer, install our own hook (controlled by `cperl-hook-after-change') `cperl-electric-pod': =cut may have been recognized as start `cperl-block-p': Moved, updated for attributes `cperl-calculate-indent': Try to allow '_' be non-word char Support subs with attributes `cperl-where-am-i': Queit (?) a warning `cperl-cached-syntax-table' New function `cperl-forward-re': Use `cperl-cached-syntax-table' `cperl-unwind-to-safe': Recognize `syntax-type' property changing in a middle of line `cperl-find-sub-attrs': New function `cperl-find-pods-heres': Allow many <<EOP per line Allow subs with attributes Major speedups (3.5x..15x on a real-life test file nph-proxy.pl) Recognize "extproc " (OS/2) case-folded and only at start /x on s///x with empty replacement was not recognized Better comments `cperl-after-block-p': Remarks on diff with `cperl-block-p' Allow subs with attributes, labels Do not confuse "else::foo" with "else" Minor optimizations... `cperl-after-expr-p': Try to allow '_' be non-word char `cperl-fill-paragraph': Try to detect a major bug in Emacs with `looking-at' inside `narrow' and bulk out if found `cperl-imenu--create-perl-index': Updates for new `cperl-imenu--function-name-regexp-perl' `cperl-outline-level': Likewise `cperl-init-faces': Allow multiline subroutine headers and my/our declarations, and ones with comments Allow subroutine attributes `cperl-imenu-on-info': Better docstring. `cperl-etags' Rudimentary support for attributes Support for packages and "package;" `cperl-add-tags-recurse-noxs': Better (?) docstring `cperl-add-tags-recurse-noxs-fullpath': Likewise `cperl-tags-hier-init': Misprint for `fboundp' fixed `cperl-not-bad-style-regexp': Try to allow '_' be non-word char `cperl-perldoc': Add autoload `cperl-perldoc-at-point': Likewise `cperl-here-doc-spell': New function `cperl-pod-spell': Likewise `cperl-map-pods-heres': Likewise `cperl-get-here-doc-region': Likewise `cperl-font-lock-fontify-region-function': Likewise (backward compatibility for legacy `font-lock') `cperl-font-lock-unfontify-region-function': Fix style `cperl-fontify-syntaxically': Recognize and optimize away deferred calls with no-change. Governed by `cperl-hook-after-change' `cperl-fontify-update': Recognize that syntaxification region can be larger than fontification one. XXXX we leave `cperl-postpone' property, so this is quadratic... `cperl-fontify-update-bad': Temporary placeholder until it is clear how to implement `cperl-fontify-update'. `cperl-time-fontification': New function `attrib-group': New text attribute `multiline': New value: `syntax-type' text attribute
-rw-r--r--lisp/ChangeLog359
1 files changed, 359 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7815c4e0b8c..dfe31d8c196 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,362 @@
12006-10-11 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * progmodes/cperl-mode.el: Merge from upstream, upto version 5.22.
4 After 5.0:
5 `cperl-add-tags-recurse-noxs-fullpath': new function (for -batch mode)
6
7 After 5.1:
8 ;; Major edit. Summary of most visible changes:
9
10 ;; a) Multiple <<HERE per line allowed.
11 ;; b) Handles multiline subroutine declaration headers (with comments).
12 ;; (The exception is `cperl-etags' - but it is not used in the rest
13 ;; of the mode.)
14 ;; c) Fontifies multiline my/our declarations (even with comments,
15 ;; and with legacy `font-lock').
16 ;; d) Major speedup of syntaxification, both immediate and postponed
17 ;; (3.5x to 15x [for different CPUs and versions of Emacs] on the
18 ;; huge real-life document I tested).
19 ;; e) New bindings, edits to imenu.
20 ;; f) "_" is made into word-char during fontification/syntaxification;
21 ;; some attempts to recognize non-word "_" during other operations too.
22 ;; g) Detect bug in Emacs with `looking-at' inside `narrow' and bulk out.
23 ;; h) autoload some more perldoc-related stuff
24 ;; i) Some new convenience features: ISpell POD/HEREDOCs, narrow-to-HEREDOC
25 ;; j) Attempt to incorporate XEmacs edits which reached me
26
27 Fine-grained changelog:
28 `cperl-hook-after-change': New configuration variable
29 `cperl-vc-sccs-header': Likewise.
30 `cperl-vc-sccs-header': Likewise.
31 `cperl-vc-header-alist': Default via two preceding variables
32 `cperl-invalid-face': Remove double quoting under XEmacs
33 (still needed under 21.2)
34 `cperl-tips': Update URLs for resources
35 `cperl-problems': Likewise.
36 `cperl-praise': Mention new features
37 New C-c key bindings: for `cperl-find-bad-style',
38 `cperl-pod-spell', `cperl-here-doc-spell', `cperl-narrow-to-here-doc',
39 `cperl-perdoc', `cperl-perldoc-at-point'
40 CPerl Mode menu changes: "Fix style by spaces", "Imenu on Perl Info"
41 moved, new submenu of Tools with Ispell entries and narrowing.
42 `cperl-after-sub-regexp': New defsubst
43 `cperl-imenu--function-name-regexp-perl': Use `cperl-after-sub-regexp',
44 Allows heads up to head4
45 Allow "package;"
46 `defun-prompt-regexp': Use `cperl-after-sub-regexp',
47 `paren-backwards-message': ??? Something for XEmacs???
48 `cperl-mode': Never auto-switch abbrev-mode off
49 Try to allow '_' be non-word char
50 Do not use `font-lock-unfontify-region-function' on XEmacs
51 Reset syntax cache on mode start
52 Support multiline facification (even
53 on legacy `font-lock')
54 `cperl-facemenu-add-face-function': ??? Some contributed code ???
55 `cperl-after-change-function': Since `font-lock' and `lazy-lock'
56 refuse to inform us whether the fontification is due to lazy
57 calling or due to edit to a buffer, install our own hook
58 (controlled by `cperl-hook-after-change')
59 `cperl-electric-pod': =cut may have been recognized as start
60 `cperl-block-p': Moved, updated for attributes
61 `cperl-calculate-indent': Try to allow '_' be non-word char
62 Support subs with attributes
63 `cperl-where-am-i': Queit (?) a warning
64 `cperl-cached-syntax-table' New function
65 `cperl-forward-re': Use `cperl-cached-syntax-table'
66 `cperl-unwind-to-safe': Recognize `syntax-type' property
67 changing in a middle of line
68 `cperl-find-sub-attrs': New function
69 `cperl-find-pods-heres': Allow many <<EOP per line
70 Allow subs with attributes
71 Major speedups (3.5x..15x on a real-life
72 test file nph-proxy.pl)
73 Recognize "extproc " (OS/2)
74 case-folded and only at start
75 /x on s///x with empty replacement was
76 not recognized
77 Better comments
78 `cperl-after-block-p': Remarks on diff with `cperl-block-p'
79 Allow subs with attributes, labels
80 Do not confuse "else::foo" with "else"
81 Minor optimizations...
82 `cperl-after-expr-p': Try to allow '_' be non-word char
83 `cperl-fill-paragraph': Try to detect a major bug in Emacs
84 with `looking-at' inside `narrow' and bulk out if found
85 `cperl-imenu--create-perl-index': Updates for new
86 `cperl-imenu--function-name-regexp-perl'
87 `cperl-outline-level': Likewise
88 `cperl-init-faces': Allow multiline subroutine headers
89 and my/our declarations, and ones with comments
90 Allow subroutine attributes
91 `cperl-imenu-on-info': Better docstring.
92 `cperl-etags' Rudimentary support for attributes
93 Support for packages and "package;"
94 `cperl-add-tags-recurse-noxs': Better (?) docstring
95 `cperl-add-tags-recurse-noxs-fullpath': Likewise
96 `cperl-tags-hier-init': Misprint for `fboundp' fixed
97 `cperl-not-bad-style-regexp': Try to allow '_' be non-word char
98 `cperl-perldoc': Add autoload
99 `cperl-perldoc-at-point': Likewise
100 `cperl-here-doc-spell': New function
101 `cperl-pod-spell': Likewise
102 `cperl-map-pods-heres': Likewise
103 `cperl-get-here-doc-region': Likewise
104 `cperl-font-lock-fontify-region-function': Likewise (backward compatibility
105 for legacy `font-lock')
106 `cperl-font-lock-unfontify-region-function': Fix style
107 `cperl-fontify-syntaxically': Recognize and optimize away
108 deferred calls with no-change. Governed by `cperl-hook-after-change'
109 `cperl-fontify-update': Recognize that syntaxification region
110 can be larger than fontification one.
111 XXXX we leave `cperl-postpone' property, so this is quadratic...
112 `cperl-fontify-update-bad': Temporary placeholder until
113 it is clear how to implement `cperl-fontify-update'.
114 `cperl-time-fontification': New function
115 `attrib-group': New text attribute
116 `multiline': New value: `syntax-type' text attribute
117
118 After 5.2:
119 `cperl-emulate-lazy-lock': New function
120 `cperl-fontify-syntaxically': Would skip large regions
121 Add `cperl-time-fontification', `cperl-emulate-lazy-lock' to menu
122 Some globals were declared, but uninitialized
123
124 After 5.3, 5.4:
125 `cperl-facemenu-add-face-function': Add docs, fix U<>
126 Copyright message updated.
127 `cperl-init-faces': Work around a bug in `font-lock'. May slow
128 facification down a bit.
129 Misprint for my|our|local for old `font-lock'
130 "our" was not fontified same as "my|local"
131 Highlight variables after "my" etc even in
132 a middle of an expression
133 Do not facify multiple variables after my etc
134 unless parentheses are present
135
136 After 5.5, 5.6
137 `cperl-fontify-syntaxically': after-change hook could reset
138 `cperl-syntax-done-to' to a middle of line; unwind to BOL.
139
140 After 5.7:
141 `cperl-init-faces': Allow highlighting of local ($/)
142 `cperl-problems-old-emaxen': New variable (for the purpose of DOCSTRING).
143 `cperl-problems': Remove fixed problems.
144 `cperl-find-pods-heres': Recognize #-comments in m##x too
145 Recognize charclasses (unless delimiter is \).
146 `cperl-fontify-syntaxically': Unwinding to safe was done in wrong order
147 `cperl-regexp-scan': Update docs
148 `cperl-beautify-regexp-piece': use information got from regexp scan
149
150 After 5.8:
151 Major user visible changes:
152 Recognition and fontification of character classes in RExen.
153 Variable indentation of RExen according to groups
154
155 `cperl-find-pods-heres': Recognize POSIX classes in REx charclasses
156 Fontify REx charclasses in variable-name face
157 Fontify POSIX charclasses in "type" face
158 Fontify unmatched "]" in function-name face
159 Mark first-char of HERE-doc as `front-sticky'
160 Reset `front-sticky' property when needed
161 `cperl-calculate-indent': Indents //x -RExen accordning to parens level
162 `cperl-to-comment-or-eol': Recognize ends of `syntax-type' constructs
163 `cperl-backward-to-noncomment': Recognize stringy `syntax-type' constructs
164 Support `narrow'ed buffers.
165 `cperl-praise': Remove a reservation
166 `cperl-make-indent': New function
167 `cperl-indent-for-comment': Use `cperl-make-indent'
168 `cperl-indent-line': Likewise
169 `cperl-lineup': Likewise
170 `cperl-beautify-regexp-piece': Likewise
171 `cperl-contract-level': Likewise
172 `cperl-toggle-set-debug-unwind': New function
173 New menu entry for this
174 `fill-paragraph-function': Use when `boundp'
175 `cperl-calculate-indent': Take into account groups when indenting RExen
176 `cperl-to-comment-or-eol': Recognize # which end a string
177 `cperl-modify-syntax-type': Make only syntax-table property non-sticky
178 `cperl-fill-paragraph': Return t: needed for `fill-paragraph-function'
179 `cperl-fontify-syntaxically': More clear debugging message
180 `cperl-pod2man-build-command': XEmacs portability: check `Man-filter-list'
181 `cperl-init-faces': More complicated highlight even on XEmacs (new)
182 Merge cosmetic changes from XEmacs
183
184 After 5.9:
185 `cperl-1+': Moved to before the first use
186 `cperl-1-': Likewise
187
188 After 5.10:
189
190 This code may lock Emacs hard!!! Use on your own risk!
191
192 `cperl-font-locking': New internal variable
193 `cperl-beginning-of-property': New function
194 `cperl-calculate-indent': Use `cperl-beginning-of-property'
195 instead of `previous-single-property-change'
196 `cperl-unwind-to-safe': Likewise
197 `cperl-after-expr-p': Likewise
198 `cperl-get-here-doc-region': Likewise
199 `cperl-font-lock-fontify-region-function': Likewise
200 `cperl-to-comment-or-eol': Do not call `cperl-update-syntaxification'
201 recursively
202 Bound `next-single-property-change'
203 via `point-max'
204 `cperl-unwind-to-safe': Bound likewise
205 `cperl-font-lock-fontify-region-function': Likewise
206 `cperl-find-pods-heres': Mark as recursive for `cperl-to-comment-or-eol'
207 Initialization of
208 `cperl-font-lock-multiline-start' could be missed if the "main"
209 fontification did not run due to the keyword being already fontified.
210 `cperl-pod-spell': Return t from do-one-chunk function
211 `cperl-map-pods-heres': Stop when the worker returns nil
212 Call `cperl-update-syntaxification'
213 `cperl-get-here-doc-region': Call `cperl-update-syntaxification'
214 `cperl-get-here-doc-delim': Remove unused function
215
216 After 5.11:
217
218 The possible lockup of Emacs (introduced in 5.10) fixed
219
220 `cperl-unwind-to-safe': `cperl-beginning-of-property' won't return nil
221 `cperl-syntaxify-for-menu': New customization variable
222 `cperl-select-this-pod-or-here-doc': New function
223 `cperl-get-here-doc-region': Extra argument
224 Do not adjust pos by 1
225
226 New menu entries (Perl/Tools): selection of current POD or HERE-DOC section
227 (Debugging CPerl:) backtrace on fontification
228
229 After 5.12:
230 `cperl-cached-syntax-table': use `car-safe'
231 `cperl-forward-re': Remove spurious argument SET-ST
232 Add documentation
233 `cperl-forward-group-in-re': New function
234 `cperl-find-pods-heres': Find and highlight (?{}) blocks in RExen
235 (XXXX Temporary (?) hack is to syntax-mark them as comment)
236
237 After 5.13:
238 `cperl-string-syntax-table': Make { and } not-grouping
239 (Sometimes they ARE grouping in RExen, but matching them would only
240 confuse in many situations when they are not)
241 `beginning-of-buffer': Replaced two occurences with goto-char...
242 `cperl-calculate-indent': `char-after' could be nil...
243 `cperl-find-pods-heres': REx can start after "[" too
244 Hightlight (??{}) in RExen too
245 `cperl-maybe-white-and-comment-rex': New constant
246 `cperl-white-and-comment-rex': Likewise
247 XXXX Not very efficient, but hard to make
248 better while keeping 1 group
249
250 After 5.13:
251 `cperl-find-pods-heres': $foo << identifier() is not a HERE-DOC
252 Likewise for 1 << identifier
253
254 After 5.14:
255 `cperl-find-pods-heres': Different logic for $foo .= <<EOF etc
256 Error-less condition-case could fail
257 `cperl-font-lock-fontify-region-function': Likewise
258 `cperl-init-faces': Likewise
259
260 After 5.15:
261 `cperl-find-pods-heres': Support property REx-part2
262 `cperl-calculate-indent': Likewise
263 Don't special-case REx with non-empty 1st line
264 `cperl-find-pods-heres': In RExen, highlight non-literal backslashes
265 Invert highlighting of charclasses:
266 now the envelop is highlighted
267 Highlight many others 0-length builtins
268 `cperl-praise': Mention indenting and highlight in RExen
269
270 After 5.15:
271 `cperl-find-pods-heres': Highlight capturing parens in REx
272
273 After 5.16:
274 `cperl-find-pods-heres': Highlight '|' for alternation
275 Initialize `font-lock-warning-face' if not present
276 `cperl-find-pods-heres': Use `font-lock-warning-face' instead of
277 `font-lock-function-name-face'
278 `cperl-look-at-leading-count': Likewise
279 `cperl-find-pods-heres': localize `font-lock-variable-name-face'
280 `font-lock-keyword-face' (needed for
281 batch processing) etc
282 Use `font-lock-builtin-face' for builtin in REx
283 Now `font-lock-variable-name-face'
284 is used for interpolated variables
285 Use "talking aliases" for faces inside REx
286 Highlight parts of REx (except in charclasses)
287 according to the syntax and/or semantic
288 Syntax-mark a {}-part of (?{}) as "comment"
289 (it was the ()-part)
290 Better logic to distinguish what is what in REx
291 `cperl-tips-faces': Document REx highlighting
292 `cperl-praise': Mention REx syntax highlight etc.
293
294 After 5.17:
295 `cperl-find-sub-attrs': Would not always manage to print error message
296 `cperl-find-pods-heres': localize `font-lock-constant-face'
297
298 After 5.18:
299 `cperl-find-pods-heres': Misprint in REx for parsing REx
300 Very minor optimization
301 `my-cperl-REx-modifiers-face' got quoted
302 Recognize "print $foo <<END" as HERE-doc
303 Put `REx-interpolated' text attribute if needed
304 `cperl-invert-if-unless-modifiers': New function
305 `cperl-backward-to-start-of-expr': Likewise
306 `cperl-forward-to-end-of-expr': Likewise
307 `cperl-invert-if-unless': Works in "the opposite way" too
308 Cursor position on return is on the switch-word
309 Indents comments better
310 `REx-interpolated': New text attribute
311 `cperl-next-interpolated-REx': New function
312 `cperl-next-interpolated-REx-0': Likewise
313 `cperl-next-interpolated-REx-1': Likewise
314 "\C-c\C-x", "\C-c\C-y", "\C-c\C-v": New keybinding for these functions
315 Perl/Regexp menu: 3 new entries for `cperl-next-interpolated-REx'
316 `cperl-praise': Mention finded interpolated RExen
317
318 After 5.19:
319 `cperl-init-faces': Highlight %$foo, @$foo too
320 `cperl-short-docs': Better docs for system, exec
321 `cperl-find-pods-heres': Better detect << after print {FH} <<EOF etc.
322 Would not find HERE-doc ended by EOF without NL
323 `cperl-short-docs': Correct not-doubled \-escapes
324 start block: Put some `defvar' for stuff gone from XEmacs
325
326 After 5.20:
327 initial comment: Extend copyright, fix email address
328 `cperl-indent-comment-at-column-0': New customization variable
329 `cperl-comment-indent': Indentation after $#a would increasy by 1
330 `cperl-mode': Make `defun-prompt-regexp' grok BEGIN/END etc
331 `cperl-find-pods-heres': Mark CODE of s///e as `syntax-type' `multiline'
332 `cperl-at-end-of-expr': Would fail if @BAR=12 follows after ";"
333 `cperl-init-faces': If `cperl-highlight-variables-indiscriminately'
334 highlight $ in $foo too (UNTESTED)
335 `cperl-set-style': Docstring missed some available styles
336 toplevel: Menubar/Perl/Indent-Styles had FSF, now K&R
337 Change "Current" to "Memorize Current"
338 `cperl-indent-wrt-brace': New customization variable; the default is
339 as for pre-5.2 version
340 `cperl-styles-entries': Keep `cperl-extra-newline-before-brace-multiline'
341 `cperl-style-alist': Likewise
342 `cperl-fix-line-spacing': Support `cperl-merge-trailing-else' being nil,
343 and `cperl-extra-newline-before-brace' etc
344 being t
345 `cperl-indent-exp': Plans B and C to find continuation blocks even
346 if `cperl-extra-newline-before-brace' is t
347
348 After 5.21:
349 Improve some docstrings concerning indentation.
350 `cperl-indent-rules-alist': New variable
351 `cperl-sniff-for-indent': New function name
352 (separated from `cperl-calculate-indent')
353 `cperl-calculate-indent': Separated the sniffer and the indenter;
354 uses `cperl-sniff-for-indent' now
355 `cperl-comment-indent': Test for `cperl-indent-comment-at-column-0'
356 was inverted;
357 Support `comment-column' = 0
358
359
12006-10-11 Martin Rudalics <rudalics@gmx.at> 3602006-10-11 Martin Rudalics <rudalics@gmx.at>
2 361
3 * dnd.el (dnd-handle-one-url): Fix typo in doc-string. 362 * dnd.el (dnd-handle-one-url): Fix typo in doc-string.