Re: Patch 8.2.0154

2020-01-26 Fir de Conversatie John Marriott
On 27-Jan-2020 07:43, Bram Moolenaar wrote: Well, that you run into this would indicate we still need it. Do you know why FEAT_FLOAT is not defined for you? By accident or intentional? It's intentional. I like to keep this build as small as possible by removing features that I don't need. I

Compile errors in the +eval builds after applying patches 8.2.153 to .158

2020-01-26 Fir de Conversatie Tony Mechelynck
Except in Tiny and Small, I get a lot of warnings, and finally an error makes gcc give up: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I

Re: Merging Vim9 script changes

2020-01-26 Fir de Conversatie Tony Mechelynck
On Sun, Jan 26, 2020 at 6:57 PM Bram Moolenaar wrote: > > > Tony wrote: > > > IIUC, the following is now a valid construct in newly-written or > > updated non-"vim9script" script? (Let's say, a .vimrc which must also > > support an older Vim version from my Linux distro) > > > > if exists('vim9scr

Patch 8.2.0158

2020-01-26 Fir de Conversatie Bram Moolenaar
Patch 8.2.0158 (after 8.2.0123) Problem:Triggering CompleteDone earlier is not backwards compatible. (Daniel Hahler) Solution: Add CompleteDonePre instead. Files: src/insexpand.c, runtime/doc/autocmd.txt, src/autocmd.c, src/vim.h, src/testdir/test_ins_complete.v

Patch 8.2.0157

2020-01-26 Fir de Conversatie Bram Moolenaar
Patch 8.2.0157 Problem:Vim9 script files not in list of distributed files. Solution: Add the entries. Files: Filelist *** ../vim-8.2.0156/Filelist2020-01-21 22:13:23.050546956 +0100 --- Filelist2020-01-26 22:04:01.015194561 +0100 *** *** 14,19 --- 14,20

Patch 8.2.0156

2020-01-26 Fir de Conversatie Bram Moolenaar
Patch 8.2.0156 Problem:Various typos in source files and tests. Solution: Fix the typos. (Emir Sari, closes #5532) Files: Makefile, src/INSTALLvms.txt, src/Make_vms.mms, src/beval.h, src/buffer.c, src/charset.c, src/evalvars.c, src/ex_cmds.c, src/ex_docmd.c, src

Re: Patch 8.2.0154

2020-01-26 Fir de Conversatie Bram Moolenaar
John Marriott wrote: > On 27-Jan-2020 05:29, Bram Moolenaar wrote: > > Patch 8.2.0154 > > Problem:Reallocating the list of scripts is inefficient. > > Solution: Instead of using a growarray of scriptitem_T, store pointers and > > allocate each scriptitem_T separately. Also av

Patch 8.2.0155

2020-01-26 Fir de Conversatie Bram Moolenaar
Patch 8.2.0155 Problem:Warnings from MinGW compiler. (John Marriott) Json test fails when building without +float feature. Solution: Init variables. Fix Json parsing. Skip a few tests that require the +float feature. Files: src/vim9script.c, src/vim9compile.c, s

Re: Patch 8.2.0154

2020-01-26 Fir de Conversatie John Marriott
On 27-Jan-2020 05:29, Bram Moolenaar wrote: Patch 8.2.0154 Problem:Reallocating the list of scripts is inefficient. Solution: Instead of using a growarray of scriptitem_T, store pointers and allocate each scriptitem_T separately. Also avoids that the growarray p

Patch 8.2.0154

2020-01-26 Fir de Conversatie Bram Moolenaar
Patch 8.2.0154 Problem:Reallocating the list of scripts is inefficient. Solution: Instead of using a growarray of scriptitem_T, store pointers and allocate each scriptitem_T separately. Also avoids that the growarray pointers change when sourcing a new script. Files

Re:How about dropping the MzScheme interface?

2020-01-26 Fir de Conversatie tux .
Bram Moolenaar schrob am 26.01.2020 um 18:57: >OK, that is good to know. Is this with scripts you only write for >yourself, or something you publish? I rarely publish my scripts for anything - the only script which made it to Vim's scripts repository is Logpad.vim which was in VimL. 😃 It's onl

Patch 8.2.0153

2020-01-26 Fir de Conversatie Bram Moolenaar
Patch 8.2.0153 Problem:Warning shows when listing version info. Solution: Use "-u NONE". (Ozaki Kiichi, closes #5534) Files: .travis.yml *** ../vim-8.2.0152/.travis.yml 2020-01-21 22:13:23.050546956 +0100 --- .travis.yml 2020-01-26 18:54:56.573087035 +0100 *** *** 139,146

Re:How about dropping the MzScheme interface?

2020-01-26 Fir de Conversatie Bram Moolenaar
> >So, who would complain if we drop the MzScheme interface? > >Please reply to the vim-use and/or vim-dev maillist. > > I would. It is the only interface I use myself. OK, that is good to know. Is this with scripts you only write for yourself, or something you publish? -- For humans, honest

Re: Merging Vim9 script changes

2020-01-26 Fir de Conversatie Bram Moolenaar
Tony wrote: > IIUC, the following is now a valid construct in newly-written or > updated non-"vim9script" script? (Let's say, a .vimrc which must also > support an older Vim version from my Linux distro) > > if exists('vim9script') == 2 That should be: if exists(':vim9script') == 2 >

Patch 8.2.0152

2020-01-26 Fir de Conversatie Bram Moolenaar
Patch 8.2.0152 Problem:Restoring ctrl_x_mode is not needed. Solution: Remove restoring the old value, it's changed again soon. Files: src/insexpand.c *** ../vim-8.2.0151/src/insexpand.c 2020-01-26 15:52:33.019833259 +0100 --- src/insexpand.c 2020-01-26 18:21:08.921629117 +010

Re: Merging Vim9 script changes

2020-01-26 Fir de Conversatie Tony Mechelynck
On Sun, Jan 26, 2020 at 6:18 PM Tony Mechelynck wrote: > > IIUC, the following is now a valid construct in newly-written or > updated non-"vim9script" script? (Let's say, a .vimrc which must also > support an older Vim version from my Linux distro) > > if exists('vim9script') == 2 oops: if exists

Re: Merging Vim9 script changes

2020-01-26 Fir de Conversatie Tony Mechelynck
IIUC, the following is now a valid construct in newly-written or updated non-"vim9script" script? (Let's say, a .vimrc which must also support an older Vim version from my Linux distro) if exists('vim9script') == 2 import MyFunc as myfunc from '~/.vim/myvim9.vim' else function s:my

Re:How about dropping the MzScheme interface?

2020-01-26 Fir de Conversatie tux .
Bram Moolenaar schrob am 24.01.2020 um 21:21: >So, who would complain if we drop the MzScheme interface? >Please reply to the vim-use and/or vim-dev maillist. I would. It is the only interface I use myself. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your

Patch 8.2.0151

2020-01-26 Fir de Conversatie Bram Moolenaar
Patch 8.2.0151 Problem:Detecting a script was already sourced is unreliable. Solution: Do not use the inode number. Files: src/scriptfile.c, src/structs.h, src/testdir/test_vim9_script.vim *** ../vim-8.2.0150/src/scriptfile.c2020-01-26 15:52:33.023833239 +0100 --- src/scriptfile.

Patch 8.2.0150

2020-01-26 Fir de Conversatie Bram Moolenaar
Patch 8.2.0150 Problem:Cannot define python function when using :execute. (Yasuhiro Matsumoto) Solution: Do not recognize "def" inside "function. Files: src/testdir/test_vim9_script.vim, src/userfunc.c *** ../vim-8.2.0149/src/testdir/test_vim9_script.vim2020-01-26 15

Re: Merging Vim9 script changes

2020-01-26 Fir de Conversatie Bram Moolenaar
Paul Jolly wrote: > > > * if Vim9 script remains experimental, presumably I have to explicitly > > > enable it within a script it somehow/somewhere? Or is this the > > > vim9script reference above? > > > > The Vim9 script syntax is only used for functions defined with ":def" > > and for scripts

Re: [vim/vim] Include Vim9 script support (#5530)

2020-01-26 Fir de Conversatie Bram Moolenaar
Yasuhiro Matsumoto wrote: > ``` > let echo = 10 > edit += 20 > echo edit > ``` > This show 20 but I get "undefined variable: edit. Did you mean: let edit = 10 edit += 10 echo edit Somehow that doesn't work yet. > ``` > let echo = 10 > unlet edit > edit += 20 > ``` > Thi