Browse Source

lisp/org-list.el: Enhance error message

* lisp/org-list.el (org-list-indent-item-generic): Use
`user-error' and enhance the error message.
Bastien 1 year ago
parent
commit
a9139d9976
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lisp/org-list.el

+ 2 - 2
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.