From a9139d99766643c0eae7cbe52384829df551c6ed Mon Sep 17 00:00:00 2001 From: Bastien Date: Thu, 22 Mar 2018 02:22:15 +0100 Subject: [PATCH] lisp/org-list.el: Enhance error message * lisp/org-list.el (org-list-indent-item-generic): Use `user-error' and enhance the error message. --- lisp/org-list.el | 4 ++-- 1 file 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- 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.