[Pmwiki-users] Emacs PmWiki mode

Massimiliano Mirra mmirra
Tue Aug 5 15:54:42 CDT 2003


I have some troubles using Emacs pmwiki mode.  The thought of posting
to the list did not came to me until I hit the send key and bugged the
author privately (sorry Christian).

The version is 1.0.0 and the error is this:

Debugger entered--Lisp error: (error "Lisp nesting exceeds max-lisp-eval-depth")
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  pmwiki-save()
  call-interactively(pmwiki-save)

This is what seems to be going on:

1. User calls pmwiki-open-url to open a page.

2. pmwiki-open-url calls pmwiki-edit passing, among other paramethers,
   'pmwiki-save as save-func, the function to use when saving (line
   396).

3. pmwiki-edit sets pmwiki-save-function to save-func (line 296).


4. User calls pmwiki-save to save the page.

5. pmwiki-save funcalls the function stored in pmwiki-save-function
   (line 406).

6. Ooops, the function saved in pmwiki-save-function (in 2.) is
   pmwiki-save itself.  Infinite recursion.


Is somebody using the Emacs mode and willing to share his
pmwiki-save-function?  (Yeah, I know, I should have whipped one up
already...)





By the way, I'm awed at how well Patrick leads this Bazaar style
development.  And the results shine as well.  Count me as a happy
user. :-)

Massimiliano



More information about the pmwiki-users mailing list