Re: if_mzsch warnings

2016-02-27 Fir de Conversatie Yukihiro Nakadaira
On Sun, Feb 28, 2016 at 11:28 AM, tux. wrote: > Random warning of the day: > > > if_mzsch.c > > if_mzsch.c(551) : warning C4273: > 'scheme_external_get_thread_local_variables': Inkonsistente DLL-Bindung. > >c:\users\hp\desktop\racket-x86\racket\include\schthread.h(450): > Siehe vorherige

Re: if_mzsch warnings

2016-02-27 Fir de Conversatie Nikolay Aleksandrovich Pavlov
2016-02-28 5:28 GMT+03:00 tux. : > Random warning of the day: > >> if_mzsch.c >> if_mzsch.c(551) : warning C4273: >> 'scheme_external_get_thread_local_variables': Inkonsistente DLL-Bindung. >>c:\users\hp\desktop\racket-x86\racket\include\schthread.h(450): Siehe >> vorherige Definition von

if_mzsch warnings

2016-02-27 Fir de Conversatie tux.
Random warning of the day: > if_mzsch.c > if_mzsch.c(551) : warning C4273: > 'scheme_external_get_thread_local_variables': Inkonsistente DLL-Bindung. >c:\users\hp\desktop\racket-x86\racket\include\schthread.h(450): Siehe > vorherige Definition von 'scheme_external_get_thread_local_variab

Patch 7.4.1444

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1444 Problem:Can't build with JSON but without multi-byte. Solution: Fix pointer name. Files: src/json.c *** ../vim-7.4.1443/src/json.c 2016-02-27 21:27:16.550519087 +0100 --- src/json.c 2016-02-27 22:57:07.029799206 +0100 *** *** 101,107 /* al

Re: [patch] fixed compilation error in GTK3 GUI with vim small

2016-02-27 Fir de Conversatie Bram Moolenaar
Dominique Pellé wrote: > vim-7.4.1433 compiles fine on xubuntu-15.10 with: > > $ ./configure --with-features=3Dnormal --enable-gui=3Dgtk3 > > But compilation fails with: > > $ ./configure --with-features=3Dsmall --enable-gui=3Dgtk3 > $ make > ... > gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI

Patch 7.4.1443

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1443 Problem:Can't build GTK3 with small features. Solution: Use gtk_widget_get_window(). Fix typos. (Dominique Pelle) Files: src/gui_gtk_x11.c *** ../vim-7.4.1442/src/gui_gtk_x11.c 2016-02-27 18:13:05.232593151 +0100 --- src/gui_gtk_x11.c 2016-02-27 22:05:23.346473924

Re: compilation warning in gui_dwrite.cpp

2016-02-27 Fir de Conversatie Bram Moolenaar
Ken Takata wrote: > 2016/2/27 Sat 23:28:20 UTC+9 Bram Moolenaar wrote: > > Ken Takata wrote: > > > > > Hi mattn, > > > > > > 2016/2/26 Fri 16:37:01 UTC+9 mattn wrote: > > > > gui_dwrite.cpp:348:13: warning: deleting object of polymorphic class > > > > type 'GdiTextRenderer' which has non-virtu

Patch 7.4.1442

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1442 Problem:MS-Windows: more compilation warnings for destructor. Solution: Add "virtual". (Ken Takata) Files: src/if_ole.cpp *** ../vim-7.4.1441/src/if_ole.cpp 2013-05-06 04:06:04.0 +0200 --- src/if_ole.cpp 2016-02-27 21:58:11.411020991 +0100

Patch 7.4.1441

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1441 Problem:Using empty name instead of no name for channel buffer. Solution: Remove the empty name. Files: src/channel.c *** ../vim-7.4.1440/src/channel.c 2016-02-27 21:10:05.121338560 +0100 --- src/channel.c 2016-02-27 21:51:22.523327298 +0100 ***

Re: Patch 7.4.1437

2016-02-27 Fir de Conversatie Dominique Pellé
Nikolay Aleksandrovich Pavlov wrote: > 2016-02-27 23:08 GMT+03:00 Dominique Pellé : >> Nikolay Aleksandrovich Pavlov wrote: >> >> + #if defined(FEAT_EVAL) && defined(FEAT_FLOAT) + # include + # if defined(HAVE_MATH_H) +/* for isnan() and isinf() */ + # include >>>

Re: Patch 7.4.1437

2016-02-27 Fir de Conversatie Bram Moolenaar
Tux wrote: > Bram Moolenaar schrob am Samstag, 27. Februar 2016 um 20:14 Zeit: > > > Adjust #ifdefs. Detect isnan() and isinf() functions with configure. > > Use a replacement when missing. (Kazunobu Kuriyama) > > Sadly, that breaks on Windows (MSVC2010) again, probably related to > Perl: > >

Patch 7.4.1440

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1440 (after 7.4.1437) Problem:Can't build on Windows. Solution: Change #ifdefs. Only define isnan when used. Files: src/macros.h, src/eval.c, src/json.c *** ../vim-7.4.1439/src/macros.h2016-02-27 20:14:09.920546700 +0100 --- src/macros.h2016-02-27 21:23:38.0

Re: Patch 7.4.1437

2016-02-27 Fir de Conversatie John Marriott
On 28-Feb-2016 7:12 AM, tux. wrote: Ken Takata schrob am Samstag, 27. Februar 2016 um 21:02 Zeit: Attached patch should fix them. Confirmed. :-) For mingw64 as well. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying

Patch 7.4.1439

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1439 (after 7.4.1434) Problem:Using uninitialzed variable. Solution: Initialize vc_type. Files: src/json.c *** ../vim-7.4.1438/src/json.c 2016-02-27 20:14:09.920546700 +0100 --- src/json.c 2016-02-27 21:13:02.807474445 +0100 *** *** 83,94 vimconv_T

Re: Patch 7.4.1437

2016-02-27 Fir de Conversatie Nikolay Aleksandrovich Pavlov
2016-02-27 23:08 GMT+03:00 Dominique Pellé : > Nikolay Aleksandrovich Pavlov wrote: > > >>> + #if defined(FEAT_EVAL) && defined(FEAT_FLOAT) >>> + # include >>> + # if defined(HAVE_MATH_H) >>> +/* for isnan() and isinf() */ >>> + # include >>> + # endif >>> + # if defined(WIN32) && !defined(

Re: Patch 7.4.1437

2016-02-27 Fir de Conversatie tux.
Ken Takata schrob am Samstag, 27. Februar 2016 um 21:02 Zeit: > Attached patch should fix them. Confirmed. :-) -- -- 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/mailli

Re: compilation warning in gui_dwrite.cpp

2016-02-27 Fir de Conversatie Ken Takata
Hi Bram, 2016/2/27 Sat 23:28:20 UTC+9 Bram Moolenaar wrote: > Ken Takata wrote: > > > Hi mattn, > > > > 2016/2/26 Fri 16:37:01 UTC+9 mattn wrote: > > > gui_dwrite.cpp:348:13: warning: deleting object of polymorphic class type > > > 'GdiTextRenderer' which has non-virtual destructor might cause

Re: Emoji

2016-02-27 Fir de Conversatie Bram Moolenaar
Yasuhiro Matsumoto wrote: > On Sunday, February 28, 2016 at 12:05:45 AM UTC+9, Bram Moolenaar wrote: > > Yasuhiro Matsumoto wrote: > > > > > On Friday, February 26, 2016 at 9:29:16 AM UTC+9, mattn wrote: > > > > On Friday, February 26, 2016 at 6:17:42 AM UTC+9, Bram Moolenaar wrote: > > > > > Ya

Patch 7.4.1438

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1438 Problem:Can't get buffer number of a channel. Solution: Add ch_getbufnr(). Files: src/eval.c, src/channel.c, src/testdir/test_channel.vim, runtime/doc/channel.txt, runtime/doc/eval.txt *** ../vim-7.4.1437/src/eval.c 2016-02-27 20:14:09.920546700 +0100 --- s

Re: Patch 7.4.1437

2016-02-27 Fir de Conversatie Dominique Pellé
Nikolay Aleksandrovich Pavlov wrote: >> + #if defined(FEAT_EVAL) && defined(FEAT_FLOAT) >> + # include >> + # if defined(HAVE_MATH_H) >> +/* for isnan() and isinf() */ >> + # include >> + # endif >> + # if defined(WIN32) && !defined(isnan) >> + # define isnan(x) _isnan(x) >> + # define

Re: Patch 7.4.1437

2016-02-27 Fir de Conversatie Ken Takata
Hi, 2016/2/28 Sun 4:47:51 UTC+9 tux. wrote: > Bram Moolenaar schrob am Samstag, 27. Februar 2016 um 20:14 Zeit: > > > Adjust #ifdefs. Detect isnan() and isinf() functions with configure. > > Use a replacement when missing. (Kazunobu Kuriyama) > > Sadly, that breaks on Windows (MSVC2010) again, p

Re: Patch 7.4.1437

2016-02-27 Fir de Conversatie Nikolay Aleksandrovich Pavlov
2016-02-27 22:14 GMT+03:00 Bram Moolenaar : > > Patch 7.4.1437 > Problem:Old system doesn't have isinf() and NAN. (Ben Fritz) > Solution: Adjust #ifdefs. Detect isnan() and isinf() functions with > configure. Use a replacement when missing. (Kazunobu Kuriyama) > Files: src/e

Re: Patch 7.4.1437

2016-02-27 Fir de Conversatie tux.
Bram Moolenaar schrob am Samstag, 27. Februar 2016 um 20:14 Zeit: > Adjust #ifdefs. Detect isnan() and isinf() functions with configure. > Use a replacement when missing. (Kazunobu Kuriyama) Sadly, that breaks on Windows (MSVC2010) again, probably related to Perl: > if_perl.c > c:\perl64\perl\li

Patch 7.4.1437

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1437 Problem:Old system doesn't have isinf() and NAN. (Ben Fritz) Solution: Adjust #ifdefs. Detect isnan() and isinf() functions with configure. Use a replacement when missing. (Kazunobu Kuriyama) Files: src/eval.c, src/json.c, src/macros.h, src/message.c,

Re: C99 is needed to build vim

2016-02-27 Fir de Conversatie Bram Moolenaar
Kazunobu Kuriyama wrote: > Attached is a patch which makes isnan() and isinf() portable. > > It is basically a combination of the existence cpp macros of json.c and > what is described in the manual > http://www.gnu.org/software/autoconf/manual/autoconf.html#Library-Functions > , on top of confi

[patch] fixed compilation error in GTK3 GUI with vim small

2016-02-27 Fir de Conversatie Dominique Pellé
Hi vim-7.4.1433 compiles fine on xubuntu-15.10 with: $ ./configure --with-features=normal --enable-gui=gtk3 But compilation fails with: $ ./configure --with-features=small --enable-gui=gtk3 $ make ... gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-3.0 -I/usr/incl

Patch 7.4.1436

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1436 (after 7.4.1433) Problem:Sniff files still referenced in distribution. Solution: Remove sniff files from distribution. Files: Filelist *** ../vim-7.4.1435/Filelist2016-02-26 19:58:44.039326159 +0100 --- Filelist2016-02-27 19:21:46.365470089 +0100 ***

Patch 7.4.1435

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1435 Problem:It is confusing that ch_sendexpr() and ch_sendraw() wait for a response. Solution: Add ch_evalexpr() and ch_evalraw(). Files: src/eval.c, src/channel.c, runtime/doc/channel.txt, runtime/doc/eval.txt, src/testdir/test_channel.vim *** ../vi

Re: C99 is needed to build vim

2016-02-27 Fir de Conversatie Kazunobu Kuriyama
Attached is a patch which makes isnan() and isinf() portable. It is basically a combination of the existence cpp macros of json.c and what is described in the manual http://www.gnu.org/software/autoconf/manual/autoconf.html#Library-Functions , on top of configure check. As Nikolay suggested, addi

Patch 7.4.1434

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1434 Problem:JSON encoding doesn't hanel surrogate pair. Solution: Improve multi-byte handling of JSON. (Yasuhiro Matsumoto) Files: src/json.c, src/testdir/test_json.vim *** ../vim-7.4.1433/src/json.c 2016-02-27 16:33:02.343528029 +0100 --- src/json.c 2016-02-27 18:35:46.6

Patch 7.4.1433

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1433 Problem:The Sniff interface is no longer useful, the tool has not been available for may years. Solution: Delete the Sniff interface and related code. Files: src/if_sniff.c, src/if_sniff.h, src/charset.c, src/edit.c, src/eval.c, src/ex_cmds2.c, src

Patch 7.4.1432

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1432 Problem:Typo in button text. Solution: Fix the typo. (Dominique Pelle) Files: src/gui_gtk.c *** ../vim-7.4.1431/src/gui_gtk.c 2016-02-23 17:13:56.881032289 +0100 --- src/gui_gtk.c 2016-02-27 17:19:41.774193813 +0100 *** *** 1661,1667

Re: Patch 7.4.1426

2016-02-27 Fir de Conversatie Bram Moolenaar
I wrote: > Patch 7.4.1426 > Problem:The "out-io" option for jobs is not implemented yet. > Solution: Implement the "buffer" value: append job output to a buffer. > Files: src/eval.c, src/channel.c, src/structs.h, src/netbeans.c, > runtime/doc/channel.txt In case you didn't

Re: Patch 7.4.1426

2016-02-27 Fir de Conversatie Bram Moolenaar
Mats Bertil Tegner wrote: > On 2016-02-27 14:44, Bram Moolenaar wrote: > > > > Patch 7.4.1426 > > Problem:The "out-io" option for jobs is not implemented yet. > > Solution: Implement the "buffer" value: append job output to a buffer. > > Files: src/eval.c, src/channel.c, src/structs.h

Re: [patch] fixed typo in translatable string

2016-02-27 Fir de Conversatie Bram Moolenaar
Dominique wrote: > Attached typo fixes a typo in a translatable string > of the GTK GUI. Thanks! -- What do you get when you cross a joke with a rehtorical question? /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http:/

Patch 7.4.1431

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1431 Problem:Including header files twice. Solution: Remove the extra includes. Files: src/if_cscope.h *** ../vim-7.4.1430/src/if_cscope.h 2016-01-29 23:20:35.313308119 +0100 --- src/if_cscope.h 2016-02-27 16:44:54.164074901 +0100 *** *** 11,26

Re: C99 is needed to build vim

2016-02-27 Fir de Conversatie Bram Moolenaar
Ozaki Kiichi wrote: > FYI: > > I couldn't build vim on following environments (by vim's default build-flags). > > > * CentOS 5, gcc 4.1.2 > > Old gcc, 4.1.2, doesn't define NAN or INFINITY by default. What else can we use instead? Or do we need to disable the feature that requires it? > "

Re: Emoji

2016-02-27 Fir de Conversatie mattn
On Sunday, February 28, 2016 at 12:05:45 AM UTC+9, Bram Moolenaar wrote: > Yasuhiro Matsumoto wrote: > > > On Friday, February 26, 2016 at 9:29:16 AM UTC+9, mattn wrote: > > > On Friday, February 26, 2016 at 6:17:42 AM UTC+9, Bram Moolenaar wrote: > > > > Yasuhiro Matsumoto wrote: > > > > > > > >

Patch 7.4.1430

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1430 Problem:When encoding JSON, turning NaN and Infinity into null without giving an error is not useful. Solution: Pass NaN and Infinity on. If the receiver can't handle them it will generate the error. Files: src/json.c, src/testdir/test_json.vim, r

Re: C99 is needed to build vim

2016-02-27 Fir de Conversatie Ozaki Kiichi
FYI: I couldn't build vim on following environments (by vim's default build-flags). * CentOS 5, gcc 4.1.2 Old gcc, 4.1.2, doesn't define NAN or INFINITY by default. "-std=gnu99" is needed. * OpenIndiana (Solaris), gcc 4.8.5 isinf(), NAN, INFITITY are not declared/defined as far as conformi

Incompatible change with ch_sendexpr() and ch_sendraw()

2016-02-27 Fir de Conversatie Bram Moolenaar
After writing a few tests where message are sent over a channel without waiting for a response, it became clear that the way ch_sendraw() is used is not nice: call ch_sendraw(handle, "echo line one\n", {'callback': 0}) Having the zero callback there on every call is not nice. Also, the

Re: Emoji

2016-02-27 Fir de Conversatie Bram Moolenaar
Yasuhiro Matsumoto wrote: > On Friday, February 26, 2016 at 9:29:16 AM UTC+9, mattn wrote: > > On Friday, February 26, 2016 at 6:17:42 AM UTC+9, Bram Moolenaar wrote: > > > Yasuhiro Matsumoto wrote: > > > > > > > Hi, list. > > > > > > > > I want to merge this patch that is merged on macvim. > >

Patch 7.4.1429

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1429 Problem:On MS-Windows, when not use renderoptions=type:directx, drawing emoji will be broken. Solution: Fix usage of unicodepdy. (Yasuhiro Matsumoto) Files: src/gui_w32.c *** ../vim-7.4.1428/src/gui_w32.c 2016-02-23 19:33:57.429544837 +0100 --- src/gui

Re: Emoji is broken on windows

2016-02-27 Fir de Conversatie Bram Moolenaar
Yasuhiro Matsumoto wrote: > When not use renderoptions=type:directx, drawing emoji will be broken. > Because index of unicodepdy is different from unicodebuf. Thanks! -- Biting someone with your natural teeth is "simple assault," while biting someone with your false teeth is "aggravated assaul

Re: Patch 7.4.1426

2016-02-27 Fir de Conversatie Mats Bertil Tegner
On 2016-02-27 14:44, Bram Moolenaar wrote: > > Patch 7.4.1426 > Problem:The "out-io" option for jobs is not implemented yet. > Solution: Implement the "buffer" value: append job output to a buffer. > Files: src/eval.c, src/channel.c, src/structs.h, src/netbeans.c, > runtime/

Re: C99 is needed to build vim

2016-02-27 Fir de Conversatie Nikolay Aleksandrovich Pavlov
2016-02-27 17:21 GMT+03:00 Bram Moolenaar : > > Ben Fritz wrote: > >> On Friday, February 26, 2016 at 11:04:56 AM UTC-6, Bram Moolenaar wrote: >> > Ozaki Kiichi wrote: >> > >> > > Some vim codes use C99 features; >> > >> > We aim at ANSI C, but some things may be optional. >> > >> > > * json.c: isi

Re: compilation warning in gui_dwrite.cpp

2016-02-27 Fir de Conversatie Bram Moolenaar
Ken Takata wrote: > Hi mattn, > > 2016/2/26 Fri 16:37:01 UTC+9 mattn wrote: > > gui_dwrite.cpp:348:13: warning: deleting object of polymorphic class type > > 'GdiTextRenderer' which has non-virtual destructor might cause undefined > > behaviour [-Wdelete-non-virtual-dtor] > > delete this

Patch 7.4.1428

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1428 Problem:Compiler warning for non-virtual destructor. Solution: Make it virtual. (Yasuhiro Matsumoto) Files: src/gui_dwrite.cpp *** ../vim-7.4.1427/src/gui_dwrite.cpp 2016-01-10 13:25:52.009704354 +0100 --- src/gui_dwrite.cpp 2016-02-27 15:24:44.730332114 +0100 ***

Re: C99 is needed to build vim

2016-02-27 Fir de Conversatie Bram Moolenaar
Ben Fritz wrote: > On Friday, February 26, 2016 at 11:04:56 AM UTC-6, Bram Moolenaar wrote: > > Ozaki Kiichi wrote: > > > > > Some vim codes use C99 features; > > > > We aim at ANSI C, but some things may be optional. > > > > > * json.c: isinf(), NAN, INFINITY > > > > AFAIK isinf() is ANSI C.

Patch 7.4.1427

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1427 Problem:Trailing comma in enums is not ANSI C. Solution: Remove the trailing commas. Files: src/alloc.h, src/gui_mac.c *** ../vim-7.4.1426/src/alloc.h 2016-01-15 20:48:09.866003187 +0100 --- src/alloc.h 2016-02-27 15:13:43.809241724 +0100 *** *** 17,21

Patch 7.4.1426

2016-02-27 Fir de Conversatie Bram Moolenaar
Patch 7.4.1426 Problem:The "out-io" option for jobs is not implemented yet. Solution: Implement the "buffer" value: append job output to a buffer. Files: src/eval.c, src/channel.c, src/structs.h, src/netbeans.c, runtime/doc/channel.txt *** ../vim-7.4.1425/src/eval.c 2016-

Re: Patch 7.4.1419

2016-02-27 Fir de Conversatie Bram Moolenaar
Ken Takata wrote: > Hi Bram, > > 2016/2/26 Fri 5:22:14 UTC+9 Bram Moolenaar wrote: > > Patch 7.4.1419 > > Problem:Tests slowed down because of the "not a terminal" warning. > > Solution: Add the --not-a-term command line argument. > > Files: src/main.c, src/testdir/Makefile, src/Make_

Re: Emoji

2016-02-27 Fir de Conversatie mattn
BTW, when not use this patch Emoji is broken with moving cursor around the emoji like below. https://gyazo.com/0c3c3a7abcdf91acc79c79d43ca1d7e5.png But this patch is perfect. https://gyazo.com/35c22d6a500122394468a315de2d9d64.png - mattn -- -- You received this message from the "vim_dev" ma

Re: [patch] Add Error autocmd event

2016-02-27 Fir de Conversatie Anton Lindqvist
On Thu, Feb 25, 2016 at 10:17:34PM +0100, Bram Moolenaar wrote: > > Anton Lindqvist wrote: > > > Bram, > > I noticed your comment in todo.txt about the fact that the current > > solution only remembers the code of last error that occurred. Here's a > > first attempt address this issue by using an