About on_warning's default value "warning"

The documentation says that the on_warning flag works as on_error (i.e. that it accepts the three values print, halt and status) and that it has the default value print.

But current_prolog_flag(on_warning, Value) gives me warning.

Is this the same as print, only with a different name (and the doc is not up-to-date)?

Oddly though, if I set the flag to print it works, but when I try to set it again to warning it throws saying that the value is outside the domain of possible values.

(8.4.1 on x64-win64)

The initial value was set incorrectly to warning. As the logic only does something special with halt and status, any other value has the same effect as print. Fixed the initial value. Thanks for reporting.