>>> Paul Kinnucan <[EMAIL PROTECTED]> seems to think that:
>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:
  [ ... ]

It is much safer to wrap such functions under new names like this:

(if (not (fboundp 'whatever))
   (defun jde-whatever () (code))
  (defalias 'jde-whatever 'whatever))

and you avoid all upgrade problems.  My packages were often being
whacked by random tools that redefine code like this, including
XEmacs' own compatibility layer that wasn't that compatible a few
years ago.  I haven't had problems since I started doing the above.

Eric

-- 
          Eric Ludlam:                 [EMAIL PROTECTED], [EMAIL PROTECTED]
   Home: http://www.ludlam.net            Siege: www.siege-engine.com
Emacs: http://cedet.sourceforge.net               GNU: www.gnu.org

Reply via email to