Emacs ergo mode and incremental development

11 views
Skip to first unread message

Robert Goldman

unread,
May 28, 2026, 11:48:27 AMMay 28
to ErgoAI and XSB Users Forum
I'm used to doing incremental development in Common Lisp using emacs.  When I do, I often write a new function definition and use an Emacs command to add that function to the current context.

How do I do the equivalent in ergo?  Ergo's C-c C-r seems to use normal Ergo load semantics, so if I load a new rule definition into main, I get that rule definition in main, but all of main's previous contents are wiped out.  I thought that flora-add-region-to-module might do what I want, because of the name, but I just tested it, and it had the same semantics: when I added a new rule to main, it clobbered all of the previous contents of main.

Is there a way to do what I want in Ergo-mode?

Michael Kifer

unread,
May 28, 2026, 2:54:58 PMMay 28
to ErgoAI-X...@coherentknowledge.com

ah, yes. I just noticed that ergo.el has  a mistake and loads instead of adding. Will take a look at the ergo mode in emacs.

--
You received this message because you are subscribed to the Google Groups "ErgoAI and XSB Users Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ErgoAI-XSB-for...@coherentknowledge.com.
To view this discussion visit https://groups.google.com/a/coherentknowledge.com/d/msgid/ErgoAI-XSB-forum/0b4f7ffb-2d4b-4d40-ab82-933f62dc0603n%40coherentknowledge.com.

Michael Kifer

unread,
May 28, 2026, 3:27:17 PMMay 28
to ErgoAI-X...@coherentknowledge.com

try the attached  version

On 5/28/26 11:48, Robert Goldman wrote:
ergo.el
Reply all
Reply to author
Forward
0 new messages