Browse Source

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

* lisp/org-agenda.el (org-agenda-priority): Use `user-error'.
Bastien 5 months ago
parent
commit
c9d2f12094
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-agenda.el

+ 1 - 1
lisp/org-agenda.el

@@ -9337,7 +9337,7 @@ Called with a universal prefix arg, show the priority instead of setting it."
   (if (equal force-direction '(4))
       (org-priority-show)
     (unless org-priority-enable-commands
-      (error "Priority commands are disabled"))
+      (user-error "Priority commands are disabled"))
     (org-agenda-check-no-diary)
     (let* ((col (current-column))
 	   (marker (or (org-get-at-bol 'org-marker)