1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-23 07:18:53 +00:00

Fix Emacs 22 compatibility

* lisp/org-src.el (org-edit-src-code): Use `org-region-active-p'.
This commit is contained in:
Carsten Dominik 2010-10-12 17:51:31 +02:00
parent 4eaa52caca
commit 5014288b68

View File

@ -211,7 +211,7 @@ buffer."
(interactive)
(unless (eq context 'save)
(setq org-edit-src-saved-temp-window-config (current-window-configuration)))
(let ((mark (and (use-region-p) (mark)))
(let ((mark (and (org-region-active-p) (mark)))
(case-fold-search t)
(info (org-edit-src-find-region-and-lang))
(babel-info (org-babel-get-src-block-info))