mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-21 06:55:35 +00:00
Merge branch 'bugfix'
This commit is contained in:
commit
76cd7e995a
@ -20653,11 +20653,15 @@ strictly within a source block, use appropriate comment syntax."
|
||||
end)))
|
||||
;; Translate region boundaries for the Org buffer to the source
|
||||
;; buffer.
|
||||
(let ((offset (- end beg)))
|
||||
(let (src-end)
|
||||
(save-excursion
|
||||
(goto-char end)
|
||||
(org-babel-do-in-edit-buffer
|
||||
(setq src-end (point))))
|
||||
(save-excursion
|
||||
(goto-char beg)
|
||||
(org-babel-do-in-edit-buffer
|
||||
(comment-or-uncomment-region (point) (+ offset (point))))))
|
||||
(comment-or-uncomment-region (point) src-end))))
|
||||
(save-restriction
|
||||
;; Restrict region
|
||||
(narrow-to-region (save-excursion (goto-char beg)
|
||||
|
Loading…
Reference in New Issue
Block a user