mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-01 11:15:00 +00:00
Fix list end with non-empty blank lines. Fix sorting.
* org-list.el (org-list-bottom-point-with-indent): do not check indentation of a non-empty blank line. * org-list.el (org-sort-list): sort a list with point anywhere inside it.
This commit is contained in:
parent
de210ea9d2
commit
0778fb8748
@ -500,8 +500,8 @@ List ending is determined by the indentation of text. See
|
||||
(org-list-maybe-skip-block #'re-search-forward limit)
|
||||
(beginning-of-line)
|
||||
(catch 'exit
|
||||
(skip-chars-forward " \t")
|
||||
(while t
|
||||
(skip-chars-forward " \t")
|
||||
(let ((ind (org-get-indentation)))
|
||||
(cond
|
||||
((or (>= (point) limit)
|
||||
@ -1965,6 +1965,7 @@ compare entries."
|
||||
(message "Sorting items...")
|
||||
(save-restriction
|
||||
(narrow-to-region start end)
|
||||
(goto-char (point-min))
|
||||
(let* ((dcst (downcase sorting-type))
|
||||
(case-fold-search nil)
|
||||
(now (current-time))
|
||||
|
Loading…
Reference in New Issue
Block a user