diff options
| author | Stefan Monnier | 2011-11-18 10:06:20 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2011-11-18 10:06:20 -0500 |
| commit | c400c4d7987bf919d83a230f83c8b6ff64764fc3 (patch) | |
| tree | f37801b2a66922165783bfad49c99e1a79702ca0 | |
| parent | 6dbe3e96cf8420e64b05abc25ec3c8dc2478e0db (diff) | |
| download | emacs-c400c4d7987bf919d83a230f83c8b6ff64764fc3.tar.gz emacs-c400c4d7987bf919d83a230f83c8b6ff64764fc3.zip | |
* lisp/progmodes/cc-engine.el (c-remove-stale-state-cache-backwards):
Don't hardcode point-min==1.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 654e886a3a4..15646c6cde3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-11-18 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2011-11-18 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * progmodes/cc-engine.el (c-remove-stale-state-cache-backwards): | ||
| 4 | Don't hardcode point-min==1. | ||
| 5 | |||
| 3 | * eshell/esh-cmd.el (eshell-do-eval): Handle `setq' (bug#9907). | 6 | * eshell/esh-cmd.el (eshell-do-eval): Handle `setq' (bug#9907). |
| 4 | (eshell-rewrite-for-command): Remove workaround. | 7 | (eshell-rewrite-for-command): Remove workaround. |
| 5 | (eshell-do-pipelines, eshell-do-pipelines-synchronously) | 8 | (eshell-do-pipelines, eshell-do-pipelines-synchronously) |
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 31a58e48f50..8ac38c253fb 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -2820,7 +2820,7 @@ comment at the start of cc-engine.el for more info." | |||
| 2820 | ; or `here' itself. | 2820 | ; or `here' itself. |
| 2821 | here- here+ ; start/end of macro around HERE, or HERE | 2821 | here- here+ ; start/end of macro around HERE, or HERE |
| 2822 | (here-bol (c-point 'bol here)) | 2822 | (here-bol (c-point 'bol here)) |
| 2823 | (too-far-back (max (- here c-state-cache-too-far) 1))) | 2823 | (too-far-back (max (- here c-state-cache-too-far) (point-min)))) |
| 2824 | 2824 | ||
| 2825 | ;; Remove completely irrelevant entries from `c-state-cache'. | 2825 | ;; Remove completely irrelevant entries from `c-state-cache'. |
| 2826 | (while (and c-state-cache | 2826 | (while (and c-state-cache |
| @@ -2964,9 +2964,9 @@ comment at the start of cc-engine.el for more info." | |||
| 2964 | c-state-cache-good-pos nil | 2964 | c-state-cache-good-pos nil |
| 2965 | c-state-min-scan-pos nil) | 2965 | c-state-min-scan-pos nil) |
| 2966 | 2966 | ||
| 2967 | ;;; Truncate `c-state-cache' and set `c-state-cache-good-pos' to a value below | 2967 | ;; Truncate `c-state-cache' and set `c-state-cache-good-pos' to a value |
| 2968 | ;;; `here'. To maintain its consistency, we may need to insert a new brace | 2968 | ;; below `here'. To maintain its consistency, we may need to insert a new |
| 2969 | ;;; pair. | 2969 | ;; brace pair. |
| 2970 | (let ((here-bol (c-point 'bol here)) | 2970 | (let ((here-bol (c-point 'bol here)) |
| 2971 | too-high-pa ; recorded {/(/[ next above here, or nil. | 2971 | too-high-pa ; recorded {/(/[ next above here, or nil. |
| 2972 | dropped-cons ; was the last removed element a brace pair? | 2972 | dropped-cons ; was the last removed element a brace pair? |