summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien <bzg@gnu.org>2018-03-22 02:22:15 +0100
committerBastien <bzg@gnu.org>2018-03-22 02:22:15 +0100
commita9139d99766643c0eae7cbe52384829df551c6ed (patch)
tree591260e667a5b257c8f09980c6cd1d321e9044df
parentb5a90a7ab55b97cdd9f10dffbd5f412f7c517e57 (diff)
downloadorg-mode-07c79159b2d666204c1a89917e8f05e95d19dc65.tar.gz
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.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-list.el b/lisp/org-list.el
index 58e110a..1f51809 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.