Hi,
>>by default it's ticked on,
Default value for a new fresh standard installation is ON, right.
>>but I set an alias that run it: (defun C:rf () (COMMAND "-refedit" "ok" "all" "no"))
That's limited to preselected blockreference, okay.
Why not (defun C:rf () (if (ssget "_i") (COMMAND "_.-refedit" "_ok" "_all" "_no")(COMMAND "_.-refedit" pause "_ok" "_all" "_no"))(princ))
>>and for me on start this put it in "lock objects" turned off state
No, that has nothing to do with the lockobjects setting.
Why do you think so, Are you able to replicate that? -> Ahhh, your next statements explains
>>after refedit (without hyphen at the beginning) runs once, -refedit runs again with locking turned on
So the setting is correct (think about, the setting is saved by profile, so it's possible that it is ON in one, but OFF in another profile / User)
but it doesn't work for -RefEdit, until you runned command RefEdit one time (per drawing file).
>>this sounds like a bug in autocad?
Yes, because it works if you runned RefEdit and this can't be designed for. If it would never work, it could be designed this way.
>>"should I report it?"
Yes, why not- decades old bugs are still bugs.