Re: [PATCH] Add string-replace-substring to (ice-9 string-fun)

2020-01-05 Thread Christopher Lam
This function has an interesting history. Someone or something in #guile had clued me there was a magic string-replace-substring somewhere in guile-user archives. With some luck I found it, and had bookmarked it, and kept it at the back of my mind for a good number of months. Meanwhile I was stea

patch to augment and=>

2020-07-05 Thread Christopher Lam
Hi guilers! Is this of any interest to merge into boot.scm? Chris diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm index 0d37f3d48..edb7e93cc 100644 --- a/module/ice-9/boot-9.scm +++ b/module/ice-9/boot-9.scm @@ -803,9 +803,13 @@ VALUE." (lambda _ value)) -(define (and=> val

Re: No Guile on Windows? (was: My Guile Hacker Handbook)

2020-07-27 Thread Christopher Lam
risk of falling behind. https://github.com/jralls/guile On Sat, 25 Jul 2020, 10:28 pm Eli Zaretskii, wrote: > > From: Christopher Lam > > Date: Sat, 25 Jul 2020 13:56:28 + > > Cc: guile-user , help-g...@gnu.org > > > > Gnucash 4.0 in windows is successfully

Re: [PATCH] Add string-split-substring

2022-02-12 Thread Christopher Lam
I think the last test should be: (pass-if "string-split-substring - non-empty, trailing delimiters" (equal? (string-split-substring "barfoo" "foo") (list "bar" "" And isn't it more efficient to use substring/shared instead of substring? On Sun, 13 Feb 2022 at 03:06, Vijay M

simple-format vs (ice-9 format) bug in 3.0.7?

2022-09-27 Thread Christopher Lam
Hi guilers, here's a short bash session. Why would the first bash call to "guile s.scm" work, but not the second one? guile-3.0.7 on ubuntu. $ cat s.scm (format #t "~f\n" 2.5) $ guile s.scm ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or p

Re: [GNC] Question about OFX imports

2024-05-13 Thread Christopher Lam
And here's a question in return: there's a special field in ofx so that a previously imported transaction may be corrected. Gnucash currently ignores these correction fields. Do you think you can check if your ofx file has these fields? If so, would you care to submit a sample .OFX file into bugz