compilation-current-error

compilation-current-error is a variable defined in `compile.el'.
Its value is
nil


Documentation:
Marker to the location from where the next error will be found.
The global commands next/previous/first-error/goto-error use this.