Browse Source

Fix Emacs 22 compatibility

* lisp/org-src.el (org-edit-src-code): Use `org-region-active-p'.
Carsten Dominik 10 years ago
parent
commit
5014288b68
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-src.el

+ 1 - 1
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))