mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-26 19:02:52 +00:00
Fix a bug with item demotion
M-right did not work on the last item of a list. Report by Matti de Craene.
This commit is contained in:
parent
91749e6594
commit
6cb5382669
|
@ -1,5 +1,8 @@
|
|||
2010-04-27 Carsten Dominik <carsten.dominik@gmail.com>
|
||||
|
||||
* org-list.el (org-end-of-item-text-before-children): Also do
|
||||
the right thing at the end of a file.
|
||||
|
||||
* org.el (org-set-packages-alist, org-get-packages-alist): New
|
||||
function.
|
||||
(org-export-latex-default-packages-alist)
|
||||
|
|
|
@ -605,8 +605,9 @@ Assumes that the cursor is in the first ine of an item."
|
|||
(min (save-excursion (org-end-of-item) (point))
|
||||
(save-excursion
|
||||
(goto-char (point-at-eol))
|
||||
(re-search-forward (concat "^" (org-item-re t)) nil t)
|
||||
(match-beginning 0)))))
|
||||
(if (re-search-forward (concat "^" (org-item-re t)) nil 'move)
|
||||
(match-beginning 0)
|
||||
(point-max))))))
|
||||
|
||||
(defun org-next-item ()
|
||||
"Move to the beginning of the next item in the current plain list.
|
||||
|
|
Loading…
Reference in a new issue