diff runtime/doc/eval.txt @ 10908:6b6abffbdf59 v8.0.0343

patch 8.0.0343: b:changedtick can be unlocked commit https://github.com/vim/vim/commit/e7877fe0de1426f8de9ada825e4f7b64810c7dbc Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 20 22:35:33 2017 +0100 patch 8.0.0343: b:changedtick can be unlocked Problem: b:changedtick can be unlocked, even though it has no effect. (Nikolai Pavlov) Solution: Add a check and error E940. (closes #1496)
author Christian Brabandt <cb@256bit.org>
date Mon, 20 Feb 2017 22:45:05 +0100
parents c391bfbdb452
children b3601a8eb679
line wrap: on
line diff
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -9082,9 +9082,12 @@ 7. Commands						*expression-commands*
 				:lockvar v
 				:let v = 'asdf'		" fails!
 				:unlet v
-<							*E741*
+<							*E741* *E940*
 			If you try to change a locked variable you get an
-			error message: "E741: Value is locked: {name}"
+			error message: "E741: Value is locked: {name}".
+			If you try to lock or unlock a built-in variable you
+			get an error message: "E940: Cannot lock or unlock
+			variable {name}".
 
 			[depth] is relevant when locking a |List| or
 			|Dictionary|.  It specifies how deep the locking goes: