Browse Source

org-agenda.el (org-agenda-error): Use `user-error'

* org-agenda.el (org-agenda-error): Use `user-error'.
Bastien Guerry 11 years ago
parent
commit
9efbfb34cb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-agenda.el

+ 1 - 1
lisp/org-agenda.el

@@ -8730,7 +8730,7 @@ docstring of `org-agenda-show-1'."
 
 (defun org-agenda-error ()
   "Throw an error when a command is not allowed in the agenda."
-  (error "Command not allowed in this line"))
+  (user-error "Command not allowed in this line"))
 
 (defun org-agenda-tree-to-indirect-buffer (arg)
   "Show the subtree corresponding to the current entry in an indirect buffer.