summaryrefslogtreecommitdiff
path: root/lisp/org/org-compat.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2014-06-23 11:32:24 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2014-06-23 11:32:24 -0400
commit5d2638bd31586fc276ddd4444a49627e855cf7fa (patch)
tree5546b75f40f2fa8ce7afab34b667351dd786fa10 /lisp/org/org-compat.el
parentf6a09385237ca681010b5510e3786dd1cc538098 (diff)
downloademacs-5d2638bd31586fc276ddd4444a49627e855cf7fa.tar.gz
* lisp/simple.el (handle-shift-selection, exchange-point-and-mark)
(activate-mark): Set transient-mark-mode buffer-locally. (transient-mark-mode): Use&set the global value. * lisp/mouse.el (mouse-set-region-1, mouse-drag-track): Idem. * lisp/org/org-compat.el (activate-mark): Idem. * lisp/emulation/edt.el (edt-emulation-off): Save&restore the global transient-mark-mode setting. * lisp/obsolete/pc-select.el (pc-selection-mode): Use the transient-mark-mode function. Fixes: debbugs:6316
Diffstat (limited to 'lisp/org/org-compat.el')
-rw-r--r--lisp/org/org-compat.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org/org-compat.el b/lisp/org/org-compat.el
index e5d6a49f318..c3ccf062db9 100644
--- a/lisp/org/org-compat.el
+++ b/lisp/org/org-compat.el
@@ -295,7 +295,7 @@ Works on both Emacs and XEmacs."
(setq mark-active t)
(when (and (boundp 'transient-mark-mode)
(not transient-mark-mode))
- (setq transient-mark-mode 'lambda))
+ (set (make-local-variable 'transient-mark-mode) 'lambda))
(when (boundp 'zmacs-regions)
(setq zmacs-regions t)))))