Revert "org-log-beginning: Fix error creating LOGBOOK drawer at end of buffer"
This reverts commit c0b66bf9c1
.
This itself caused a regression when inserting a new logbook drawer -
blank line is slurped.
This commit is contained in:
parent
b8497aa7fe
commit
589e1f38c1
|
@ -10704,10 +10704,10 @@ narrowing."
|
|||
(unless (bolp) (insert-and-inherit "\n"))
|
||||
(let ((beg (point)))
|
||||
(insert-and-inherit ":" drawer ":\n:END:")
|
||||
(unless (eolp) (insert-and-inherit "\n") (backward-char))
|
||||
(if (eolp) (forward-char) (insert "\n"))
|
||||
(org-indent-region beg (point))
|
||||
(org-fold-region (line-end-position 0) (point) t 'drawer))))
|
||||
(end-of-line 0))))
|
||||
(org-fold-region (line-end-position -1) (1- (point)) t 'drawer))))
|
||||
(end-of-line -1))))
|
||||
(t
|
||||
(org-end-of-meta-data org-log-state-notes-insert-after-drawers)
|
||||
(let ((endpos (point)))
|
||||
|
|
Loading…
Reference in New Issue