xdgdirs 2.1 available

2013-09-07 Thread Thien-Thi Nguyen
release notes: Small changes, no big deal. thi README excerpt: This directory contains the program ‘xdgdirs’, released under the terms of the GNU GPLv3+. It displays the names and values of the XDG_* env vars related to the XDG Basedir Specification: http://standards.freedeskt

Re: smob gc protection, and inheritance

2013-09-07 Thread Ludovic Courtès
Andy Wingo skribis: > Lately what I have been doing is just using the FFI, and setting > finalizers on pointers as needed. This is by far the most flexible approach. Ludo’.

xdgdirs 2.0 available

2013-09-07 Thread Thien-Thi Nguyen
release notes: OK, so i succumbed to the over-engineering bad habit, rationalizing it back under the tasteful threshold by expanding the scope of the problem. Hee hee. thi README excerpt: This directory contains the program ‘xdgdirs’, released under the terms of the GNU GPLv3+.

Re: Guile-Emacs update

2013-09-07 Thread Andy Wingo
On Sat 07 Sep 2013 12:02, Eli Zaretskii writes: >> From: Andy Wingo >> Date: Sat, 07 Sep 2013 11:29:10 +0200 >> Cc: guile-user@gnu.org, BT Templeton , joa...@verona.se, >> emacs-de...@gnu.org >> >> On Thu 01 Aug 2013 00:17, taylanbayi...@gmail.com (Taylan Ulrich B.) writes: >> >> > the "d

Re: Guile-Emacs update

2013-09-07 Thread Eli Zaretskii
> From: Andy Wingo > Date: Sat, 07 Sep 2013 11:29:10 +0200 > Cc: guile-user@gnu.org, BT Templeton , joa...@verona.se, > emacs-de...@gnu.org > > On Thu 01 Aug 2013 00:17, taylanbayi...@gmail.com (Taylan Ulrich B.) writes: > > > the "dumping" feature of Emacs is disabled > > Eventually Guil

Re: Creating a top level definition if none so far exists, on the fly.

2013-09-07 Thread Andy Wingo
On Thu 15 Aug 2013 15:37, Richard Shann writes: > Hmm, so I asked about this before in February. Gives me an idea of the > extent of my memory span - it didn't even ring a bell. You know, I forgot about the answer too ;-) Andy -- http://wingolog.org/

Re: Memory use analysis

2013-09-07 Thread Andy Wingo
On Tue 13 Aug 2013 20:23, m...@markwitmer.com writes: > I'm facing an issue with ballooning memory usage in a progam I'm writing > and having a difficult time tracking down the root cause. The stack > stays small but it uses more and more heap space until the system runs > out of memory. We don't

Re: Easiest way to set procedure-documentation?

2013-09-07 Thread Andy Wingo
Hi Roland, If you want to give documentation to procedures defined in C with SCM_DEFINE, you can associate an external documentation file with the module. See http://git.savannah.gnu.org/cgit/guile-cairo.git/tree/cairo/Makefile.am and http://git.savannah.gnu.org/cgit/guile-cairo.git/tree/cairo.sc

Re: Determining programatically whether the interpreter is Guile or Clisp or Emcs

2013-09-07 Thread Andy Wingo
On Mon 29 Jul 2013 10:36, Nala Ginrut writes: > If you just want to check whether a symbol was defined, try: > (module-defined? (current-module) 'function-lambda-expression) Alternate spelling: (defined? 'foo) Andy -- http://wingolog.org/

Re: Guile wiki

2013-09-07 Thread Andy Wingo
On Fri 26 Jul 2013 19:59, hellekin writes: > 2. Move http://www.gnu.org/software/guile/ideas.html to the wiki > > Ideas are cheap: that's typically something very suited for a wiki, so > that anyone can edit the page without having to bother a webmaster > into the process. Cut the middleman. > >

Re: Guile-Emacs update

2013-09-07 Thread Andy Wingo
On Thu 01 Aug 2013 00:17, taylanbayi...@gmail.com (Taylan Ulrich B.) writes: > the "dumping" feature of Emacs is disabled Eventually Guile will support linking together multiple separately compiled files into one ELF image. (The object file format in the development Guile branch is ELF -- we hav

Re: Problem with wide characters on upgrading to guile 2.x

2013-09-07 Thread Andy Wingo
On Mon 02 Sep 2013 10:48, Richard Shann writes: > On Thu, 2013-08-22 at 12:14 -0700, Mike Gran wrote: >> >> 2. In the inner_main of your scm_with_guile call, >> >> >> try calling scm_setlocale. Maybe something like this? >> >> (This shouldn't make a difference, I think. >> >> But, if it d

Re: xdgdirs 1.0

2013-09-07 Thread Thien-Thi Nguyen
() Andy Wingo () Sat, 07 Sep 2013 10:36:38 +0200 > (define mentioned? ...) You could do this as (cute member <> (command-line)), having imported srfi-26. > (cond ((mentioned? "--help") ...) Here I think "when" is much more readable. Also, you can use "(current-file-name)" fo

Re: xdgdirs 1.0

2013-09-07 Thread Andy Wingo
Just a bunch of random things. No opinion about module names, etc :) On Thu 05 Sep 2013 12:42, Thien-Thi Nguyen writes: > (define mentioned? > (let ((cl (command-line))) > (lambda (opt) > (member opt cl You could do this as (cute member <> (command-line)), having imported srfi-

Re: guile-dbi cores in mark_db_handle

2013-09-07 Thread Andy Wingo
On Fri 30 Aug 2013 09:21, Andrew Gaylard writes: > Program terminated with signal 10, Bus error. > #0 0x75601c8c in mark_db_handle (g_db_handle_smob=0x10115efc0) > at guile-dbi.c:114 > 114 scm_gc_mark(g_db_handle->bcknd); > (gdb) p g_db_handle > $1 = (gdbi_db_handle_t *) 0x304 > >

Re: smob gc protection, and inheritance

2013-09-07 Thread Andy Wingo
On Tue 03 Sep 2013 21:27, Doug Evans writes: > 2) Is it possible to inherit, e.g., with goops, a smob? > IOW, can I extend a smob through inheritance? > Or must I store the smob in a class, and provide accessors? > [kinda like the "is a" vs "has a" relationship] You can't really inherit from a S