On 04/10/01 23:22 +0100, John Paul Wallington wrote: > Jerome Quelin <[EMAIL PROTECTED]> writes: > > And the minibuffer tells me: > > Symbol's function definition is void: line-beginning-position > > I'm using xemacs 21.4.14 > > How about defining a compatibility alias if necessary like so: > > --- pir-mode.el 17 Aug 2004 15:59:49 +0100 1.2 > +++ pir-mode.el 01 Oct 2004 23:08:08 +0100 > @@ -8,8 +8,11 @@ > ;; See the documentation of `octave-mode' and `octave-help' for further > ;; information. > > -(require 'regexp-opt) > ;;; Code: > +(require 'regexp-opt) > +(unless (fboundp 'line-beginning-position) > + (defalias 'line-beginning-position 'point-at-bol)) > + > (add-to-list 'auto-mode-alist '("\\.imc\\'" . pir-mode)) > > (defvar pir-mode-hook nil)
Ok, we also need this one: (unless (fboundp 'line-end-position) (defalias 'line-end-position 'point-at-eol)) Now it works, I can use spaces and returns. But while fontifying, I get: (5) (warning/warning) Error caught in `font-lock-pre-idle-hook': (invalid-regexp Invalid syntax designator) The fontifying looks allright nevertheless. Jerome -- [EMAIL PROTECTED]