Daniel Serodio writes:
 > Well, I've found some more info on this error. emacs-wiki defines a
 > line-beginning-position function with 1 optional argument, and jde-bug
 > defines a function with the same name but no arguments.
 > 
 > In emacs-wiki.el:
 > 
 > (unless (fboundp 'line-beginning-position)
 >   (defsubst line-beginning-position (&optional N)
 >     (save-excursion (beginning-of-line N) (point))))
 > 
 > In jde-bug.el:
 > 
 > (when jde-xemacsp
 >   (defun line-beginning-position ()
 >     (point-at-bol))
 >   (defun line-end-position ()
 >     (point-at-eol)))
 > 
 > How can I solve this conflict? Thanks for any help.
 > 

I apparently created this code because XEmacs does not
(or did not) define these functions. I should have 
included the optional argument, which I will do in
the next release.

Meanwhile, you can just edit jde-bug.el to read:

 > (when jde-xemacsp
 >    (defun line-beginning-position ()
 >     (point-at-bol))
 >    (defun line-end-position ()
 >      (point-at-eol)))
 > 
 > How can I solve this conflict? Thanks for any help.
 > 

 (when jde-xemacsp
     (defun line-beginning-position (&optional N)
      (point-at-bol))
     (defun line-end-position (&optional N)
       (point-at-eol)))

- Paul

 > On Mon, 2002-10-28 at 15:29, Daniel Serodio wrote:
 > > Hi! I'm a long-time user of JDEE, and I've just downloaded emacs-wiki.el
 > > 
 > > When I first called 'emacs-wiki-find-file', I got an error. So I
 > > launched XEmacs with -vanilla, and tried again. No error this time. So I
 > > commented out all of my .emacs and began uncommenting line-by-line to
 > > find where the problem was. To my surprise, it is caused by JDEE!
 > > 
 > > I can use emacs-wiki ok, but when I (require 'jde), I get the following
 > > error:
 > > 
 > > (warning/warning) Error caught in `font-lock-pre-idle-hook':
 > > (wrong-number-of-arguments line-beginning-position 1)
 > > 
 > > Is anyone able to use emacs-wiki with jde "require'd"?
 > > 
 > > -- 
 > > []'s
 > > Daniel Serodio
 > -- 
 > []'s
 > Daniel Serodio
 > 

Reply via email to