mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 18:36:26 +00:00
lisp/org-list.el: Enhance error message
* lisp/org-list.el (org-list-indent-item-generic): Use `user-error' and enhance the error message.
This commit is contained in:
parent
b5a90a7ab5
commit
a9139d9976
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue