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
0de3da9f
Commit
0de3da9f
authored
Apr 11, 2012
by
Alan Mackenzie
Browse files
Correct two search limits in c-before-change-check_<>-operators.
parent
932de51c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-engine.el
+2
-3
No files found.
lisp/ChangeLog
View file @
0de3da9f
2012-04-11 Alan Mackenzie <acm@muc.de>
* progmodes/cc-engine.el (c-before-change-check-<>-operators):
Correct two search limits.
2012-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
* startup.el (command-line-1): Inhibit splash from daemon (bug#10996).
...
...
lisp/progmodes/cc-engine.el
View file @
0de3da9f
...
...
@@ -5382,7 +5382,7 @@ comment at the start of cc-engine.el for more info."
new-beg new-end need-new-beg need-new-end)
;; Locate the barrier before the changed region
(goto-char (if beg-lit-limits (car beg-lit-limits) beg))
(c-syntactic-skip-backward "^;{}" (
max (- beg 2048) (point-min)
))
(c-syntactic-skip-backward "^;{}" (
c-determine-limit 512
))
(setq new-beg (point))
;; Remove the syntax-table properties from each pertinent <...> pair.
...
...
@@ -5393,8 +5393,7 @@ comment at the start of cc-engine.el for more info."
;; Locate the barrier after END.
(goto-char (if end-lit-limits (cdr end-lit-limits) end))
(c-syntactic-re-search-forward "[;{}]"
(min (+ end 2048) (point-max)) 'end)
(c-syntactic-re-search-forward "[;{}]" (c-determine-+ve-limit 512) 'end)
(setq new-end (point))
;; Remove syntax-table properties from the remaining pertinent <...>
...
...
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