Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c400c4d7
Commit
c400c4d7
authored
Nov 18, 2011
by
Stefan Monnier
Browse files
* lisp/progmodes/cc-engine.el (c-remove-stale-state-cache-backwards):
Don't hardcode point-min==1.
parent
6dbe3e96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-engine.el
+4
-4
No files found.
lisp/ChangeLog
View file @
c400c4d7
2011-11-18 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/cc-engine.el (c-remove-stale-state-cache-backwards):
Don't hardcode point-min==1.
* eshell/esh-cmd.el (eshell-do-eval): Handle `setq' (bug#9907).
(eshell-rewrite-for-command): Remove workaround.
(eshell-do-pipelines, eshell-do-pipelines-synchronously)
...
...
lisp/progmodes/cc-engine.el
View file @
c400c4d7
...
...
@@ -2820,7 +2820,7 @@ comment at the start of cc-engine.el for more info."
; or `here' itself.
here- here+ ; start/end of macro around HERE, or HERE
(here-bol (c-point 'bol here))
(too-far-back (max (- here c-state-cache-too-far)
1
)))
(too-far-back (max (- here c-state-cache-too-far)
(point-min)
)))
;; Remove completely irrelevant entries from `c-state-cache'.
(while (and c-state-cache
...
...
@@ -2964,9 +2964,9 @@ comment at the start of cc-engine.el for more info."
c-state-cache-good-pos nil
c-state-min-scan-pos nil)
;
;; Truncate `c-state-cache' and set `c-state-cache-good-pos' to a value
below
;;;
`here'. To maintain its consistency, we may need to insert a new
brace
;;;
pair.
;; Truncate `c-state-cache' and set `c-state-cache-good-pos' to a value
;; below
`here'. To maintain its consistency, we may need to insert a new
;; brace
pair.
(let ((here-bol (c-point 'bol here))
too-high-pa ; recorded {/(/[ next above here, or nil.
dropped-cons ; was the last removed element a brace pair?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment