fix a stray "user-error" introduced in bd89d6a02f

* lisp/org-table.el (org-table-eval-formula): The condition-case to
  check for must be "error", not "user-error".

This fixes these test failures:

4 unexpected results:
   FAILED  test-org-table/references/format-specifier-E
   FAILED  test-org-table/references/format-specifier-EL
   FAILED  test-org-table/references/format-specifier-L
   FAILED  test-org-table/references/format-specifier-none

Reported in:
http://permalink.gmane.org/gmane.emacs.orgmode/67450
http://permalink.gmane.org/gmane.emacs.orgmode/67503
This commit is contained in:
Achim Gratz 2013-03-03 20:29:58 +01:00
parent 8f40d7f7a1
commit e541a1dd19
1 changed files with 1 additions and 1 deletions

View File

@ -2705,7 +2705,7 @@ not overwrite the stored one."
(if lispp
(setq ev (condition-case nil
(eval (eval (read form)))
(user-error "#ERROR"))
(error "#ERROR"))
ev (if (numberp ev) (number-to-string ev) ev)
ev (if duration (org-table-time-seconds-to-string
(string-to-number ev)