Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ecc71db8
Commit
ecc71db8
authored
Jan 20, 2007
by
Alan Mackenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new functions, c-go-list-forward, c-go-list-backward.
parent
fa85e852
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/cc-defs.el
lisp/progmodes/cc-defs.el
+18
-0
No files found.
lisp/ChangeLog
View file @
ecc71db8
2007-01-20 Alan Mackenzie <acm@muc.de>
* progmodes/cc-engine.el (c-in-knr-argdecl): Reformulate to do
much more rigorous analysis of putative K&R regions.
2007-01-20 Alan Mackenzie <acm@muc.de>
* progmodes/cc-defs.el (c-go-list-forward, c-go-list-backward):
lisp/progmodes/cc-defs.el
View file @
ecc71db8
...
...
@@ -580,6 +580,24 @@ right side of it."
;; Wrappers for common scan-lists cases, mainly because it's almost
;; impossible to get a feel for how that function works.
(
defmacro
c-go-list-forward
()
"Move backward across one balanced group of parentheses.
Return POINT when we succeed, NIL when we fail. In the latter case, leave
point unmoved."
`
(
c-safe
(
let
((
endpos
(
scan-lists
(
point
)
1
0
)))
(
goto-char
endpos
)
endpos
)))
(
defmacro
c-go-list-backward
()
"Move backward across one balanced group of parentheses.
Return POINT when we succeed, NIL when we fail. In the latter case, leave
point unmoved."
`
(
c-safe
(
let
((
endpos
(
scan-lists
(
point
)
-1
0
)))
(
goto-char
endpos
)
endpos
)))
(
defmacro
c-up-list-forward
(
&optional
pos
limit
)
"Return the first position after the list sexp containing POS,
or nil if no such position exists. The point is used if POS is left out.
...
...
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