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
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ buffer."
(interactive) (interactive)
(unless (eq context 'save) (unless (eq context 'save)
(setq org-edit-src-saved-temp-window-config (current-window-configuration))) (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) (case-fold-search t)
(info (org-edit-src-find-region-and-lang)) (info (org-edit-src-find-region-and-lang))
(babel-info (org-babel-get-src-block-info)) (babel-info (org-babel-get-src-block-info))