Re: [Chicken-users] readline: history, empty lines, duplicate lines
Thanks, Toby. Egg is updated. cheers, felix On 10/22/06, Toby Butzon <[EMAIL PROTECTED]> wrote: Hi, On 10/20/06, Dan <[EMAIL PROTECTED] > wrote: > > > Another useful thing would be not to save duplicate lines, but it > > > requires marginally more work than just writing this message. > > I think this could be a configuration option like, if I remember > > correctly, it is in shells like GNU Bash. > > Right, but > > (i) this feature needs to be programmed into readline.scm -- the C library has no direct support for it > (ii) I have no idea why anyone would *want* duplicates -- do you? > I agree. Attached is a patch that prevents duplicates from being added. -- Toby Butzon ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users -- http://galinha.ucpel.tche.br:8081/blog/blog.ssp ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] readline: history, empty lines, duplicate lines
Hi,On 10/20/06, Dan <[EMAIL PROTECTED] > wrote: > > Another useful thing would be not to save duplicate lines, but it> > requires marginally more work than just writing this message.> I think this could be a configuration option like, if I remember > correctly, it is in shells like GNU Bash.Right, but(i) this feature needs to be programmed into readline.scm -- the C library has no direct support for it(ii) I have no idea why anyone would *want* duplicates -- do you? I agree. Attached is a patch that prevents duplicates from being added.-- Toby Butzon readline-egg-no-dupes.diff Description: Binary data ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] readline: history, empty lines, duplicate lines
On 10/20/06, Dan <[EMAIL PROTECTED]> wrote: Someone please patch the readline egg: 335c335 < if (gnu_readline_buf != NULL) --- > if (gnu_readline_buf != NULL && *gnu_readline_buf != '\0') Done. Thanks. cheers, felix -- http://galinha.ucpel.tche.br:8081/blog/blog.ssp ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] readline: history, empty lines, duplicate lines
> > Another useful thing would be not to save duplicate lines, but it > > requires marginally more work than just writing this message. > I think this could be a configuration option like, if I remember > correctly, it is in shells like GNU Bash. Right, but (i) this feature needs to be programmed into readline.scm -- the C library has no direct support for it (ii) I have no idea why anyone would *want* duplicates -- do you? Best, Dan ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] readline: history, empty lines, duplicate lines
Hello Dan, On Thu, 19 Oct 2006 23:55:22 -0700 (PDT) Dan <[EMAIL PROTECTED]> wrote: > Is anyone using the readline egg? I use it quite frequently when I want to quickly test something simple. > Another useful thing would be not to save duplicate lines, but it > requires marginally more work than just writing this message. I think this could be a configuration option like, if I remember correctly, it is in shells like GNU Bash. Best wishes, Mario ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] readline: history, empty lines, duplicate lines
Someone please patch the readline egg: 335c335 < if (gnu_readline_buf != NULL) --- > if (gnu_readline_buf != NULL && *gnu_readline_buf != '\0') to avoid blank lines being saved to history. Is anyone using the readline egg? Another useful thing would be not to save duplicate lines, but it requires marginally more work than just writing this message. ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users