Procházet zdrojové kódy

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

* org-agenda.el (org-agenda-error): Use `user-error'.
Bastien Guerry před 11 roky
rodič
revize
9efbfb34cb
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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.