diff options
author | Bastien <bzg@gnu.org> | 2018-03-22 02:22:15 +0100 |
---|---|---|
committer | Bastien <bzg@gnu.org> | 2018-03-22 02:22:15 +0100 |
commit | a9139d99766643c0eae7cbe52384829df551c6ed (patch) | |
tree | 591260e667a5b257c8f09980c6cd1d321e9044df | |
parent | b5a90a7ab55b97cdd9f10dffbd5f412f7c517e57 (diff) |
lisp/org-list.el: Enhance error messagerelease_9.1.8
* lisp/org-list.el (org-list-indent-item-generic): Use
`user-error' and enhance the error message.
-rw-r--r-- | lisp/org-list.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-list.el b/lisp/org-list.el index 58e110a30..1f51809f1 100644 --- a/lisp/org-list.el +++ b/lisp/org-list.el @@ -2648,8 +2648,8 @@ Return t if successful." (= top (point-at-bol)) (cdr (assq 'indent org-list-automatic-rules)) (if no-subtree - (error - "First item of list cannot move without its subtree") + (user-error + "At first item: use S-M-<left/right> to move the whole list") t)))) ;; Determine begin and end points of zone to indent. If moving ;; more than one item, save them for subsequent moves. |