Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: On Di, 24 Sep 2013, Gary Johnson wrote: On 2013-09-24, Christian Brabandt wrote: I guess, the intention is, that in C code the defines need to be in the first column. Thanks for checking that. [...] Vim's behavior looks to me like a mistake in

Re: [patch] sets PEP8 indenting suggestions as default in python files

2013-09-25 Fir de Conversatie Bram Moolenaar
Lorenzo Bercelli wrote: The maintainer hasn't answered this email either. I'm sending you the patch again, assuming you approved it the last time. OK. Let's make it one line: As suggested by PEP8. setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8 I'll also include the patch for

Re: [PATCH] Asynchronous functions (settimeout, setinterval, and cancelinterval)

2013-09-25 Fir de Conversatie Bram Moolenaar
Geoff Greer wrote: On Sunday, September 22, 2013 6:38:32 AM UTC-7, Bram Moolenaar wrote: I still have several problems with including this functionality. I would prefer this to be called timed events instead of async, since it's not really asynchronous. A timeout is for when you do

Re: [PATCH] Right-aligned signs

2013-09-25 Fir de Conversatie Bram Moolenaar
James wrote: Right now, there can't be right-aligned one-character signs(like sign define rightsign text=\ r), because prefixing a sign with a space breaks the define statement. The text= argument for signs uses skiptowhite_esc, which forces whitespace in the argument to be escaped, but

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Christian Brabandt
On Wed, September 25, 2013 13:18, Bram Moolenaar wrote: Christian Brabandt wrote: On Di, 24 Sep 2013, Gary Johnson wrote: On 2013-09-24, Christian Brabandt wrote: I guess, the intention is, that in C code the defines need to be in the first column. Thanks for checking that.

Re: [PATCH] Asynchronous functions (settimeout, setinterval, and cancelinterval)

2013-09-25 Fir de Conversatie Nikolay Pavlov
On Sep 25, 2013 3:53 PM, Bram Moolenaar b...@moolenaar.net wrote: Geoff Greer wrote: On Sunday, September 22, 2013 6:38:32 AM UTC-7, Bram Moolenaar wrote: I still have several problems with including this functionality. I would prefer this to be called timed events instead of

VIM 7.4 BUG

2013-09-25 Fir de Conversatie Jorge Solis
NetrwTree lose the line position (in tree mode) when go in a tab with t key -- -- 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

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: Indeed, it looks strange. Especially, since left shifts are allowed, but once you reach column 1, you can't right shift anymore. Also note, that despite Vim's inability to right shift defines, the file will still be marked modified. Here is a simple patch,

Re: Surprised that gi doesn't modify the jumplist

2013-09-25 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: Hi Tim! On Mo, 23 Sep 2013, Tim Chase wrote: Playing around with the latest VimGolf challenge[1], I was attempting to use gi to add some text, then control+O (or backtick-backtick) to jump back to where I had issued the gi. I was somewhat surprised to

Re: Surprised that gi doesn't modify the jumplist

2013-09-25 Fir de Conversatie Ingo Karkat
On 25-Sep-2013 15:21 +0200, Bram Moolenaar wrote: Christian Brabandt wrote: Hi Tim! On Mo, 23 Sep 2013, Tim Chase wrote: Playing around with the latest VimGolf challenge[1], I was attempting to use gi to add some text, then control+O (or backtick-backtick) to jump back to where I had

Re: [PATCH] Asynchronous functions (settimeout, setinterval, and cancelinterval)

2013-09-25 Fir de Conversatie Bjorn Tipling
Bram, Given that your concern is to not present a situation to the user for which they have no remedy, it seems like providing information might be a possible remedy The more information the user has, the easier it might be to figure out how to get out of a possible sticky situation. You

Patch 7.4.036

2013-09-25 Fir de Conversatie Bram Moolenaar
Patch 7.4.036 Problem:NFA engine does not capture group correctly when using \@. (ZyX) Solution: Copy submatches before doing the recursive match. Files: src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok *** ../vim-7.4.035/src/regexp_nfa.c 2013-09-22

[Regression after 7.4.03x] Selection is kept after copying over it

2013-09-25 Fir de Conversatie Axel Bender
Please compare the following case using the current (7.4.35) and a previous (7.4ß = the last I can return to) version of gvim (here: Windows 7 64 bit). In the current version a selection - after being copied over with the contents of a register - is kept (no deselection). In the previous

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Ben Fritz
On Wednesday, September 25, 2013 6:18:00 AM UTC-5, Bram Moolenaar wrote: For portability and readability I would encourage keeping the # in the first column. Agree, that makes sense. And thus the default 'cindent' settings should also place it in the first column. Allowing to put it

Re: [Regression after 7.4.03x] Selection is kept after copying over it

2013-09-25 Fir de Conversatie Christian Brabandt
On Wed, September 25, 2013 16:43, Axel Bender wrote: Please compare the following case using the current (7.4.35) and a previous (7.4ß = the last I can return to) version of gvim (here: Windows 7 64 bit). In the current version a selection - after being copied over with the contents of a

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Christian Brabandt
On Wed, September 25, 2013 15:21, Bram Moolenaar wrote: 'cinoptions' is for 'cindent' options. So do we agree, that cino=#N with N being non-zero would allow to indent 'defines'? regards, Christian -- -- You received this message from the vim_dev maillist. Do not top-post! Type your reply

Re: [Regression after 7.4.03x] Selection is kept after copying over it

2013-09-25 Fir de Conversatie David Fishburn
On Wed, Sep 25, 2013 at 10:43 AM, Axel Bender axel.ben...@cip-kommunal.dewrote: Please compare the following case using the current (7.4.35) and a previous (7.4ß = the last I can return to) version of gvim (here: Windows 7 64 bit). In the current version a selection - after being copied over

[POSSIBLE BUG] function() creates function reference with any name with hash

2013-09-25 Fir de Conversatie ZyX
If you do let F=function('#') F will be assigned a function reference with a known to be invalid name. Not sure whether it worth fixing as calling such reference just throws an error. But this will be fixed in extended-funcref branch (mainly because I first fixed it and then found out

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Gary Johnson
On 2013-09-25, Ben Fritz wrote: On Wednesday, September 25, 2013 6:18:00 AM UTC-5, Bram Moolenaar wrote: For portability and readability I would encourage keeping the # in the first column. Agree, that makes sense. And thus the default 'cindent' settings should also place it in

Patch 7.4.037

2013-09-25 Fir de Conversatie Bram Moolenaar
Patch 7.4.037 Problem:Using \ze in a sub-pattern does not result in the end of the match to be set. (Axel Bender) Solution: Copy the end of match position when a recursive match was successful. Files: src/regexp_nfa.c, src/testdir/test64.in,

Patch 7.4.038

2013-09-25 Fir de Conversatie Bram Moolenaar
Patch 7.4.038 Problem:Using zw and zg when 'spell' is off give a confusing error message. (Gary Johnson) Solution: Ignore the error when locating the word. Explicitly mention what word was added. (Christian Brabandt) Files: src/normal.c, src/spell.c ***

Patch 7.4.039

2013-09-25 Fir de Conversatie Bram Moolenaar
Patch 7.4.039 Problem:MS-Windows: MSCV10 and earlier can't handle symlinks to a directory properly. Solution: Add stat_symlink_aware() and wstat_symlink_aware(). (Ken Takata) Files: src/os_mswin.c, src/os_win32.c, src/os_win32.h *** ../vim-7.4.038/src/os_mswin.c

Re: [patch] sets PEP8 indenting suggestions as default in python files

2013-09-25 Fir de Conversatie Lorenzo Bercelli
Thanks. Made it one line. Lorenzo On Wed, Sep 25, 2013 at 11:53 AM, Bram Moolenaar b...@moolenaar.net wrote: Lorenzo Bercelli wrote: The maintainer hasn't answered this email either. I'm sending you the patch again, assuming you approved it the last time. OK. Let's make it one

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Bram Moolenaar
Gary Johnson wrote: On 2013-09-25, Ben Fritz wrote: On Wednesday, September 25, 2013 6:18:00 AM UTC-5, Bram Moolenaar wrote: For portability and readability I would encourage keeping the # in the first column. Agree, that makes sense. And thus the default 'cindent'

Patch 7.4.040

2013-09-25 Fir de Conversatie Bram Moolenaar
Patch 7.4.040 Problem:Valgrind error on exit when a script-local variable holds a reference to the scope of another script. Solution: First clear all variables, then free the scopes. (ZyX) Files: src/eval.c *** ../vim-7.4.039/src/eval.c 2013-08-30 16:35:41.0

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Christian Brabandt
On Mi, 25 Sep 2013, Christian Brabandt wrote: On Mi, 25 Sep 2013, Christian Brabandt wrote: On Wed, September 25, 2013 15:21, Bram Moolenaar wrote: 'cinoptions' is for 'cindent' options. So do we agree, that cino=#N with N being non-zero would allow to indent 'defines'? No one

Re: [Regression after 7.4.03x] Selection is kept after copying over it

2013-09-25 Fir de Conversatie Christian Brabandt
On Mi, 25 Sep 2013, Christian Brabandt wrote: On Wed, September 25, 2013 16:43, Axel Bender wrote: Please compare the following case using the current (7.4.35) and a previous (7.4ß = the last I can return to) version of gvim (here: Windows 7 64 bit). In the current version a selection

Re: Surprised that gi doesn't modify the jumplist

2013-09-25 Fir de Conversatie glts
On Wed, Sep 25, 2013 at 10:04 PM, Christian Brabandt cbli...@256bit.org wrote: I would even go so far and say that 'gi' is one of the more obscure features of Vim that hardly ever someone uses. Other than that I totally agree with Ingo, In my experience, extrapolating your own usage of Vim to

Re: Surprised that gi doesn't modify the jumplist

2013-09-25 Fir de Conversatie Christian Brabandt
On Mi, 25 Sep 2013, Ingo Karkat wrote: On 25-Sep-2013 15:21 +0200, Bram Moolenaar wrote: Christian Brabandt wrote: Hi Tim! On Mo, 23 Sep 2013, Tim Chase wrote: Playing around with the latest VimGolf challenge[1], I was attempting to use gi to add some text, then control+O (or

Re: [Regression after 7.4.03x] Selection is kept after copying over it

2013-09-25 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: On Mi, 25 Sep 2013, Christian Brabandt wrote: On Wed, September 25, 2013 16:43, Axel Bender wrote: Please compare the following case using the current (7.4.35) and a previous (7.4ß = the last I can return to) version of gvim (here: Windows 7 64 bit).

Re: [PATCH] Asynchronous functions (settimeout, setinterval, and cancelinterval)

2013-09-25 Fir de Conversatie Nikolay Pavlov
On Sep 26, 2013 3:30 AM, kans mkania...@gmail.com wrote: Java is the most used language these days and uses the Timer class. JavaScript wasn't designed properly, it has lots of confusing stuff, I would never use it as an example for proper design. Only for ideas. Its true that JS was

Compilation failed after patch 036-041 ( vc6.0 )

2013-09-25 Fir de Conversatie wang shoulin
os_mswin.c os_mswin.c(536) : error C2065: 'intptr_t' : undeclared identifier os_mswin.c(536) : error C2146: syntax error : missing ')' before identifier 'h' os_mswin.c(536) : error C2198: '_open_osfhandle' : too few actual parameters os_mswin.c(536) : error C2059: syntax error : ')'