diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2009-02-19 09:46:34 +0100 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2009-02-19 09:46:34 +0100 |
commit | 6ab17902aa209812839c4c58a1e0636891d12909 (patch) | |
tree | 27afd8364f4a3651d0f420837f90570d3fa232c1 | |
parent | 8b31b5e798d3c4ff6fc301b1b355bc6871983105 (diff) | |
download | org-mode-6ab17902aa209812839c4c58a1e0636891d12909.tar.gz |
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.
-rwxr-xr-x | lisp/ChangeLog | 3 | ||||
-rw-r--r-- | lisp/org.el | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0e4db7f..30b7a2c 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -9,6 +9,9 @@ (org-set-regexps-and-options, org-assign-fast-keys) (org-fast-todo-selection, org-fast-tag-selection): Handle newline 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-toggle-checkbox): Check for blocking. diff --git a/lisp/org.el b/lisp/org.el index 8d70050..cca1aea 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -14800,6 +14800,7 @@ which make use of the date at the cursor." (interactive) (let* ((pos (point)) (itemp (org-at-item-p)) + (org-drawer-regexp (or org-drawer-regexp "\000")) column bpos bcol tpos tcol bullet btype bullet-type) ;; Find the previous relevant line (beginning-of-line 1) |