Skip to content

Commit a5ebfbc

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 5b04c13 + 4475b62 commit a5ebfbc

29 files changed

+3582
-153
lines changed

runtime/doc/eval.txt

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.0. Last change: 2017 Apr 22
1+
*eval.txt* For Vim version 8.0. Last change: 2017 Apr 29
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4584,6 +4584,7 @@ getqflist([{what}]) *getqflist()*
45844584
If the optional {what} dictionary argument is supplied, then
45854585
returns only the items listed in {what} as a dictionary. The
45864586
following string items are supported in {what}:
4587+
context get the context stored with |setqflist()|
45874588
nr get information for this quickfix list; zero
45884589
means the current quickfix list
45894590
title get the list title
@@ -4595,6 +4596,7 @@ getqflist([{what}]) *getqflist()*
45954596
returned.
45964597

45974598
The returned dictionary contains the following entries:
4599+
context context information stored with |setqflist()|
45984600
nr quickfix list number
45994601
title quickfix list title text
46004602
winid quickfix |window-ID| (if opened)
@@ -5265,9 +5267,14 @@ job_stop({job} [, {how}]) *job_stop()*
52655267
0 if "how" is not supported on the system.
52665268
Note that even when the operation was executed, whether the
52675269
job was actually stopped needs to be checked with
5268-
job_status().
5269-
The status of the job isn't checked, the operation will even
5270-
be done when Vim thinks the job isn't running.
5270+
|job_status()|.
5271+
5272+
If the status of the job is "dead", the signal will not be
5273+
sent. This is to avoid to stop the wrong job (esp. on Unix,
5274+
where process numbers are recycled).
5275+
5276+
When using "kill" Vim will assume the job will die and close
5277+
the channel.
52715278

52725279
{only available when compiled with the |+job| feature}
52735280

@@ -6982,6 +6989,7 @@ setqflist({list} [, {action}[, {what}]]) *setqflist()*
69826989
only the items listed in {what} are set. The first {list}
69836990
argument is ignored. The following items can be specified in
69846991
{what}:
6992+
context any Vim type can be stored as a context
69856993
nr list number in the quickfix stack
69866994
title quickfix list title text
69876995
Unsupported keys in {what} are ignored.
@@ -8499,8 +8507,8 @@ listcmds Compiled with commands for the buffer list |:files|
84998507
localmap Compiled with local mappings and abbr. |:map-local|
85008508
lua Compiled with Lua interface |Lua|.
85018509
mac Any Macintosh version of Vim, but not all OS X.
8502-
macunix Compiled for OS X, with darwin
8503-
osx Compiled for OS X, with or without darwin
8510+
macunix Compiled for OS X, with |mac-darwin-feature|
8511+
osx Compiled for OS X, with or w/o |mac-darwin-feature|
85048512
menu Compiled with support for |:menu|.
85058513
mksession Compiled with support for |:mksession|.
85068514
modify_fname Compiled with file name modifiers. |filename-modifiers|
@@ -10679,18 +10687,19 @@ missing: >
1067910687
1068010688
To execute a command only when the |+eval| feature is disabled requires a trick,
1068110689
as this example shows: >
10682-
if 1
10683-
nnoremap : :"
10684-
endif
10685-
normal :set history=111<CR>
10686-
if 1
10687-
nunmap :
10688-
endif
10690+
10691+
silent! while 0
10692+
set history=111
10693+
silent! endwhile
10694+
10695+
When the |+eval| feature is available the command is skipped because of the
10696+
"while 0". Without the |+eval| feature the "while 0" is an error, which is
10697+
silently ignored, and the command is executed.
1068910698

1069010699
The "<CR>" here is a real CR character, type CTRL-V Enter to get it.
1069110700

1069210701
When the |+eval| feature is available the ":" is remapped to add a double
10693-
quote, which has the effect of commenting-out the command. without the
10702+
quote, which has the effect of commenting-out the command. Without the
1069410703
|+eval| feature the nnoremap command is skipped and the command is executed.
1069510704

1069610705
==============================================================================

runtime/doc/os_mac.txt

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*os_mac.txt* For Vim version 8.0. Last change: 2006 Apr 30
1+
*os_mac.txt* For Vim version 8.0. Last change: 2017 Apr 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar et al.
@@ -22,6 +22,7 @@ Carbon version of Vim here:
2222
5. Known Lack |mac-lack|
2323
6. Mac Bug Report |mac-bug|
2424
7. Compiling Vim |mac-compile|
25+
8. The darwin feature |mac-darwin-feature|
2526

2627
There was a Mac port for version 3.0 of Vim. Here are the first few lines
2728
from the old file:
@@ -130,5 +131,55 @@ send a message to the current MacVim maintainers:
130131

131132
See the file "src/INSTALLmac.txt" that comes with the source files.
132133

134+
==============================================================================
135+
8. The Darwin Feature *mac-darwin-feature*
136+
137+
If you have a Mac that isn't very old, you will be running OS X, also called
138+
Darwin. The last pre-Darwin OS was Mac OS 9. The darwin feature makes Vim
139+
use Darwin-specific properties.
140+
141+
What is accomplished with this feature is two-fold:
142+
143+
- Make Vim interoperable with the system clipboard.
144+
- Incorporate into Vim a converter module that bridges the gap between some
145+
character encodings specific to the platform and those known to Vim.
146+
147+
Needless to say, both are not to be missed for any decent text editor to work
148+
nicely with other applications running on the same desktop environment.
149+
150+
As Vim is not an application dedicated only to macOS, we need an extra feature
151+
to add in order for it to offer the same user experience that our users on
152+
other platforms enjoy to people on macOS.
153+
154+
For brevity, the feature is referred to as "darwin" to signify it one of the
155+
Vim features that are specific to that particular platform.
156+
157+
The feature is a configuration option. Accordingly, whether it is enabled or
158+
not is determined at build time; once it is selected to be enabled, it is
159+
compiled in and hence cannot be disabled at runtime.
160+
161+
The feature is enabled by default. For most macOS users, that should be
162+
sufficient unless they have specific needs mentioned briefly below.
163+
164+
If you want to disable it, pass `--disable-darwin` to the configure script: >
165+
166+
./configure --disable-darwin <other options>
167+
168+
and then run `make` to build Vim. The order of the options doesn't matter.
169+
170+
To make sure at runtime whether or not the darwin feature is compiled in, you
171+
can use `has('macunix')` which returns 1 if the feature is compiled in; 0
172+
otherwise.
173+
174+
Notable use cases where `--disable-darwin` is turned out to be useful are:
175+
176+
- When you want to use |x11-selection| instead of the system clipboard.
177+
- When you want to use |x11-clientserver|.
178+
179+
Since both have to make use of X11 inter-client communication for them to work
180+
properly, and since the communication mechanism can come into conflict with
181+
the system clipboard, the darwin feature should be disabled to prevent Vim
182+
from hanging at runtime.
183+
133184

134185
vim:tw=78:ts=8:ft=help:norl:

runtime/doc/tags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7245,6 +7245,7 @@ m` motion.txt /*m`*
72457245
mac os_mac.txt /*mac*
72467246
mac-bug os_mac.txt /*mac-bug*
72477247
mac-compile os_mac.txt /*mac-compile*
7248+
mac-darwin-feature os_mac.txt /*mac-darwin-feature*
72487249
mac-faq os_mac.txt /*mac-faq*
72497250
mac-filename os_mac.txt /*mac-filename*
72507251
mac-lack os_mac.txt /*mac-lack*

runtime/doc/todo.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 8.0. Last change: 2017 Apr 23
1+
*todo.txt* For Vim version 8.0. Last change: 2017 Apr 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -111,11 +111,16 @@ Regexp problems:
111111
- Difference between two engines: ".*\zs\/\@>\/" on text "///"
112112
(Chris Paul, 2016 Nov 13) New engine not greedy enough?
113113

114+
With foldmethod=syntax and nofoldenable comment highlighting isn't removed.
115+
(Marcin Szewczyk, 2017 Apr 26)
116+
114117
Running test_gui and test_gui_init with Motif sometimes kills the window
115118
manager. Problem with Motif?
116119

117120
Memory leak in test97? The string is actually freed. Weird.
118121

122+
Patch for shellescape(). (Christian Brabandt, 2017 Apr 20, #1590)
123+
119124
Patch for flickering redraw. (Hirohito Higashi, 2017 Apr 23, #1637)
120125

121126
New value "uselast" for 'switchbuf'. (Lemonboy, 2017 Apr 23, #1652)
@@ -246,6 +251,9 @@ Does this also fix #1408 ?
246251

247252
Patch for 'cursorlinenr' option. (Ozaki Kiichi, 2016 Nov 30)
248253

254+
When 'completeopt' has "noselect" does not insert a newline. (Lifepillar, 2017
255+
Apr 23, #1653)
256+
249257
Window resizing with 'winfixheight': With a vertical split the height changes
250258
anyway. (Tommy allen, 2017 Feb 21, #1502)
251259

@@ -355,6 +363,10 @@ names, shell commands and the like. (Kikuchan, 2010 Oct 14)
355363
Assume the system converts between the actual encoding of the filesystem to
356364
the system encoding (usually utf-8).
357365

366+
Using ":tab drop file" does not trigger BufEnter or TabEnter events.
367+
(Andy Stewart, 2017 Apr 27, #1660)
368+
Autocommands blocked in do_arg_all(). Supposed to happen later?
369+
358370
'hlsearch' interferes with a Conceal match. (Rom Grk, 2016 Aug 9)
359371

360372
Patch to add context information to quickfix/location list. (Yegappan

0 commit comments

Comments
 (0)