diff --git a/lisp/org-compat.el b/lisp/org-compat.el index 6e582b8c1..7172452c9 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -169,6 +169,11 @@ If DELETE is non-nil, delete all those overlays." (set-buffer-modified-p modified-p)) (decompose-region beg end))) +(eval-when-compile + ; user-error is only available from 24.2.50 on + (unless (fboundp 'user-error) + (defalias 'user-error 'error))) + ;; Miscellaneous functions (defun org-add-hook (hook function &optional append local)