From: Leo Liu Date: Fri, 3 May 2013 07:52:17 +0000 (+0800) Subject: * progmodes/octave.el (user-error): Alias to error if not defined. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~316 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d74a158186bb0fa8e5bdbedb7754dd873abab9a9;p=emacs.git * progmodes/octave.el (user-error): Alias to error if not defined. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d90caded308..a2719a2ebf4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -8,6 +8,7 @@ (octave-help-file, octave-help-function): New button types. (octave-help): New command and bind it to C-h ;. (octave-find-definition): New command and bind it to M-. + (user-error): Alias to error if not defined. 2013-05-02 Leo Liu diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index 3fe84030003..10f6007204b 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el @@ -36,6 +36,9 @@ ;;; For emacs < 24.3. (require 'newcomment) +(eval-and-compile + (unless (fboundp 'user-error) + (defalias 'user-error 'error))) (eval-when-compile (unless (fboundp 'setq-local) (defmacro setq-local (var val)