Merge branch 'maint'
This commit is contained in:
commit
2e13d33baa
14
lisp/org.el
14
lisp/org.el
|
@ -16217,11 +16217,15 @@ COLUMN formats in the current buffer."
|
||||||
(forward-line)
|
(forward-line)
|
||||||
(when (org-looking-at-p org-planning-line-re) (forward-line))
|
(when (org-looking-at-p org-planning-line-re) (forward-line))
|
||||||
(unless (org-looking-at-p org-property-drawer-re)
|
(unless (org-looking-at-p org-property-drawer-re)
|
||||||
(let ((inhibit-read-only t))
|
;; Make sure we start editing a line from current entry, not from
|
||||||
(unless (bolp) (insert "\n"))
|
;; next one. It prevents extending text properties or overlays
|
||||||
(let ((begin (point)))
|
;; belonging to the latter.
|
||||||
(insert ":PROPERTIES:\n:END:\n")
|
(when (bolp) (backward-char))
|
||||||
(org-indent-region begin (point)))))))
|
(let ((begin (1+ (point)))
|
||||||
|
(inhibit-read-only t))
|
||||||
|
(insert "\n:PROPERTIES:\n:END:")
|
||||||
|
(when (eobp) (insert "\n"))
|
||||||
|
(org-indent-region begin (point))))))
|
||||||
|
|
||||||
(defun org-insert-drawer (&optional arg drawer)
|
(defun org-insert-drawer (&optional arg drawer)
|
||||||
"Insert a drawer at point.
|
"Insert a drawer at point.
|
||||||
|
|
Loading…
Reference in New Issue