diff options
author | Bastien <bzg@gnu.org> | 2020-02-17 08:55:19 +0100 |
---|---|---|
committer | Bastien <bzg@gnu.org> | 2020-02-17 08:55:19 +0100 |
commit | 915a8eade4175d284f9eced8cf4204a06feebf94 (patch) | |
tree | 6806c9aa3c60835b5e45f45b52d68148db28a203 | |
parent | e8402f3cad40f161712c4d1e9ed8f207315f898f (diff) | |
download | org-mode-915a8eade4175d284f9eced8cf4204a06feebf94.tar.gz |
org-agenda.el/org-capture.el: Use `user-error' in two places
* lisp/org-capture.el (org-capture-set-target-location):
* lisp/org-agenda.el (org-agenda-clock-out): Use `user-error'.
-rw-r--r-- | lisp/org-agenda.el | 2 | ||||
-rw-r--r-- | lisp/org-capture.el | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index cc41b48..049fde8 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -9740,7 +9740,7 @@ ARG is passed through to `org-deadline'." "Stop the currently running clock." (interactive) (unless (marker-buffer org-clock-marker) - (error "No running clock")) + (user-error "No running clock")) (let ((marker (make-marker)) (col (current-column)) newhead) (org-with-remote-undo (marker-buffer org-clock-marker) (with-current-buffer (marker-buffer org-clock-marker) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index f053c7b..e69cb76 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -1061,7 +1061,7 @@ Store them in the capture property list." (org-capture-put-target-region-and-position) (widen) (goto-char org-clock-hd-marker)) - (error "No running clock that could be used as capture target"))) + (user-error "No running clock that could be used as capture target"))) (target (error "Invalid capture target specification: %S" target))) (org-capture-put :buffer (current-buffer) |