summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-16 15:41:58 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-16 15:41:58 +0200
commit1c196e7b1742c1a50ce0d74190721acaad087f81 (patch)
tree863a9372d5d7800f076cd2f00c371394a09124e6 /runtime
parentdc2ce58b5ac72e2af765385eb426660104816344 (diff)
patch 8.1.1554: docs and tests for :const can be improvedv8.1.1554
Problem: Docs and tests for :const can be improved. Solution: Improve documentation, add a few more tests. (Ryuichi Hayashida, closes #4551)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 83a89957f2..549d27ba9a 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -11619,10 +11619,9 @@ text...
If the system does not support deleting an environment
variable, it is made empty.
- *:cons* *:const* *E996*
+ *:cons* *:const*
:cons[t] {var-name} = {expr1}
:cons[t] [{name1}, {name2}, ...] = {expr1}
-:cons[t] [{name1}, {name2}, ...] .= {expr1}
:cons[t] [{name}, ..., ; {lastname}] = {expr1}
:cons[t] {var-name} =<< [trim] {marker}
text...
@@ -11641,7 +11640,11 @@ text...
|:const| does not allow to for changing a variable. >
:let x = 1
:const x = 2 " Error!
-<
+< *E996*
+ Note that environment variables, option values and
+ register values cannot be used here, since they cannot
+ be locked.
+
:lockv[ar][!] [depth] {name} ... *:lockvar* *:lockv*
Lock the internal variable {name}. Locking means that
it can no longer be changed (until it is unlocked).