瀏覽代碼

Fix code typo.

Nicolas Goaziou 14 年之前
父節點
當前提交
5dee2ec351
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      lisp/org-list.el

+ 5 - 3
lisp/org-list.el

@@ -690,15 +690,17 @@ function ends."
 When number ARG is a negative, item will be outdented, otherwise
 it will be indented.
 
-If a region is active, all items in it will be moved. If
-NO-SUBTREE is non-nil, only indent the item itself, not its
+If a region is active and its first line is an item beginning,
+all items inside will be moved.
+
+If NO-SUBTREE is non-nil, only indent the item itself, not its
 children.
 
 Return t if successful."
   (save-restriction
     (unless (or (org-at-item-p)
 		(and (org-region-active-p)
-		     (goto-char region-beginning)
+		     (goto-char (region-beginning))
 		     (org-at-item-p)))
       (error "Not on an item"))
   ;; Are we going to move the whole list?