msglock

msglock ?-nodestroy? ?-nowrite? msgId

This command modifies and queries a message object’s locks. Each flag specifies a lock to set on the message in the interpreter. After set, a lock cannot be removed.

msglock returns a list describing the message’s lock-state after the new locks, if any, are applied.

The list contains zero or more of these elements:

  • nodestroy

    Message cannot be destroyed

  • nowrite

    Message cannot be modified