diff options
| author | Stefan Monnier | 2005-12-16 20:07:49 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-12-16 20:07:49 +0000 |
| commit | f3725983e7c2abb2ad12e9509a34adbc0e2cfe0a (patch) | |
| tree | 34f64380c5c06e22b5d78435dfa325c9f0537295 | |
| parent | 2a502a327197584831199210036cd01951255a5f (diff) | |
| download | emacs-f3725983e7c2abb2ad12e9509a34adbc0e2cfe0a.tar.gz emacs-f3725983e7c2abb2ad12e9509a34adbc0e2cfe0a.zip | |
(c-after-change-check-<>-operators):
After-change-functions should not clobber the match data.
| -rw-r--r-- | lisp/ChangeLog | 51 | ||||
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 45 |
2 files changed, 49 insertions, 47 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0ac74634b53..59a99dfe77d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-12-16 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * progmodes/cc-engine.el (c-after-change-check-<>-operators): | ||
| 4 | After-change-functions should not clobber the match data. | ||
| 5 | |||
| 1 | 2005-12-16 Juri Linkov <juri@jurta.org> | 6 | 2005-12-16 Juri Linkov <juri@jurta.org> |
| 2 | 7 | ||
| 3 | * simple.el (choose-completion): Use `buffer-substring-no-properties' | 8 | * simple.el (choose-completion): Use `buffer-substring-no-properties' |
| @@ -6,12 +11,13 @@ | |||
| 6 | (completion-setup-function): Use minibuffer-completion-contents | 11 | (completion-setup-function): Use minibuffer-completion-contents |
| 7 | instead of minibuffer-contents. Don't set common-string-length | 12 | instead of minibuffer-contents. Don't set common-string-length |
| 8 | initially. Remove special handling of partial-completion-mode. | 13 | initially. Remove special handling of partial-completion-mode. |
| 9 | Move computation of completion-base-size into one cond. Call | 14 | Move computation of completion-base-size into one cond. |
| 10 | completion-base-size-function in mainbuf. In computation of | 15 | Call completion-base-size-function in mainbuf. In computation of |
| 11 | completion-base-size for file name completion don't move point to | 16 | completion-base-size for file name completion don't move point to |
| 12 | the end of the minibuffer. Move computation of common-string-length | 17 | the end of the minibuffer. Move computation of common-string-length |
| 13 | into one cond. Start putting faces only when common-string-length>=0. | 18 | into one cond. Start putting faces only when common-string-length>=0. |
| 14 | Add condition to put completions-common-part when common-string-length>0. | 19 | Add condition to put completions-common-part when |
| 20 | common-string-length>0. | ||
| 15 | 21 | ||
| 16 | * complete.el (PC-do-completion): Remove `(equal (point) beg)' to | 22 | * complete.el (PC-do-completion): Remove `(equal (point) beg)' to |
| 17 | place point at the first different character in the minibuffer | 23 | place point at the first different character in the minibuffer |
| @@ -33,10 +39,9 @@ | |||
| 33 | 2005-12-16 Carsten Dominik <dominik@science.uva.nl> | 39 | 2005-12-16 Carsten Dominik <dominik@science.uva.nl> |
| 34 | 40 | ||
| 35 | * textmodes/org.el: (org-tags-match-list-sublevels): New option. | 41 | * textmodes/org.el: (org-tags-match-list-sublevels): New option. |
| 36 | (org-open-at-point): implement tag searches as links | 42 | (org-open-at-point): Implement tag searches as links. |
| 37 | (org-fit-agenda-window, org-get-buffer-tags, org-get-tags) | 43 | (org-fit-agenda-window, org-get-buffer-tags, org-get-tags) |
| 38 | (org-make-tags-matcher, org-scan-tags, org-activate-tags): New | 44 | (org-make-tags-matcher, org-scan-tags, org-activate-tags): New funs. |
| 39 | functions | ||
| 40 | (org-tags-sparse-tree, org-tags-view, org-set-tags) | 45 | (org-tags-sparse-tree, org-tags-view, org-set-tags) |
| 41 | (org-agenda-dispatch): New commands. | 46 | (org-agenda-dispatch): New commands. |
| 42 | (org-use-tag-inheritance, org-tags-column): New options. | 47 | (org-use-tag-inheritance, org-tags-column): New options. |
| @@ -44,13 +49,13 @@ | |||
| 44 | (org-tags): New customize group. | 49 | (org-tags): New customize group. |
| 45 | (org-start-icalendar-file): Get local time zone. | 50 | (org-start-icalendar-file): Get local time zone. |
| 46 | (org-tags-completion-function): New function. | 51 | (org-tags-completion-function): New function. |
| 47 | (org-set-font-lock-defaults): make sure links will also be | 52 | (org-set-font-lock-defaults): Make sure links will also be |
| 48 | highlighted inside headlines. | 53 | highlighted inside headlines. |
| 49 | 54 | ||
| 50 | 2005-12-16 Mark Plaksin <happy@usg.edu> (tiny change) | 55 | 2005-12-16 Mark Plaksin <happy@usg.edu> (tiny change) |
| 51 | 56 | ||
| 52 | * term.el (term-emulate-terminal): Let | 57 | * term.el (term-emulate-terminal): |
| 53 | term-handle-ansi-terminal-messages override what Bash says about | 58 | Let term-handle-ansi-terminal-messages override what Bash says about |
| 54 | its current directory. | 59 | its current directory. |
| 55 | 60 | ||
| 56 | 2005-12-16 L$,1 q(Brentey K,Aa(Broly <lorentey@elte.hu> | 61 | 2005-12-16 L$,1 q(Brentey K,Aa(Broly <lorentey@elte.hu> |
| @@ -61,7 +66,7 @@ | |||
| 61 | (next-buffer): Use frame-local buffer list, maintain buried buffer list. | 66 | (next-buffer): Use frame-local buffer list, maintain buried buffer list. |
| 62 | (prev-buffer): Ditto. Rename to `previous-buffer'. | 67 | (prev-buffer): Ditto. Rename to `previous-buffer'. |
| 63 | 68 | ||
| 64 | * menu-bar.el (menu-bar-update-buffers): Update references to `prev-buffer'. | 69 | * menu-bar.el (menu-bar-update-buffers): Update uses of `prev-buffer'. |
| 65 | * bindings.el (global-map): Ditto. | 70 | * bindings.el (global-map): Ditto. |
| 66 | 71 | ||
| 67 | 2005-12-15 Luc Teirlinck <teirllm@auburn.edu> | 72 | 2005-12-15 Luc Teirlinck <teirllm@auburn.edu> |
| @@ -97,13 +102,11 @@ | |||
| 97 | 102 | ||
| 98 | 2005-12-16 Nick Roberts <nickrob@snap.net.nz> | 103 | 2005-12-16 Nick Roberts <nickrob@snap.net.nz> |
| 99 | 104 | ||
| 100 | * progmodes/gdb-ui.el (gdb-many-windows): Echo new state in | 105 | * progmodes/gdb-ui.el (gdb-many-windows): Echo new state in minibuffer. |
| 101 | minibuffer. | ||
| 102 | 106 | ||
| 103 | 2005-12-15 David Ponce <david@dponce.com> | 107 | 2005-12-15 David Ponce <david@dponce.com> |
| 104 | 108 | ||
| 105 | * recentf.el (recentf-dialog-goto-first): Fix missing error | 109 | * recentf.el (recentf-dialog-goto-first): Fix missing error condition. |
| 106 | condition. | ||
| 107 | (recentf-edit-list, recentf-open-files): Signal an error when | 110 | (recentf-edit-list, recentf-open-files): Signal an error when |
| 108 | there is no recent file. | 111 | there is no recent file. |
| 109 | 112 | ||
| @@ -339,8 +342,8 @@ | |||
| 339 | 342 | ||
| 340 | 2005-12-10 Johan Bockg,Ae(Brd <bojohan@dd.chalmers.se> | 343 | 2005-12-10 Johan Bockg,Ae(Brd <bojohan@dd.chalmers.se> |
| 341 | 344 | ||
| 342 | * align.el (align-regexp, align-highlight-rule): Use | 345 | * align.el (align-regexp, align-highlight-rule): |
| 343 | region-beginning and region-end instead of point and mark, so that | 346 | Use region-beginning and region-end instead of point and mark, so that |
| 344 | repetition (with `repeat-complex-command') recomputes the region | 347 | repetition (with `repeat-complex-command') recomputes the region |
| 345 | bounds. | 348 | bounds. |
| 346 | 349 | ||
| @@ -360,8 +363,8 @@ | |||
| 360 | (hi-lock-archaic-interface-deduce): New variables. | 363 | (hi-lock-archaic-interface-deduce): New variables. |
| 361 | (turn-on-hi-lock-if-enabled, hi-lock-line-face-buffer) | 364 | (turn-on-hi-lock-if-enabled, hi-lock-line-face-buffer) |
| 362 | (hi-lock-face-buffer, hi-lock-face-phrase-buffer) | 365 | (hi-lock-face-buffer, hi-lock-face-phrase-buffer) |
| 363 | (hi-lock-find-patterns, hi-lock-font-lock-hook): Replace | 366 | (hi-lock-find-patterns, hi-lock-font-lock-hook): |
| 364 | hi-lock-buffer-mode with hi-lock-mode. | 367 | Replace hi-lock-buffer-mode with hi-lock-mode. |
| 365 | 368 | ||
| 366 | 2005-12-10 Kevin Rodgers <ihs_4664@ihs.com> | 369 | 2005-12-10 Kevin Rodgers <ihs_4664@ihs.com> |
| 367 | 370 | ||
| @@ -385,14 +388,14 @@ | |||
| 385 | 388 | ||
| 386 | 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 389 | 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 387 | 390 | ||
| 388 | * term/mac-win.el: Require url when compiling. Call | 391 | * term/mac-win.el: Require url when compiling. |
| 389 | mac-process-deferred-apple-events after loading init files. | 392 | Call mac-process-deferred-apple-events after loading init files. |
| 390 | (mac-apple-event-map): New defvar. Define event handlers in it. | 393 | (mac-apple-event-map): New defvar. Define event handlers in it. |
| 391 | (core-event, internet-event): New Apple event class symbols. | 394 | (core-event, internet-event): New Apple event class symbols. |
| 392 | (open-application, reopen-application, open-documents) | 395 | (open-application, reopen-application, open-documents) |
| 393 | (print-documents, open-contents, quit-application) | 396 | (print-documents, open-contents, quit-application) |
| 394 | (application-died, show-preferences, autosave-now, get-url): New | 397 | (application-died, show-preferences, autosave-now, get-url): |
| 395 | Apple event ID symbols. | 398 | New Apple event ID symbols. |
| 396 | (about): New HICommand ID symbol. | 399 | (about): New HICommand ID symbol. |
| 397 | (mac-event-spec, mac-event-ae): New macros. | 400 | (mac-event-spec, mac-event-ae): New macros. |
| 398 | (mac-ae-parameter, mac-ae-list, mac-bytes-to-integer) | 401 | (mac-ae-parameter, mac-ae-list, mac-bytes-to-integer) |
| @@ -404,9 +407,7 @@ | |||
| 404 | 407 | ||
| 405 | 2005-12-10 Kenichi Handa <handa@m17n.org> | 408 | 2005-12-10 Kenichi Handa <handa@m17n.org> |
| 406 | 409 | ||
| 407 | * simple.el (zap-to-char): Translate CHAR by | 410 | * simple.el (zap-to-char): |
| 408 | translation-table-for-input. | ||
| 409 | |||
| 410 | * isearch.el (isearch-process-search-char): Translate CHAR by | 411 | * isearch.el (isearch-process-search-char): Translate CHAR by |
| 411 | translation-table-for-input. | 412 | translation-table-for-input. |
| 412 | 413 | ||
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index c9f2b87b7f1..7f829bd26d5 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -3993,35 +3993,36 @@ comment at the start of cc-engine.el for more info." | |||
| 3993 | ;; | 3993 | ;; |
| 3994 | ;; This function might do hidden buffer changes. | 3994 | ;; This function might do hidden buffer changes. |
| 3995 | 3995 | ||
| 3996 | (save-excursion | 3996 | (save-match-data |
| 3997 | (goto-char beg) | 3997 | (save-excursion |
| 3998 | (when (or (looking-at "[<>]") | ||
| 3999 | (< (skip-chars-backward "<>") 0)) | ||
| 4000 | |||
| 4001 | (goto-char beg) | 3998 | (goto-char beg) |
| 4002 | (c-beginning-of-current-token) | ||
| 4003 | (when (and (< (point) beg) | ||
| 4004 | (looking-at c-<>-multichar-token-regexp) | ||
| 4005 | (< beg (setq beg (match-end 0)))) | ||
| 4006 | (while (progn (skip-chars-forward "^<>" beg) | ||
| 4007 | (< (point) beg)) | ||
| 4008 | (c-clear-char-property (point) 'syntax-table) | ||
| 4009 | (forward-char)))) | ||
| 4010 | |||
| 4011 | (when (< beg end) | ||
| 4012 | (goto-char end) | ||
| 4013 | (when (or (looking-at "[<>]") | 3999 | (when (or (looking-at "[<>]") |
| 4014 | (< (skip-chars-backward "<>") 0)) | 4000 | (< (skip-chars-backward "<>") 0)) |
| 4015 | 4001 | ||
| 4016 | (goto-char end) | 4002 | (goto-char beg) |
| 4017 | (c-beginning-of-current-token) | 4003 | (c-beginning-of-current-token) |
| 4018 | (when (and (< (point) end) | 4004 | (when (and (< (point) beg) |
| 4019 | (looking-at c-<>-multichar-token-regexp) | 4005 | (looking-at c-<>-multichar-token-regexp) |
| 4020 | (< end (setq end (match-end 0)))) | 4006 | (< beg (setq beg (match-end 0)))) |
| 4021 | (while (progn (skip-chars-forward "^<>" end) | 4007 | (while (progn (skip-chars-forward "^<>" beg) |
| 4022 | (< (point) end)) | 4008 | (< (point) beg)) |
| 4023 | (c-clear-char-property (point) 'syntax-table) | 4009 | (c-clear-char-property (point) 'syntax-table) |
| 4024 | (forward-char))))))) | 4010 | (forward-char)))) |
| 4011 | |||
| 4012 | (when (< beg end) | ||
| 4013 | (goto-char end) | ||
| 4014 | (when (or (looking-at "[<>]") | ||
| 4015 | (< (skip-chars-backward "<>") 0)) | ||
| 4016 | |||
| 4017 | (goto-char end) | ||
| 4018 | (c-beginning-of-current-token) | ||
| 4019 | (when (and (< (point) end) | ||
| 4020 | (looking-at c-<>-multichar-token-regexp) | ||
| 4021 | (< end (setq end (match-end 0)))) | ||
| 4022 | (while (progn (skip-chars-forward "^<>" end) | ||
| 4023 | (< (point) end)) | ||
| 4024 | (c-clear-char-property (point) 'syntax-table) | ||
| 4025 | (forward-char)))))))) | ||
| 4025 | 4026 | ||
| 4026 | ;; Dynamically bound variable that instructs `c-forward-type' to also | 4027 | ;; Dynamically bound variable that instructs `c-forward-type' to also |
| 4027 | ;; treat possible types (i.e. those that it normally returns 'maybe or | 4028 | ;; treat possible types (i.e. those that it normally returns 'maybe or |