From 5014288b680b00a639386518ee258846f0d10255 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 12 Oct 2010 17:51:31 +0200 Subject: [PATCH] Fix Emacs 22 compatibility * lisp/org-src.el (org-edit-src-code): Use `org-region-active-p'. --- lisp/org-src.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-src.el b/lisp/org-src.el index c1d579cab..1e5894f01 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -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))