Re: shift-Tab key on iOS and UTF8

2013-05-12 Fir de Conversatie Zulox4
Hello, I found that shift-Tab (K_SH_TAB) is a K_SPECIAL key (3 bytes), like Back-space, that has code 08H. At the end, in normal.c the K_SPECIAL keys are compared with: #define K_S_TAB TERMCAP2KEY('k', 'B') ===> -17003 value => 128,107,98 bytes #define K_BS TERMCAP2KEY('k', 'b') ===> -251

Re: Pluggable eventloop, was Re: Plans for Vim 7.4

2013-05-12 Fir de Conversatie James McCoy
On Mon, May 13, 2013 at 02:40:20AM +0200, Tony Mechelynck wrote: > On 12/05/13 21:28, Jan Pobrislo wrote: > >Glib inside gvim, since gtk+ uses glib internally. More precisely glib is > >that part of gtk+ that does not deal with gui, so there's no gvim without > >glib. (Unless there's implementation

Re: Pluggable eventloop, was Re: Plans for Vim 7.4

2013-05-12 Fir de Conversatie Tony Mechelynck
On 12/05/13 21:28, Jan Pobrislo wrote: On Sat, 11 May 2013 04:45:50 +0200, Tony Mechelynck wrote: 1) Add VimL api to hook into the eventloops. The unix poll() eventloop seems simple enough to start with. Is it guaranteed to be available? Think MS-Windows or IBM-mainframe. Nope, neith

Re: [RFC] Some more python and VimL interfaces

2013-05-12 Fir de Conversatie Andy Kittner
On Fri, May 10, 2013 at 03:49:45AM +0200, Bram Moolenaar wrote: ZyX wrote: This is a description of proposed new python interfaces. Well, that's a very long list. Do we really need all of this? Let's at least order by usefulness. I took some time today to look more closely at the RFC and

Re: [RFC] Some more python and VimL interfaces

2013-05-12 Fir de Conversatie ZyX
> Feature request here if I may. > > vim.fnameescape() and vim.evalescape() :: string -> string > Escapes string so it can be used as argument to command that takes a > filename or in a vim function respectively. > > This could be further extended so evalescape (or perhaps just escape?) >

Re: [RFC] Some more python and VimL interfaces

2013-05-12 Fir de Conversatie Jan Pobrislo
On Thu, 9 May 2013 08:30:00 -0700 (PDT), ZyX wrote: > This is a description of proposed new python interfaces. ... > = > Auxilary/helper functions > = Feature request here if I may. vim.fnameescape() and vim.evalescape() :: string -> string Esc

Re: Pluggable eventloop, was Re: Plans for Vim 7.4

2013-05-12 Fir de Conversatie Jan Pobrislo
On Sat, 11 May 2013 15:44:10 +0200, Xavier de Gaye wrote: > An alternative would be to allow any python thread to call the vim-python > interface through message passing. That indeed is also possible, but for it to work properly you need to create interface for waking the main thread from iowait,

Re: To all syntax file maintainers: examples needed

2013-05-12 Fir de Conversatie Christian Brabandt
Hi Bram! On Sa, 11 Mai 2013, Bram Moolenaar wrote: > > The plan is to include a new regexp engine in Vim 7.4. For testing > I would like to get a lot of files for which we have syntax > highlighting. I can then compare the highlighting of these files with > the old and the new engine to find a

Re: Pluggable eventloop, was Re: Plans for Vim 7.4

2013-05-12 Fir de Conversatie Jan Pobrislo
On Sat, 11 May 2013 04:45:50 +0200, Tony Mechelynck wrote: > > 1) Add VimL api to hook into the eventloops. The unix poll() eventloop seems > > simple enough to start with. > > Is it guaranteed to be available? Think MS-Windows or IBM-mainframe. > Nope, neither are some other optional feat

Patch 7.3.943

2013-05-12 Fir de Conversatie Bram Moolenaar
Patch 7.3.943 Problem:Python: Negative indices were failing. Solution: Fix negative indices. Add tests. (ZyX) Files: src/if_py_both.h, src/if_python3.c, src/testdir/test86.in, src/testdir/test86.ok, src/testdir/test87.in, src/testdir/test87.ok *** ../vim-7.3.94

Patch 7.3.942

2013-05-12 Fir de Conversatie Bram Moolenaar
Patch 7.3.942 Problem:Python: SEGV in Buffer functions. Solution: Call CheckBuffer() at the right time. (ZyX) Files: src/if_py_both.h, src/if_python.c, src/if_python3.c *** ../vim-7.3.941/src/if_py_both.h 2013-05-12 19:45:30.0 +0200 --- src/if_py_both.h2013-05-12 20:19

Patch 7.3.941

2013-05-12 Fir de Conversatie Bram Moolenaar
Patch 7.3.941 Problem:Stuff in if_py_both.h is ordered badly. Solution: Reorder by type. (ZyX) Files: src/if_py_both.h, src/if_python.c *** ../vim-7.3.940/src/if_py_both.h 2013-05-12 19:30:27.0 +0200 --- src/if_py_both.h2013-05-12 19:36:38.0 +0200 *

Patch 7.3.940

2013-05-12 Fir de Conversatie Bram Moolenaar
Patch 7.3.940 Problem:Python: Can't get position of window. Solution: Add window.row and window.col. (ZyX) Files: runtime/doc/if_pyth.txt, src/if_py_both.h *** ../vim-7.3.939/runtime/doc/if_pyth.txt 2013-05-12 19:00:36.0 +0200 --- runtime/doc/if_pyth.txt 2013-05-12 1

Re: To all syntax file maintainers: examples needed

2013-05-12 Fir de Conversatie ZyX
> That is one of the ways. It might be a bit difficult to find out where > a difference comes from though. Directly using the method that TOHtml > uses to figure out the highlighting might work better. You can use format.vim. It is faster and it is can output for Vim

Patch 7.3.939

2013-05-12 Fir de Conversatie Bram Moolenaar
Patch 7.3.939 Problem:Using Py_BuildValue is inefficient sometimes. Solution: Use PyLong_FromLong(). (ZyX) Files: src/if_py_both.h *** ../vim-7.3.938/src/if_py_both.h 2013-05-12 19:00:36.0 +0200 --- src/if_py_both.h2013-05-12 19:08:24.0 +0200 *** **

Patch 7.3.938

2013-05-12 Fir de Conversatie Bram Moolenaar
Patch 7.3.938 Problem:Python: not easy to get to window number. Solution: Add vim.window.number. (ZyX) Files: runtime/doc/if_pyth.txt, src/if_py_both.h, src/proto/window.pro, src/window.c *** ../vim-7.3.937/runtime/doc/if_pyth.txt 2013-05-06 03:52:44.0 +0200

Patch 7.3.937

2013-05-12 Fir de Conversatie Bram Moolenaar
Patch 7.3.937 Problem:More can be shared between Python 2 and 3. Solution: Move code to if_py_both.h. (ZyX) Files: src/if_python.c, src/if_python3.c, src/if_py_both.h *** ../vim-7.3.936/src/if_python.c 2013-05-06 04:21:35.0 +0200 --- src/if_python.c 2013-05-12 18:31:2

Compiling vim with visual studio 2012 express

2013-05-12 Fir de Conversatie skeept
I tried compiling gvim in windows using the cygwin interface and also visual studio express. When compiling with visual studio express update 2 you immediately get the error: C:\htemp\vim\src>nmake -f Make_mvc.mak Microsoft (R) Program Maintenance Utility Version 11.00.60315.1 Copyright (C) M

Re: compiling windows binary using cygwin fails

2013-05-12 Fir de Conversatie skeept
> If you want to build a Win32 binary, use i686-pc-mingw32-gcc or > i686-w64-mingw-gcc, not i686-pc-cygwin-gcc. > i686-pc-cygwin-gcc is a compiler for building cygwin binary. > > Thanks, > Ken Takata Thanks for you help. Indeed changing to a different compiler name allows me to build gvim, alth

dnsmasq (Re: To all syntax file maintainers: examples needed)

2013-05-12 Fir de Conversatie Thilo Six
Hello attached is a example file for ft=dnsmasq. -- Regards, Thilo 4096R/0xC70B1A8F 721B 1BA0 095C 1ABA 3FC6 7C18 89A4 A2A0 C70B 1A8F -- -- 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

Re: [RFC] Some more python and VimL interfaces

2013-05-12 Fir de Conversatie ZyX
>> >That is impossible. You may skip some of the list, dict and other Vim >> >language features, but when it comes to options, regexp, autocommands >> >and many, many other things you need to know how Vim works. Making a >> >Python interface for them won't change how Vim works. >> > >> >For examp

[BUG] Newline at the start of :echom is not displayed when using :messages

2013-05-12 Fir de Conversatie ZyX
Try the following script: vim -u NONE -c 'echomsg "\nb"' -c 'messages' . You will see ^@b Перевод сообщений на русский язык: Василий Рагозин b Press ENTER or type command to continue while it is expected to have first and third line of output to be identical. -- -- You r

Re: shift-Tab key on iOS and UTF8

2013-05-12 Fir de Conversatie Zulox4
Hi, In iOS, a have my virtual keyboard, I have added Ctrl touch. When use Ctrl (have a status variable, working like shift) and after touch i (not same time), generate ascii for i => this combination generate a TAB, (send to buffer 09 with add_to_input_buf), that works, but when used (shift+i)

Re: [patch] get quickfix stack

2013-05-12 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: > On So, 12 Mai 2013, Bram Moolenaar wrote: > > > Wouldn't it be better to have the entries and the titles in a list? > > We could do this as well. I don't mind. > > > If getqfstack() is to be used to restore, how does one do that restore? > > The idea is to do somet

Re: should add __attribute__((alloc_size)) to functions using malloc() ?

2013-05-12 Fir de Conversatie Bram Moolenaar
Ken Takata wrote: > 2013/05/12 Sun 0:36:43 UTC+9 tyru wrote: > > Hi list. > > > > I have read a blog post about gcc extension. > > http://mkosaki.blog46.fc2.com/blog-entry-1228.html (Japanese) > > > > The blog title says "_FORTIFY_SOURCE without > > __attribute__((alloc_size)) doesn't make sens

Re: [RFC] Some more python and VimL interfaces

2013-05-12 Fir de Conversatie Bram Moolenaar
ZyX wrote: > >That is impossible. You may skip some of the list, dict and other Vim > >language features, but when it comes to options, regexp, autocommands > >and many, many other things you need to know how Vim works. Making a > >Python interface for them won't change how Vim works. > > > >Fo

Re: [RFC] Some more python and VimL interfaces

2013-05-12 Fir de Conversatie Bram Moolenaar
ZyX wrote: > >I can’t omit this part of Vim commands. But I can hide it. Also > >note that we are not talking about user. There is exactly no > >difference for user between modifying option initally set by > >import re > >import json > >lcs = vim.eval('&lcs') > >lcs = re.sub(',?eo

Patch 7.3.936

2013-05-12 Fir de Conversatie Bram Moolenaar
Patch 7.3.936 (after 7.3.935) Problem:Ruby 1.8: Missing piece for static linking on 64 bit systems. Solution: Define ruby_init_stack() (Hiroshi Shirosaki) Also fix preprocessor indents. Files: src/if_ruby.c *** ../vim-7.3.935/src/if_ruby.c2013-05-11 17:45:45.00

Re: C# compiler plugin improvement

2013-05-12 Fir de Conversatie Chiel ten Brinke
Thank you for your explanation. So would it be appreciated to include four compiler plugins for C# (csc,msc,msbuild,xbuild)? I can create those easily from what we have now. On Sat, May 11, 2013 at 11:37 PM, Bram Moolenaar wrote: > > Chiel ten Brinke wrote: > > [rearranged, please don't use top

Re: [RFC] Some more python and VimL interfaces

2013-05-12 Fir de Conversatie ZyX
>I can’t omit this part of Vim commands. But I can hide it. Also note that we >are not talking about user. There is exactly no difference for user between >modifying option initally set by >import re >import json >lcs = vim.eval('&lcs') >lcs = re.sub(',?eol:.,?', lcs, ',') >lc

Re: Patch 7.3.935

2013-05-12 Fir de Conversatie Hiroshi Shirosaki
On Sun, May 12, 2013 at 7:18 AM, Bram Moolenaar wrote: >> It seems this part of patch is missing. This would be needed for ia64 >> static link with ruby 1.8. > > OK. I thought this was defined in a Ruby header file. > > I'll also fix the preprocessor indents, they are missing for the whole > bloc

Re: [patch] get quickfix stack

2013-05-12 Fir de Conversatie Christian Brabandt
Hi Bram! On So, 12 Mai 2013, Bram Moolenaar wrote: > Wouldn't it be better to have the entries and the titles in a list? We could do this as well. I don't mind. > If getqfstack() is to be used to restore, how does one do that restore? The idea is to do something like " get location list stack

Re: [RFC] Some more python and VimL interfaces

2013-05-12 Fir de Conversatie ZyX
>> And adding python interface that is the same as VimL is >> 1. throwing away some of the benefits python provides >> 2. intentionally creating interfaces with design flaws >> 3. intentionally ignoring python principles like “explicit is >> better then implicit” (for 2. and 3. refer to my explanat

Re: shift-Tab key on iOS and UTF8

2013-05-12 Fir de Conversatie Tony Mechelynck
On 12/05/13 07:48, Zulox4 wrote: Hello, I added a Ctrl key to iOS version, and tried to modify the code for iOS to add the touch for shift-tab, (I use shift-Ctrl-I touches combination). For sending the touches to vim it is used the add_to_input_buf function, in insertText function, the code so