vim-patch:8.0.0591: changes to eval functionality not documented

Problem:    Changes to eval functionality not documented.
Solution:   Include all the changes.

45d2cca1ea
This commit is contained in:
James McCoy 2017-12-30 23:30:40 -05:00
parent 9ad557fb2d
commit 89d1b36084
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -4327,6 +4327,7 @@ getqflist([{what}]) *getqflist()*
If the optional {what} dictionary argument is supplied, then If the optional {what} dictionary argument is supplied, then
returns only the items listed in {what} as a dictionary. The returns only the items listed in {what} as a dictionary. The
following string items are supported in {what}: following string items are supported in {what}:
context get the context stored with |setqflist()|
nr get information for this quickfix list; zero nr get information for this quickfix list; zero
means the current quickfix list means the current quickfix list
title get the list title title get the list title
@ -4338,6 +4339,7 @@ getqflist([{what}]) *getqflist()*
returned. returned.
The returned dictionary contains the following entries: The returned dictionary contains the following entries:
context context information stored with |setqflist()|
nr quickfix list number nr quickfix list number
title quickfix list title text title quickfix list title text
winid quickfix |window-ID| (if opened) winid quickfix |window-ID| (if opened)
@ -6885,6 +6887,7 @@ setqflist({list} [, {action}[, {what}]]) *setqflist()*
only the items listed in {what} are set. The first {list} only the items listed in {what} are set. The first {list}
argument is ignored. The following items can be specified in argument is ignored. The following items can be specified in
{what}: {what}:
context any Vim type can be stored as a context
nr list number in the quickfix stack nr list number in the quickfix stack
title quickfix list title text title quickfix list title text
Unsupported keys in {what} are ignored. Unsupported keys in {what} are ignored.
@ -10508,18 +10511,19 @@ missing: >
To execute a command only when the |+eval| feature is disabled requires a trick, To execute a command only when the |+eval| feature is disabled requires a trick,
as this example shows: > as this example shows: >
if 1
nnoremap : :" silent! while 0
endif set history=111
normal :set history=111<CR> silent! endwhile
if 1
nunmap : When the |+eval| feature is available the command is skipped because of the
endif "while 0". Without the |+eval| feature the "while 0" is an error, which is
silently ignored, and the command is executed.
The "<CR>" here is a real CR character, type CTRL-V Enter to get it. The "<CR>" here is a real CR character, type CTRL-V Enter to get it.
When the |+eval| feature is available the ":" is remapped to add a double When the |+eval| feature is available the ":" is remapped to add a double
quote, which has the effect of commenting-out the command. without the quote, which has the effect of commenting-out the command. Without the
|+eval| feature the nnoremap command is skipped and the command is executed. |+eval| feature the nnoremap command is skipped and the command is executed.
============================================================================== ==============================================================================