"Markus Hoenicka" <[EMAIL PROTECTED]> writes:

> The *Messages* buffer contains the following:
>
> (New file)
> Wrote /home/markus/Plans/ProJect.muse
> (New file)
> Wrote /home/markus/Plans/SubPage.muse
> muse-backlink-get-current: Wrong number of arguments: #[(string &optional 
> separator


> Let me know if I can run additional tests to shed some light on this
> problem.

Could you try evaluating this version of split-string, and then try to
create pages with backlinks?

(defun split-string (string &optional separators omit-nulls)
  (let ((keep-nulls (not (if separators omit-nulls t)))
        (rexp (or separators split-string-default-separators))
        (start 0)
        notfirst
        (list nil))
    (while (and (string-match rexp string
                              (if (and notfirst
                                       (= start (match-beginning 0))
                                       (< start (length string)))
                                  (1+ start) start))
                (< start (length string)))
      (setq notfirst t)
      (if (or keep-nulls (< start (match-beginning 0)))
          (setq list
                (cons (substring string start (match-beginning 0))
                      list)))
      (setq start (match-end 0)))
    (if (or keep-nulls (< start (length string)))
        (setq list
              (cons (substring string start)
                    list)))
    (nreverse list)))

This is the version from Emacs 22.0.50.4, I tried it in 21.4.1, and it
seems to work OK. If it works for you, it will be easy to add a
compatibility function to muse-backlink.  If it fails, you might want to
reload the original definition from your subr.el.

Regards,

-- 
Jim Ottaway

_______________________________________________
Planner-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/planner-el-discuss

Reply via email to