Re: [dev] [wmii] wimenu custom completion

2010-08-12 Thread Kris Maglione
On Thu, Aug 12, 2010 at 09:19:52PM -0400, Kris Maglione wrote: Yes... Unfortunately awk dies on SIGPIPE in that example, so it never runs the END block. This slight variation should work: wimenu -c fifo; fflush(fifo) } // # Push out a new set of completions

Re: [dev] [wmii] wimenu custom completion

2010-08-12 Thread Kris Maglione
On Thu, Aug 12, 2010 at 10:51:59PM +0200, LuX wrote: I would really like to use the 'custom completion' feature documented in the man page of wimenu-3.9.2, just as in the provided example: Unfortunately the example script given there goes far beyond my skills. I have copied and pasted it in a fi

[dev] [wmii] wimenu custom completion

2010-08-12 Thread LuX
Hello list! I would really like to use the 'custom completion' feature documented in the man page of wimenu-3.9.2, just as in the provided example: > Let's assume that a script would like to provide a menu with > completions first for a command name, then for arguments to that > command. Unfo

Re: [dev] three column layout / getting started writing patches

2010-08-12 Thread Valentin
As I said, it's bound to M-[ and M-] by default, so the examples are already in the code. On Thu, Aug 12, 2010 at 02:47:45PM -0500, Jaime Villarreal wrote: > I saw setmfact() ... but didn't see it called anywhere. Setting the mfact > variable in config.h should have been obvious to me but I'm havi

Re: [dev] three column layout / getting started writing patches

2010-08-12 Thread Jaime Villarreal
I saw setmfact() ... but didn't see it called anywhere. Setting the mfact variable in config.h should have been obvious to me but I'm having trouble understanding where and how setmfact() is being used. On Thu, Aug 12, 2010 at 2:11 PM, Valentin wrote: > On Thu, Aug 12, 2010 at 01:25:19PM -0500,

[dev] Re: Lexers and parsers 2

2010-08-12 Thread Maurí­cio CA
echo '(+ 1 2 (+ 3 4) (+ 5 6) 7)' | calc.noam I'm sorry, but looking at the above I just couldn't [not] notice the Greenspun's Tenth Rule of Programming :) The nice thing about that law is that it can easily be adapted to your language of choice. Let's try the Haskell version, this time wit

Re: [dev] three column layout / getting started writing patches

2010-08-12 Thread Valentin
On Thu, Aug 12, 2010 at 01:25:19PM -0500, Jaime Villarreal wrote: > Ah! missed that. Thanks! You did notice setmfact(), right? It's bound to M-[ and M-] by default... pgpZg6nfH9Ouk.pgp Description: PGP signature

Re: [dev] three column layout / getting started writing patches

2010-08-12 Thread Jaime Villarreal
Ah! missed that. Thanks! On Thu, Aug 12, 2010 at 1:07 PM, Pascal Wittmann wrote: > It's set in config.h: > > static const float mfact = 0.55; /* factor of master area size > [0.05..0.95] */ > > > On 08/12/2010 07:50 PM, Jaime Villarreal wrote: > >> thanks again Valentin. >> After hacking a b

Re: [dev] three column layout / getting started writing patches

2010-08-12 Thread Pascal Wittmann
It's set in config.h: static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ On 08/12/2010 07:50 PM, Jaime Villarreal wrote: thanks again Valentin. After hacking a bit with the code I figured out that I can set the m->mfact variable to a different value in order t

Re: [dev] three column layout / getting started writing patches

2010-08-12 Thread Jaime Villarreal
thanks again Valentin. After hacking a bit with the code I figured out that I can set the m->mfact variable to a different value in order to adjust the proportion of the width of th master column to the other two columns. I am just hard coding a new value into the function you gave me. This works

Re: [dev] Lexers and parsers 2

2010-08-12 Thread Antoni Grzymala
Antoni Grzymala dixit (2010-08-12, 18:54): > > If you name it 'calc.noam' and type: > > > > echo '(+ 1 2 (+ 3 4) (+ 5 6) 7)' | calc.noam > > I'm sorry, but looking at the above I just couldn't notice the > Greenspun's Tenth Rule of Programming :) s/notice/not notice/ – or whatever, dunno. Whe

Re: [dev] Lexers and parsers 2

2010-08-12 Thread Antoni Grzymala
Maurí­cio CA dixit (2010-08-12, 00:10): > If you name it 'calc.noam' and type: > > echo '(+ 1 2 (+ 3 4) (+ 5 6) 7)' | calc.noam I'm sorry, but looking at the above I just couldn't notice the Greenspun's Tenth Rule of Programming :) -- [a]

Re: [dev] off topic - awk versions performance comparison

2010-08-12 Thread Jakub Lach
Joseph Xu wrote: >I was using GNU tr. The input files were single lines >with 1 or 100 y's, so I was doing 100 matches >in each case (from the for loop) on the same line. I guess >I should have made that more explicit, sorry. I'm interested in >what results you're getting. $ yes | h