org-agenda.el: Use `user-error'
* lisp/org-agenda.el (org-agenda-priority): Use `user-error'.
This commit is contained in:
parent
4f98694bf7
commit
c9d2f12094
|
@ -9337,7 +9337,7 @@ Called with a universal prefix arg, show the priority instead of setting it."
|
||||||
(if (equal force-direction '(4))
|
(if (equal force-direction '(4))
|
||||||
(org-priority-show)
|
(org-priority-show)
|
||||||
(unless org-priority-enable-commands
|
(unless org-priority-enable-commands
|
||||||
(error "Priority commands are disabled"))
|
(user-error "Priority commands are disabled"))
|
||||||
(org-agenda-check-no-diary)
|
(org-agenda-check-no-diary)
|
||||||
(let* ((col (current-column))
|
(let* ((col (current-column))
|
||||||
(marker (or (org-get-at-bol 'org-marker)
|
(marker (or (org-get-at-bol 'org-marker)
|
||||||
|
|
Loading…
Reference in New Issue