Bugfix: Protect line indentation in orgstruct-mode
(org-indent-line-function): Make sure this works even if there is not `org-drawer-regexp' defined. This can happen when orgstruct-mode is used in a non-org buffer.
This commit is contained in:
parent
8b31b5e798
commit
6ab17902aa
|
@ -9,6 +9,9 @@
|
||||||
(org-set-regexps-and-options, org-assign-fast-keys)
|
(org-set-regexps-and-options, org-assign-fast-keys)
|
||||||
(org-fast-todo-selection, org-fast-tag-selection): Handle newline
|
(org-fast-todo-selection, org-fast-tag-selection): Handle newline
|
||||||
option.
|
option.
|
||||||
|
(org-indent-line-function): Make sure this works even if there is
|
||||||
|
not `org-drawer-regexp' defined. This can happen when
|
||||||
|
orgstruct-mode is used in a non-org buffer.
|
||||||
|
|
||||||
* org-list.el (org-checkbox-blocked-p): New function.
|
* org-list.el (org-checkbox-blocked-p): New function.
|
||||||
(org-toggle-checkbox): Check for blocking.
|
(org-toggle-checkbox): Check for blocking.
|
||||||
|
|
|
@ -14800,6 +14800,7 @@ which make use of the date at the cursor."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let* ((pos (point))
|
(let* ((pos (point))
|
||||||
(itemp (org-at-item-p))
|
(itemp (org-at-item-p))
|
||||||
|
(org-drawer-regexp (or org-drawer-regexp "\000"))
|
||||||
column bpos bcol tpos tcol bullet btype bullet-type)
|
column bpos bcol tpos tcol bullet btype bullet-type)
|
||||||
;; Find the previous relevant line
|
;; Find the previous relevant line
|
||||||
(beginning-of-line 1)
|
(beginning-of-line 1)
|
||||||
|
|
Loading…
Reference in New Issue