Merge branch 'master' of orgmode.org:org-mode
This commit is contained in:
commit
8b416bf96b
|
@ -5492,8 +5492,10 @@ changes."
|
|||
(if (and (memq (org-element-type up)
|
||||
'(center-block drawer dynamic-block
|
||||
quote-block special-block))
|
||||
(<= (org-element-property :contents-begin up) beg)
|
||||
(> (org-element-property :contents-end up) end))
|
||||
(let ((cbeg (org-element-property :contents-begin up)))
|
||||
(and cbeg
|
||||
(<= cbeg beg)
|
||||
(> (org-element-property :contents-end up) end))))
|
||||
;; UP is a robust greater element containing changes.
|
||||
;; We only need to extend its ending boundaries.
|
||||
(org-element--cache-shift-positions
|
||||
|
|
|
@ -376,22 +376,20 @@ the display of windows containing the Org buffer and the code buffer."
|
|||
(when (fboundp edit-prep-func)
|
||||
(funcall edit-prep-func full-info)))
|
||||
(or org-edit-src-code-timer
|
||||
(zerop org-edit-src-auto-save-idle-delay)
|
||||
(setq org-edit-src-code-timer
|
||||
(unless (zerop org-edit-src-auto-save-idle-delay)
|
||||
(run-with-idle-timer
|
||||
org-edit-src-auto-save-idle-delay t
|
||||
(lambda ()
|
||||
(cond
|
||||
((and (string-match "\*Org Src" (buffer-name))
|
||||
(buffer-modified-p))
|
||||
(org-edit-src-save))
|
||||
((not
|
||||
(delq nil (mapcar
|
||||
(lambda (b)
|
||||
(string-match "\*Org Src" (buffer-name b)))
|
||||
(buffer-list))))
|
||||
((org-string-match-p "\\`\\*Org Src" (buffer-name))
|
||||
(when (buffer-modified-p) (org-edit-src-save)))
|
||||
((not (org-some (lambda (b)
|
||||
(org-string-match-p "\\`\\*Org Src"
|
||||
(buffer-name b)))
|
||||
(buffer-list)))
|
||||
(cancel-timer org-edit-src-code-timer)
|
||||
(setq org-edit-src-code-timer)))))))))
|
||||
(setq org-edit-src-code-timer nil))))))))
|
||||
t)))
|
||||
|
||||
(defun org-edit-src-continue (e)
|
||||
|
@ -767,9 +765,6 @@ with \",*\", \",#+\", \",,*\" and \",,#+\"."
|
|||
(unless (eq context 'save)
|
||||
(move-marker beg nil)
|
||||
(move-marker end nil)))
|
||||
(when org-edit-src-code-timer
|
||||
(cancel-timer org-edit-src-code-timer)
|
||||
(setq org-edit-src-code-timer nil))
|
||||
(unless (eq context 'save)
|
||||
(when org-edit-src-saved-temp-window-config
|
||||
(set-window-configuration org-edit-src-saved-temp-window-config)
|
||||
|
|
Loading…
Reference in New Issue