aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-04-08 15:27:49 +0000
committerStefan Monnier2008-04-08 15:27:49 +0000
commit7d562742816b4c550d8c4dd3f31887d5ea757f4e (patch)
treee59192e99621e0dfebb46eeaefe920ba93487a16
parentcfab57d770f10355a4a164042ca2321a3c72e563 (diff)
downloademacs-7d562742816b4c550d8c4dd3f31887d5ea757f4e.tar.gz
emacs-7d562742816b4c550d8c4dd3f31887d5ea757f4e.zip
(c-basic-common-init): Don't set
font-lock-extend-after-change-region-function globally.
-rw-r--r--lisp/ChangeLog104
-rw-r--r--lisp/progmodes/cc-mode.el2
2 files changed, 46 insertions, 60 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6ff322cd958..89c3b493858 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * progmodes/cc-mode.el (c-basic-common-init): Don't set
4 font-lock-extend-after-change-region-function globally.
5
12008-04-08 Carsten Dominik <dominik@science.uva.nl> 62008-04-08 Carsten Dominik <dominik@science.uva.nl>
2 7
3 * textmodes/org-export-latex.el: New file. 8 * textmodes/org-export-latex.el: New file.
@@ -121,8 +126,7 @@
121 (org-remember-templates, org-time-stamp-rounding-minutes) 126 (org-remember-templates, org-time-stamp-rounding-minutes)
122 (org-back-over-empty-lines, org-find-base-buffer-visiting) 127 (org-back-over-empty-lines, org-find-base-buffer-visiting)
123 (org-columns-new): Fix typos in docstrings. 128 (org-columns-new): Fix typos in docstrings.
124 (org-ctrl-c-star): Implement a missing branch in the decision 129 (org-ctrl-c-star): Implement a missing branch in the decision tree.
125 tree.
126 (org-select-remember-template): Clean the code. 130 (org-select-remember-template): Clean the code.
127 (org-prepare-dblock): Add the extra :content parameter. 131 (org-prepare-dblock): Add the extra :content parameter.
128 (org-write-agenda): New output type ".ics" files. 132 (org-write-agenda): New output type ".ics" files.
@@ -130,8 +134,7 @@
130 time stamps and for TODO entries. 134 time stamps and for TODO entries.
131 (org-export-as-html): Revert the change that killed the html 135 (org-export-as-html): Revert the change that killed the html
132 buffer. Side effects first need to be studied carefully. 136 buffer. Side effects first need to be studied carefully.
133 (org-get-tags-at): Fix the structure of the condition-case 137 (org-get-tags-at): Fix the structure of the condition-case statement.
134 statement.
135 (org-ts-regexp0, org-repeat-re, org-display-custom-time) 138 (org-ts-regexp0, org-repeat-re, org-display-custom-time)
136 (org-timestamp-change): Fix regulear expressions to swallow the 139 (org-timestamp-change): Fix regulear expressions to swallow the
137 extra character for repeat-shift control. 140 extra character for repeat-shift control.
@@ -144,8 +147,8 @@
144 (org-timestamp-change, org-modify-ts-extra) 147 (org-timestamp-change, org-modify-ts-extra)
145 (org-ts-regexp1): Fix timestamp editing. 148 (org-ts-regexp1): Fix timestamp editing.
146 (org-agenda-custom-commands-local-options): New constant. 149 (org-agenda-custom-commands-local-options): New constant.
147 (org-agenda-custom-commands): Use 150 (org-agenda-custom-commands):
148 `org-agenda-custom-commands-local-options' to improve customize 151 Use `org-agenda-custom-commands-local-options' to improve customize
149 type. "htmlize": Removed hack to fix face problem with htmlize, 152 type. "htmlize": Removed hack to fix face problem with htmlize,
150 it no longer seem necessary. 153 it no longer seem necessary.
151 (org-follow-link-hook): New hook. 154 (org-follow-link-hook): New hook.
@@ -181,18 +184,15 @@
181 org-export-html-extension. 184 org-export-html-extension.
182 (org-store-link): Support for links from `rmail-summary-mode'. 185 (org-store-link): Support for links from `rmail-summary-mode'.
183 (org-columns-new, org-complete, org-set-property): Set the 186 (org-columns-new, org-complete, org-set-property): Set the
184 `include-columns' argument in the call to 187 `include-columns' argument in the call to `org-buffer-property-keys'.
185 `org-buffer-property-keys'.
186 (org-buffer-property-keys): New argument `include-columns', to 188 (org-buffer-property-keys): New argument `include-columns', to
187 include properties expected by any of the COLUMS formats in the 189 include properties expected by any of the COLUMS formats in the
188 current buffer. 190 current buffer.
189 (org-cleaned-string-for-export): Get rid of drawers first, so that 191 (org-cleaned-string-for-export): Get rid of drawers first, so that
190 they will be removed also in the text before the first headline. 192 they will be removed also in the text before the first headline.
191 (org-clock-report): Show the clocktable when found. 193 (org-clock-report): Show the clocktable when found.
192 (org-refile): Fix positioning bug when `org-reverse-note-order' is 194 (org-refile): Fix positioning bug when `org-reverse-note-order' is nil.
193 nil. 195 (org-version): With prefix argument, insert `org-version' at point.
194 (org-version): With prefix argument, insert `org-version' at
195 point.
196 (org-agenda-goto): Recenter the window after finding the target 196 (org-agenda-goto): Recenter the window after finding the target
197 location, to make sure the correct position will be displayed. 197 location, to make sure the correct position will be displayed.
198 (org-agenda-get-deadlines): Don't scale priority with the warning 198 (org-agenda-get-deadlines): Don't scale priority with the warning
@@ -202,9 +202,8 @@
202 be 0. 202 be 0.
203 (org-update-checkbox-count): Revamp to deal with hierarchical 203 (org-update-checkbox-count): Revamp to deal with hierarchical
204 beckboxes. This was a patch from Miguel A. Figueroa-Villanueva. 204 beckboxes. This was a patch from Miguel A. Figueroa-Villanueva.
205 (org-schedule, org-deadline): Use 205 (org-schedule, org-deadline): Use `org-remove-timestamp-with-keyword'
206 `org-remove-timestamp-with-keyword' to make sure all such time 206 to make sure all such time stamps are removed.
207 stamps are removed.
208 (org-mode): Support for `align'. 207 (org-mode): Support for `align'.
209 (org-agenda-get-deadlines): Make sure priorities increase as the 208 (org-agenda-get-deadlines): Make sure priorities increase as the
210 due date approaches and is passed. 209 due date approaches and is passed.
@@ -258,8 +257,7 @@
258 (org-flag-drawer): Use the original value of `outline-regexp'. 257 (org-flag-drawer): Use the original value of `outline-regexp'.
259 (org-remember-handler): Add invisible-ok flag to call to 258 (org-remember-handler): Add invisible-ok flag to call to
260 `org-end-of-subtree'. 259 `org-end-of-subtree'.
261 (org-agenda-highlight-todo): Respect 260 (org-agenda-highlight-todo): Respect `org-agenda-todo-keyword-format'.
262 `org-agenda-todo-keyword-format'.
263 (org-infile-export-plist): No restriction while searching for 261 (org-infile-export-plist): No restriction while searching for
264 options. 262 options.
265 (org-remember-handler): Remove comments at the end of the buffer. 263 (org-remember-handler): Remove comments at the end of the buffer.
@@ -277,8 +275,7 @@
277 (org-open-file): Allow multiple %s in command. 275 (org-open-file): Allow multiple %s in command.
278 (org-get-refile-targets): Interpret the new maxlevel setting. 276 (org-get-refile-targets): Interpret the new maxlevel setting.
279 (org-refile-targets): New option `:maxlevel'. 277 (org-refile-targets): New option `:maxlevel'.
280 (org-copy-subtree): Include empty lines before but not after 278 (org-copy-subtree): Include empty lines before but not after subtree.
281 subtree.
282 (org-move-item-down, org-move-item-up): Include empty lines before 279 (org-move-item-down, org-move-item-up): Include empty lines before
283 but not after item. 280 but not after item.
284 (org-remember-apply-template): Defaults, completions and history 281 (org-remember-apply-template): Defaults, completions and history
@@ -306,12 +303,11 @@
306 (org-cleaned-string-for-export): Protect verbatim elements. 303 (org-cleaned-string-for-export): Protect verbatim elements.
307 (org-additional-option-like-keywords): Add new keywords. 304 (org-additional-option-like-keywords): Add new keywords.
308 (org-get-entry): Rename from `org-get-cleaned-entry'. 305 (org-get-entry): Rename from `org-get-cleaned-entry'.
309 (org-agenda-get-scheduled, org-agenda-get-blocks): Use 306 (org-agenda-get-scheduled, org-agenda-get-blocks):
310 `org-agenda-skip-scheduled-if-done'. 307 Use `org-agenda-skip-scheduled-if-done'.
311 (org-prepare-agenda-buffers): Allow buffers as arguments. 308 (org-prepare-agenda-buffers): Allow buffers as arguments.
312 (org-entry-properties): Add CATEGORY as a special property. 309 (org-entry-properties): Add CATEGORY as a special property.
313 (org-use-property-inheritance): Allow a list of properties as a 310 (org-use-property-inheritance): Allow a list of properties as a value.
314 value.
315 (org-eval-in-calendar): No longer update the prompt. 311 (org-eval-in-calendar): No longer update the prompt.
316 (org-read-date-popup-calendar): Rename from 312 (org-read-date-popup-calendar): Rename from
317 `org-popup-calendar-for-date-prompt'. 313 `org-popup-calendar-for-date-prompt'.
@@ -361,8 +357,7 @@
361 (org-version): Change to 5.13e. 357 (org-version): Change to 5.13e.
362 (org-agenda-file-regexp): Fix typo in docstring. 358 (org-agenda-file-regexp): Fix typo in docstring.
363 (org-add-planning-info): Fix bug in parenthesis settings. 359 (org-add-planning-info): Fix bug in parenthesis settings.
364 (org-scan-tags): Catch the case of indirect buffers with no 360 (org-scan-tags): Catch the case of indirect buffers with no filename.
365 filename.
366 (org-fast-tag-selection, org-export-as-ascii, org-export-as-html): 361 (org-fast-tag-selection, org-export-as-ascii, org-export-as-html):
367 Re-install switch to mapc, had been removed by accident. 362 Re-install switch to mapc, had been removed by accident.
368 (org-columns-map): New binding `C-c C-o'. 363 (org-columns-map): New binding `C-c C-o'.
@@ -380,11 +375,9 @@
380 (org-todo-blocker-hook, org-todo-trigger-hook): New hooks. 375 (org-todo-blocker-hook, org-todo-trigger-hook): New hooks.
381 (org-remember-apply-template): Catch C-g and make sure window 376 (org-remember-apply-template): Catch C-g and make sure window
382 configuration is restored. 377 configuration is restored.
383 (org-agenda-open-link): Make it work with several links in the 378 (org-agenda-open-link): Make it work with several links in the line.
384 line.
385 (org-drawers, org-set-regexps-and-options) 379 (org-drawers, org-set-regexps-and-options)
386 (org-get-current-options): Add support for a DRAWERS in-buffer 380 (org-get-current-options): Add support for a DRAWERS in-buffer option.
387 option.
388 (org-fit-agenda-window): Use `org-agenda-window-frame-fractions'. 381 (org-fit-agenda-window): Use `org-agenda-window-frame-fractions'.
389 (org-agenda-to-appt): Require calendar. 382 (org-agenda-to-appt): Require calendar.
390 (org-entry-get-with-inheritance): Widen for search. 383 (org-entry-get-with-inheritance): Widen for search.
@@ -396,8 +389,7 @@
396 (org-remember-templates): Customization interface improved. 389 (org-remember-templates): Customization interface improved.
397 (org-export-with-property-drawer): Variable removed. 390 (org-export-with-property-drawer): Variable removed.
398 (org-sort-entries): Rewrite using `sort-subr'. 391 (org-sort-entries): Rewrite using `sort-subr'.
399 (org-set-property): More appropriate completion during interactive 392 (org-set-property): More appropriate completion during interactive use.
400 use.
401 (org-sort-entries): Allow sorting by property. 393 (org-sort-entries): Allow sorting by property.
402 (org-additional-option-like-keywords): Add more values. 394 (org-additional-option-like-keywords): Add more values.
403 (org-sort-entries-or-items): Rename from `org-sort-entries'. 395 (org-sort-entries-or-items): Rename from `org-sort-entries'.
@@ -436,17 +428,15 @@
436 `org-agenda-align-tags-to-column'. 428 `org-agenda-align-tags-to-column'.
437 (org-agenda-align-tags): Allow negative values for 429 (org-agenda-align-tags): Allow negative values for
438 `org-agenda-tags-column'. 430 `org-agenda-tags-column'.
439 (org-insert-labeled-timestamps-before-properties-drawer): Remove 431 (org-insert-labeled-timestamps-before-properties-drawer): Remove var.
440 var.
441 (org-agenda-to-appt): New optional argument FILTER. 432 (org-agenda-to-appt): New optional argument FILTER.
442 (org-complete): Use `org-completion-fallback-command'. 433 (org-complete): Use `org-completion-fallback-command'.
443 (org-find-base-buffer-visiting): Catch the case that there is no 434 (org-find-base-buffer-visiting): Catch the case that there is no
444 buffer visiting the file. 435 buffer visiting the file.
445 (org-todo): Use `org-property-or-variable-value' 436 (org-todo): Use `org-property-or-variable-value'
446 (org-prepare-agenda, org-agenda-list): Use 437 (org-prepare-agenda, org-agenda-list): Use `org-agenda-compact-blocks'.
447 `org-agenda-compact-blocks'. 438 (org-agenda-schedule, org-agenda-deadline):
448 (org-agenda-schedule, org-agenda-deadline): Call 439 Call `org-agenda-show-new-time'.
449 `org-agenda-show-new-time'.
450 (org-agenda-show-new-time): New argument PREFIX. 440 (org-agenda-show-new-time): New argument PREFIX.
451 (org-colgroup-info-to-vline-list): Fix but that cause a shift in 441 (org-colgroup-info-to-vline-list): Fix but that cause a shift in
452 the vertical lines. 442 the vertical lines.
@@ -469,8 +459,7 @@
469 (org-set-tags, org-entry-properties): Call `org-get-tags-string' 459 (org-set-tags, org-entry-properties): Call `org-get-tags-string'
470 instead of `org-get-tags'. 460 instead of `org-get-tags'.
471 (org-agenda-format-date): Rename from `org-agenda-date-format'. 461 (org-agenda-format-date): Rename from `org-agenda-date-format'.
472 (org-time-from-absolute, org-agenda-format-date-aligned): New 462 (org-time-from-absolute, org-agenda-format-date-aligned): New funs.
473 funs.
474 (org-compatible-face): New argument INHERITS. Inherit from this 463 (org-compatible-face): New argument INHERITS. Inherit from this
475 face if possible. 464 face if possible.
476 (org-level-1, org-level-2, org-level-3, org-level-4) 465 (org-level-1, org-level-2, org-level-3, org-level-4)
@@ -491,8 +480,8 @@
491 `org-occur'. 480 `org-occur'.
492 (org-goto): Made into a general lookup command. 481 (org-goto): Made into a general lookup command.
493 (org-get-location): Complete rewrite. 482 (org-get-location): Complete rewrite.
494 (org-goto-ret, org-goto-left, org-goto-right, org-goto-quit): Set 483 (org-goto-ret, org-goto-left, org-goto-right, org-goto-quit):
495 the new variables. 484 Set the new variables.
496 (org-paste-subtree): Whitespace insertion strategy revised. 485 (org-paste-subtree): Whitespace insertion strategy revised.
497 (org-remember-apply-template): Protect v-A from the possibility 486 (org-remember-apply-template): Protect v-A from the possibility
498 that v-a might be nil. 487 that v-a might be nil.
@@ -535,8 +524,8 @@
535 (org-fast-tag-selection): Allow setting TODO states through this 524 (org-fast-tag-selection): Allow setting TODO states through this
536 interface. 525 interface.
537 (org-cycle): Docstring updated. 526 (org-cycle): Docstring updated.
538 (org-set-font-lock-defaults, org-agenda-highlight-todo): Use 527 (org-set-font-lock-defaults, org-agenda-highlight-todo):
539 `org-get-todo-face'. 528 Use `org-get-todo-face'.
540 (org-table-edit-field, org-table-show-reference) 529 (org-table-edit-field, org-table-show-reference)
541 (org-table-edit-formulas, org-add-log-note) 530 (org-table-edit-formulas, org-add-log-note)
542 (org-fast-tag-selection, org-agenda, org-prepare-agenda) 531 (org-fast-tag-selection, org-agenda, org-prepare-agenda)
@@ -544,8 +533,8 @@
544 `switch-to-buffer-other-window' to make sure that the temporary 533 `switch-to-buffer-other-window' to make sure that the temporary
545 windows show up on the current frame. 534 windows show up on the current frame.
546 (org-mhe-get-message-real-folder, org-batch-store-agenda-views) 535 (org-mhe-get-message-real-folder, org-batch-store-agenda-views)
547 (org-get-entries-from-diary, org-replace-region-by-html): Don't 536 (org-get-entries-from-diary, org-replace-region-by-html):
548 allow pop-up frames. 537 Don't allow pop-up frames.
549 (org-agenda-get-deadlines, org-agenda-get-scheduled): Fix problems 538 (org-agenda-get-deadlines, org-agenda-get-scheduled): Fix problems
550 with time-of-day. 539 with time-of-day.
551 (org-agenda-get-scheduled, org-agenda-get-deadlines): Fix problems 540 (org-agenda-get-scheduled, org-agenda-get-deadlines): Fix problems
@@ -578,8 +567,7 @@
578 (org-store-link): Call the functions in 567 (org-store-link): Call the functions in
579 `org-store-link-functions'. 568 `org-store-link-functions'.
580 (org-activate-tags): Force matches to be in headlines. 569 (org-activate-tags): Force matches to be in headlines.
581 (org-batch-store-agenda-views): Fix bug with killing agenda 570 (org-batch-store-agenda-views): Fix bug with killing agenda buffer.
582 buffer.
583 (org-columns-display-here): Make sure this works in a narrowed 571 (org-columns-display-here): Make sure this works in a narrowed
584 buffer by checking for point-min. 572 buffer by checking for point-min.
585 (org-columns-display-here): Make the rest of the line intangible, 573 (org-columns-display-here): Make the rest of the line intangible,
@@ -599,20 +587,18 @@
599 (org-export-as-ascii, org-export-as-html): Use `inhibit-read-only' 587 (org-export-as-ascii, org-export-as-html): Use `inhibit-read-only'
600 instead of `buffer-read-only'. 588 instead of `buffer-read-only'.
601 (org-export-as-html): Set `coding-system-for-write'. 589 (org-export-as-html): Set `coding-system-for-write'.
602 (org-archive-subtree): Fixed bug with modifying TODO keyword. 590 (org-archive-subtree): Fix bug with modifying TODO keyword.
603 (org-beginning-of-line): Also treat C-a special in items. 591 (org-beginning-of-line): Also treat C-a special in items.
604 (org-table-convert-refs-to-rc): Fixed problem with column 592 (org-table-convert-refs-to-rc): Fix problem with column
605 reference after "..". 593 reference after "..".
606 (org-columns-compute): Don't mark buffer modified because of text 594 (org-columns-compute): Don't mark buffer modified because of text
607 properties. 595 properties.
608 (org-batch-store-agenda-views): Use the variable 596 (org-batch-store-agenda-views): Use the variable
609 `default-directory', not the function. 597 `default-directory', not the function.
610 (org-clock-out-if-current): Respect `org-clock-out-when-done'. 598 (org-clock-out-if-current): Respect `org-clock-out-when-done'.
611 (org-html-entities): Added HTML entities for smileys. 599 (org-html-entities): Add HTML entities for smileys.
612 (org-end-of-line): Move to end of line if in headline without 600 (org-end-of-line): Move to end of line if in headline without tags.
613 tags. 601 (org-agenda-day-view, org-agenda-week-view): Remember span as default.
614 (org-agenda-day-view, org-agenda-week-view): Remember span as
615 default.
616 (org-columns-edit-value): Rename from `org-column-edit'. 602 (org-columns-edit-value): Rename from `org-column-edit'.
617 (org-columns-display-here-title): Rename from 603 (org-columns-display-here-title): Rename from
618 `org-overlay-columns-title'. 604 `org-overlay-columns-title'.
@@ -649,7 +635,7 @@
649 (org-preserve-lc): New macro. 635 (org-preserve-lc): New macro.
650 (org-update-checkbox-count): Catch case when there is no headline. 636 (org-update-checkbox-count): Catch case when there is no headline.
651 (org-agenda-quit): Remove any column overlays. 637 (org-agenda-quit): Remove any column overlays.
652 (org-beginning-of-item-list): Fixed bug when non-item line is 638 (org-beginning-of-item-list): Fix bug when non-item line is
653 indented too deep. 639 indented too deep.
654 (org-make-tags-matcher): Handle property matches. 640 (org-make-tags-matcher): Handle property matches.
655 (org-table-recalculate): Swap evaluation order: Field formula 641 (org-table-recalculate): Swap evaluation order: Field formula
@@ -660,8 +646,8 @@
660 646
6612008-04-06 Chong Yidong <cyd@stupidchicken.com> 6472008-04-06 Chong Yidong <cyd@stupidchicken.com>
662 648
663 * dired.el (dired-dnd-handle-local-file): Obey 649 * dired.el (dired-dnd-handle-local-file):
664 dired-backup-overwrite for copy, move, and link operations. 650 Obey dired-backup-overwrite for copy, move, and link operations.
665 651
666 * dired-aux.el (dired-overwrite-confirmed): Undo last change. 652 * dired-aux.el (dired-overwrite-confirmed): Undo last change.
667 653
@@ -670,8 +656,8 @@
670 * progmodes/cc-langs.el (c-before-font-lock-function): Correct a 656 * progmodes/cc-langs.el (c-before-font-lock-function): Correct a
671 typo in the doc string. 657 typo in the doc string.
672 658
673 * progmodes/cc-mode.el (c-extend-after-change-region): New 659 * progmodes/cc-mode.el (c-extend-after-change-region):
674 function, used in font-lock-extend-after-change-region-function, 660 New function, used in font-lock-extend-after-change-region-function,
675 thus superseding advice on the Font Lock after change functions. 661 thus superseding advice on the Font Lock after change functions.
676 662
6772008-04-06 Chong Yidong <cyd@stupidchicken.com> 6632008-04-06 Chong Yidong <cyd@stupidchicken.com>
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 36a69acf407..29d3fcad421 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -598,7 +598,7 @@ that requires a literal mode spec at compile time."
598 (add-hook 'before-change-functions 'c-before-change nil t) 598 (add-hook 'before-change-functions 'c-before-change nil t)
599 (make-local-hook 'after-change-functions) 599 (make-local-hook 'after-change-functions)
600 (add-hook 'after-change-functions 'c-after-change nil t) 600 (add-hook 'after-change-functions 'c-after-change nil t)
601 (setq font-lock-extend-after-change-region-function 601 (set (make-local-variable 'font-lock-extend-after-change-region-function)
602 'c-extend-after-change-region)) ; Currently (2008-04), only used by AWK. 602 'c-extend-after-change-region)) ; Currently (2008-04), only used by AWK.
603 603
604(defun c-setup-doc-comment-style () 604(defun c-setup-doc-comment-style ()