This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Module editing; debugging with gdb


Here is what I currently use for guile with ILISP:

    ;;guile - this needs a lot more work
    ;;with hacks from Istvan Marko <imarko@pacificnet.net>
    (defdialect guile "Guile - the GNU extension language (experimental)"
      scheme
      ;(setq ilisp-program "guile") ;assume scheme is in path.
      ;(setq comint-prompt-regexp "^guile> ")
      (setq ilisp-package-regexp "^[ \t]*\\s(define-module \\((.*)\\))"
	    ilisp-package-command "(module-name %s)"
	    ilisp-in-package-command "(set-current-module %s)"
	    ilisp-package-name-command "(module-name (current-module))"
	    ;;just using %s does not seem to work: eval'ing exps hangs
	    ilisp-eval-command "(eval-string \"%s\")"
	    ilisp-directory-command "(getcwd)"
	    ilisp-set-directory-command "(chdir \"%s\")"
	    ilisp-complete-command
	    "(map (lambda (sym) (list (symbol->string sym))) (apropos-internal \"^%s\"))"))

    (if (not guile-program) (setq guile-program "guile"))


The module stuff do work to some extent, but not quite
satisfactorially. Doing an eval-expression in a buffer with a
define-module will set the module, but only the first time. The
in-package stuff does not work.



---------------------------+--------------------------------------------------
Christian Lynbech          | Telebit Communications A/S                       
Fax:   +45 8628 8186       | Fabrik 11, DK-8260 Viby J
Phone: +45 8628 8177 + 28  | email: chl@tbit.dk --- URL: http://www.telebit.dk
---------------------------+--------------------------------------------------
Hit the philistines three times over the head with the Elisp reference manual.
                                        - petonic@hal.com (Michael A. Petonic)