Re: Re: Patch to try out: floating point

2008-04-10 Thread Ag. D. Hatzimanikas
On Wed, Apr 09, at 04:15 Charles E Campbell Jr wrote: > > Bram Moolenaar wrote: > > > > OK, so we do need to worry about this. > > > > This patch to message.c, replacing the previous one, should do it. > > > Hello! > > I applied the first patch, and it worked. However, the second one... > >

[Patch] Fix Count_words()

2008-05-02 Thread Ag. D. Hatzimanikas
Hi, Please issue, :helpgrep Wordcount let count = count + Wordcount(getline(n)) The Wordcount function does not exists. Again from the same function, the "count" variable is a read only, so it has to be preceded with an "l:". Funny thing is that the "count" var is being mentioned fo

Re: Re: fix $(..) and $((..)) syntax highlighting for /bin/sh

2008-06-16 Thread Ag. D. Hatzimanikas
On Tue, Jun 17, at 01:57 Tony Mechelynck wrote: > On 17/06/08 01:41, Pádraig Brady wrote: > > > > p.s. shouldn't the flag have been called is_posix_sh ? > > It might have been called sh_is_posix, but it's too late for that -- > upwards compatibility again. > > As for "erroneously" -- I agree wi

Vim Patches Project. [Was: updated 'relativenumber' patch]

2008-06-29 Thread Ag. D. Hatzimanikas
On Sun, Jun 29, at 03:19 Bram Moolenaar wrote: > > > Richard - > > > On Fri, Jun 27, 2008 at 01:23, Markus Heidelberg > > <[EMAIL PROTECTED]> wrote: > > > > > I have adapted my relativenumber patch to Vim 7.2a, initial version > > > was from 21.02.2008. Unfortunately it didn't get into mainlin

Unpredictable behavior.

2008-07-10 Thread Ag. D. Hatzimanikas
Hi, I was running a function, (say write()) to call redir to write in a file and then another function, (say read()) to call readfile to read the last entry from that same file, when I discovered that in every second call to those functions, readfile couldn't read the last line of the file, alth

Re: Re: Unpredictable behavior.

2008-07-10 Thread Ag. D. Hatzimanikas
Hi Andy, On Thu, Jul 10, at 08:58 Andy Wokula wrote: > > Hmm, from my testing: :redir works a bit strange. While you think > :echo "line" sends "line\n", actually "\nline" is redirected. That's > why you get a first empty line in the file and the final EOL is missing. > And readfile() doesn't

Re: Reading a file from a script?

2008-08-20 Thread Ag. D. Hatzimanikas
On Thu, Aug 21, at 12:26 Robert Webb wrote: > > I could also use readfile(), which would probably suffice, but is this > more or less efficient than loading a file into a vim buffer. I will > still need to read the whole file either way since I don't know how > far through the file I will need t

Re: (patch) Lua interface

2008-09-01 Thread Ag. D. Hatzimanikas
On Mon, Sep 01, at 01:13 Luis Carvalho wrote: > Hi, > > I'm attaching a patch that provides a complete Lua [1] interface to Vim in > case anyone finds it useful. The patch is against vim-7.2. Any feedback is > welcome, of course. Disclaimer: this is my first post to the list and this is > my fir

Re: (patch) Lua interface

2008-09-01 Thread Ag. D. Hatzimanikas
On Mon, Sep 01, at 10:57 Ag. D. Hatzimanikas wrote: > > Below is a minor diff to your patch. > Note to me: Don't send again patches, when there is an angry wife near your shoulders. --- vim72-lua.patch.orig2008-09-01 10:42:52.905306090 +0300 +++ vim72-lua.patch 20

Re: (patch) Lua interface

2008-09-01 Thread Ag. D. Hatzimanikas
On Mon, Sep 01, at 01:19 Luis Carvalho wrote: > > > Below is a minor diff to your patch. > > Thank you. I'm attaching an updated version of the patch with a few more > changes. I should probably find a place to put the latest version of the > patch... > Thanks. I think I've tried all the avail

Re: (patch) Lua interface

2008-09-01 Thread Ag. D. Hatzimanikas
On Mon, Sep 01, at 01:19 Luis Carvalho wrote: > > > Below is a minor diff to your patch. > > Thank you. I'm attaching an updated version of the patch with a few more > changes. I should probably find a place to put the latest version of the > patch... > By the way, I added your patch to the vi