Re: [vim/vim] Impossible to pass non-UTF-8 strings from vim to Python 3 (#1053)

2016-09-11 Fir de Conversatie Nikolay Aleksandrovich Pavlov
2016-09-11 19:23 GMT+03:00 Björn Linse : > What is wrong with just using CODEC_ERROR_HANDLER directly? AFAIR this is because Python-2 may need "surrogateescape" argument in the Python->Vim direction (to make writing cross-Python scripts), but it definitely does not need

Re: Vim periodically trashes the start of a file

2016-09-11 Fir de Conversatie Ingo Karkat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11-Sep-2016 03:27 +0200, Sholto Douglas wrote: > I have used VIM for many years and am an aficionado. However I > find it has a VERY annoying habit of occasionally truncating the > start of a file when I save it. Usually I can get back the missing

Re: [vim/vim] Static analysis report (#1049)

2016-09-11 Fir de Conversatie Christian Brabandt
Hi Yegappan! On Fr, 09 Sep 2016, Yegappan Lakshmanan wrote: > Hi Christian, > > On Fri, Sep 9, 2016 at 12:08 AM, Christian Brabandt > wrote: > > How did you create that report? > > > > I use the following steps to run static analysis using the clang > static

Re: test popupmenu question

2016-09-11 Fir de Conversatie Christian Brabandt
On So, 11 Sep 2016, h_east wrote: > Hi ChrisBra, Bram and list, > 2016-7-24(Sun) 0:36:14 UTC+9 Christian Brabandt: > > On Sa, 23 Jul 2016, Bram Moolenaar wrote: > > > Christian Brabandt wrote: > > I think I also found a bug, and this makes the test currently fail. > > Take this example from the

Re: [vim/vim] Impossible to pass non-UTF-8 strings from vim to Python 3 (#1053)

2016-09-11 Fir de Conversatie Christian Brabandt
Hi Björn! On So, 11 Sep 2016, Björn Linse wrote: > On Sunday, September 11, 2016 at 6:14:14 PM UTC+2, Björn Linse wrote: > > 615351832d75df3dfbc3f22694e675583e0b325d > BTW, something is wrong with the github <-> vim-dev bridge, this comment (and > the edited version with the correct link below)

Re: [vim/vim] Impossible to pass non-UTF-8 strings from vim to Python 3 (#1053)

2016-09-11 Fir de Conversatie Björn Linse
On Sunday, September 11, 2016 at 6:14:14 PM UTC+2, Björn Linse wrote: > 615351832d75df3dfbc3f22694e675583e0b325d > > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub BTW, something is wrong with the github <-> vim-dev bridge, this comment

Re: test popupmenu question

2016-09-11 Fir de Conversatie h_east
Hi ChrisBra, Bram and list, 2016-7-24(Sun) 0:36:14 UTC+9 Christian Brabandt: > Hi Bram! > > On Sa, 23 Jul 2016, Bram Moolenaar wrote: > > > > > Christian Brabandt wrote: > > > > > Bram, > > > I am writing a test for the popupmenu and the different keys, that can > > > be used there (:h

Re: [vim/vim] Impossible to pass non-UTF-8 strings from vim to Python 3 (#1053)

2016-09-11 Fir de Conversatie Nikolay Aleksandrovich Pavlov
I would suggest something like below, but I have no tests. commit 615351832d75df3dfbc3f22694e675583e0b325d Author: ZyX Date: Tue Aug 16 21:42:24 2016 +0300 Use surrogateescape when appropriate diff --git a/src/if_py_both.h b/src/if_py_both.h index 35ad5d0..6709300

Patch 7.4.2364

2016-09-11 Fir de Conversatie Bram Moolenaar
Patch 7.4.2364 Problem:Sort test sometimes fails. Solution: Add it to the list of flaky tests. Files: src/testdir/runtest.vim *** ../vim-7.4.2363/src/testdir/runtest.vim 2016-09-03 22:35:02.396409822 +0200 --- src/testdir/runtest.vim 2016-09-11 16:48:17.244419871 +0200

Re: Patch 7.4.2200

2016-09-11 Fir de Conversatie LCD 47
On 11 September 2016, Bram Moolenaar wrote: > > Lcd wrote: > > > On 12 August 2016, Bram Moolenaar wrote: > > > > > > Patch 7.4.2200 > > > Problem:Cannot get all information about a quickfix list. > > > Solution: Add an optional argument to

Patch 7.4.2363

2016-09-11 Fir de Conversatie Bram Moolenaar
Patch 7.4.2363 Problem:Superfluous function prototypes. Solution: Remove them. Files: src/regexp.c *** ../vim-7.4.2362/src/regexp.c2016-08-29 22:48:12.165106045 +0200 --- src/regexp.c2016-09-09 20:20:20.692773353 +0200 *** *** 255,263 #define

Re: Update Japanese translations for Vim 7.4.2358

2016-09-11 Fir de Conversatie MURAOKA Taro
d Japanese files for Vim as >> attached. >> You can see its details at >> https://github.com/vim-jp/lang-ja/releases/tag/20160911 > > Thanks. It looks like only the translations in src/po have changed. > > > -- > hundred-and-one symptoms of being an internet addict: > 2

Re: Update Japanese translations for Vim 7.4.2358

2016-09-11 Fir de Conversatie Bram Moolenaar
Taro Muraoka wrote: > I and vim-jp members have released updated Japanese files for Vim as attached. > You can see its details at > https://github.com/vim-jp/lang-ja/releases/tag/20160911 Thanks. It looks like only the translations in src/po have changed. -- hundred-and-one

Patch 7.4.2362

2016-09-11 Fir de Conversatie Bram Moolenaar
Patch 7.4.2362 Problem:Illegal memory access with ":1@". (Dominique Pelle) Solution: Correct cursor column after setting the line number. Also avoid calling end_visual_mode() when not in Visual mode. Files: src/ex_docmd.c, src/buffer.c *** ../vim-7.4.2361/src/ex_docmd.c

Re: Patch 7.4.2347

2016-09-11 Fir de Conversatie Bram Moolenaar
Dominique Pellé wrote: > Bram Moolenaar wrote: > > > > Patch 7.4.2347 > > Problem:Crash when closing a buffer while Visual mode is active. > > (Dominique Pelle) > > Solution: Adjust the position before computing the number of lines. > > When closing the current

Re: Patch 7.4.2200

2016-09-11 Fir de Conversatie Bram Moolenaar
Lcd wrote: > On 12 August 2016, Bram Moolenaar wrote: > > > > Patch 7.4.2200 > > Problem:Cannot get all information about a quickfix list. > > Solution: Add an optional argument to get/set loc/qf list(). (Yegappan > > Lakshmanan) > [...] > > + If

Re: sprintf()

2016-09-11 Fir de Conversatie Bram Moolenaar
John Marriott wrote: > I notice that there are a large number of calls to sprintf() sprinkled > throughout the code (329 in the src directory in version 7.4.2361). > > Would it be worth changing these calls to vim_snprint() (or snprintf())? vim_snprintf() is slower than sprintf(). And in the

Re: Patch 7.4.2200

2016-09-11 Fir de Conversatie LCD 47
On 12 August 2016, Bram Moolenaar wrote: > > Patch 7.4.2200 > Problem:Cannot get all information about a quickfix list. > Solution: Add an optional argument to get/set loc/qf list(). (Yegappan > Lakshmanan) [...] > + If the optional {what}