diff options
| author | Leo Liu | 2013-05-03 15:52:17 +0800 |
|---|---|---|
| committer | Leo Liu | 2013-05-03 15:52:17 +0800 |
| commit | d74a158186bb0fa8e5bdbedb7754dd873abab9a9 (patch) | |
| tree | 2e2696691482755efdad17bec9ff1f8e5fe49dbe | |
| parent | d4d0f9b31a8301c1b636ae03ec82d1131edb91a9 (diff) | |
| download | emacs-d74a158186bb0fa8e5bdbedb7754dd873abab9a9.tar.gz emacs-d74a158186bb0fa8e5bdbedb7754dd873abab9a9.zip | |
* progmodes/octave.el (user-error): Alias to error if not defined.
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/progmodes/octave.el | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d90caded308..a2719a2ebf4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | (octave-help-file, octave-help-function): New button types. | 8 | (octave-help-file, octave-help-function): New button types. |
| 9 | (octave-help): New command and bind it to C-h ;. | 9 | (octave-help): New command and bind it to C-h ;. |
| 10 | (octave-find-definition): New command and bind it to M-. | 10 | (octave-find-definition): New command and bind it to M-. |
| 11 | (user-error): Alias to error if not defined. | ||
| 11 | 12 | ||
| 12 | 2013-05-02 Leo Liu <sdl.web@gmail.com> | 13 | 2013-05-02 Leo Liu <sdl.web@gmail.com> |
| 13 | 14 | ||
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 @@ | |||
| 36 | 36 | ||
| 37 | ;;; For emacs < 24.3. | 37 | ;;; For emacs < 24.3. |
| 38 | (require 'newcomment) | 38 | (require 'newcomment) |
| 39 | (eval-and-compile | ||
| 40 | (unless (fboundp 'user-error) | ||
| 41 | (defalias 'user-error 'error))) | ||
| 39 | (eval-when-compile | 42 | (eval-when-compile |
| 40 | (unless (fboundp 'setq-local) | 43 | (unless (fboundp 'setq-local) |
| 41 | (defmacro setq-local (var val) | 44 | (defmacro setq-local (var val) |