Hi Bram and Vimmers,
The changes are as follows.
doc/eval.txt
- L699: first byte -> first index
empty list -> empty Blob
- L2512: Add `remove()` for Blob
- L7329: I think the following wording should be in the first `remove()`.
"Use delete() to remove a file."
- L9731-L9734: Add `:` after type name like other types.
doc/if_perl.txt
- L195: Blob marked up.
doc/if_ruby.txt
- L115: Blob marked up.
doc/insert.txt
- L1081-L1082: `v:none` and `complete()` marked up.
doc/os_vms.txt
- four lines: Delete extra space at end of line.
doc/usr_41.txt
- L774: Add Blob to `writefile()` description.
- L944: Add `test_null_blob()`
Please include this.
--
Best regards,
Hirohito Higashi (h_east)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index c41fdcee1..b29325790 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -696,7 +696,7 @@ similar to -1. >
:let otherblob = myblob[:] " make a copy of the Blob
If the first index is beyond the last byte of the Blob or the second index is
-before the first byte, the result is an empty list. There is no error
+before the first index, the result is an empty Blob. There is no error
message.
If the second index is equal to or greater than the length of the list the
@@ -2512,6 +2512,8 @@ remote_send({server}, {string} [, {idvar}])
String send key sequence
remote_startserver({name}) none become server {name}
remove({list}, {idx} [, {end}]) any remove items {idx}-{end} from {list}
+remove({blob}, {idx} [, {end}]) Number/Blob remove bytes {idx}-{end} from
+ {blob}
remove({dict}, {key}) any remove entry {key} from {dict}
rename({from}, {to}) Number rename (move) file from {from} to {to}
repeat({expr}, {count}) String repeat {expr} {count} times
@@ -7325,6 +7327,9 @@ remove({list}, {idx} [, {end}]) *remove()*
Example: >
:echo "last item: " . remove(mylist, -1)
:call remove(mylist, 0, 9)
+<
+ Use |delete()| to remove a file.
+
remove({blob}, {idx} [, {end}])
Without {end}: Remove the byte at {idx} from |Blob| {blob} and
return the byte.
@@ -7335,13 +7340,12 @@ remove({blob}, {idx} [, {end}])
Example: >
:echo "last byte: " . remove(myblob, -1)
:call remove(mylist, 0, 9)
+
remove({dict}, {key})
Remove the entry from {dict} with key {key}. Example: >
:echo "removed " . remove(dict, "one")
< If there is no {key} in {dict} this is an error.
- Use |delete()| to remove a file.
-
rename({from}, {to}) *rename()*
Rename the file by the name {from} to the name {to}. This
should also work to move files across file systems. The
@@ -9724,10 +9728,10 @@ type({expr}) The result is a Number representing the type of {expr}.
Dictionary: 4 |v:t_dict|
Float: 5 |v:t_float|
Boolean: 6 |v:t_bool| (v:false and v:true)
- None 7 |v:t_none| (v:null and v:none)
- Job 8 |v:t_job|
- Channel 9 |v:t_channel|
- Blob 10 |v:t_blob|
+ None: 7 |v:t_none| (v:null and v:none)
+ Job: 8 |v:t_job|
+ Channel: 9 |v:t_channel|
+ Blob: 10 |v:t_blob|
For backward compatibility, this method can be used: >
:if type(myvar) == type(0)
:if type(myvar) == type("")
diff --git a/runtime/doc/if_perl.txt b/runtime/doc/if_perl.txt
index cce3cdf5d..85f28a48e 100644
--- a/runtime/doc/if_perl.txt
+++ b/runtime/doc/if_perl.txt
@@ -192,7 +192,7 @@ VIM::Eval({expr}) Evaluates {expr} and returns (success, value) in list
and inserting line breaks.
*perl-Blob*
-VIM::Blob({expr}) Return Blob literal string 0zXXXX from scalar value.
+VIM::Blob({expr}) Return |Blob| literal string 0zXXXX from scalar value.
*perl-SetHeight*
Window->SetHeight({height})
diff --git a/runtime/doc/if_ruby.txt b/runtime/doc/if_ruby.txt
index c9fc797eb..dcb36e616 100644
--- a/runtime/doc/if_ruby.txt
+++ b/runtime/doc/if_ruby.txt
@@ -112,7 +112,7 @@ Vim::message({msg})
*ruby-blob*
Vim::blob({arg})
- Return Blob literal string from {arg}.
+ Return |Blob| literal string from {arg}.
*ruby-set_option*
Vim::set_option({arg})
diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt
index 0431043c2..80f58987e 100644
--- a/runtime/doc/insert.txt
+++ b/runtime/doc/insert.txt
@@ -1078,7 +1078,8 @@ that contains the List. The Dict can have these items:
leading text is changed.
If you want to suppress the warning message for an empty result, return
-v:none. This is useful to implement asynchronous completion with complete().
+|v:none|. This is useful to implement asynchronous completion with
+|complete()|.
Other items are ignored.
diff --git a/runtime/doc/os_vms.txt b/runtime/doc/os_vms.txt
index 2e2f85284..f98273e1b 100644
--- a/runtime/doc/os_vms.txt
+++ b/runtime/doc/os_vms.txt
@@ -105,7 +105,7 @@ You may want to use GUI with GTK icons, then you have to download and install
GTK for OpenVMS or at least runtime shareable images - LIBGTK from
polarhome.com
Post 7.2 Vim uses GTK2+ while the last GTK on OpenVMS is 1.2.10, therefore
-the GTK build is no longer available.
+the GTK build is no longer available.
For more advanced questions, please send your problem to Vim on VMS mailing
list <[email protected]>
@@ -772,9 +772,9 @@ Version 8.1
Version 8.0
- solve the 100% cpu usage issue while waiting for a keystroke
- correct the VMS warnings and errors around handling the INFINITY (used in json.c)
-- minor VMS port related changes
-- correct the make_vms.mms file for 8.0
-- fix [.TESTDIR]make_vms.mms for 8.0
+- minor VMS port related changes
+- correct the make_vms.mms file for 8.0
+- fix [.TESTDIR]make_vms.mms for 8.0
Version 7.4
- Undo: VMS can not handle more than one dot in the filenames use "dir/name" -> "dir/_un_name"
diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt
index dd0583b60..9fcd6d100 100644
--- a/runtime/doc/usr_41.txt
+++ b/runtime/doc/usr_41.txt
@@ -771,7 +771,7 @@ System functions and manipulation of files:
systemlist() get the result of a shell command as a list
hostname() name of the system
readfile() read a file into a List of lines
- writefile() write a List of lines into a file
+ writefile() write a List or Blob of lines into a file
Date and Time: *date-functions* *time-functions*
getftime() get last modification time of a file
@@ -941,6 +941,7 @@ Testing: *test-functions*
test_override() test with Vim internal overrides
test_garbagecollect_now() free memory right now
test_ignore_error() ignore a specific error message
+ test_null_blob() return a null Blob
test_null_channel() return a null Channel
test_null_dict() return a null Dict
test_null_job() return a null Job