org-compat: new macro org-no-popups
commitb508943d329fed2af457c50afd5f63938b23c58c
authorAchim Gratz <Stromeko@Stromeko.DE>
Thu, 20 Dec 2012 09:18:02 +0000 (20 10:18 +0100)
committerAchim Gratz <Stromeko@Stromeko.DE>
Thu, 20 Dec 2012 11:57:52 +0000 (20 12:57 +0100)
tree78418e687895260610754234ca28e06e9325f8c3
parentdfa3c74e34ee115dcb6095f88db86b144ae7b70b
org-compat: new macro org-no-popups

* lisp/org-compat.el (org-no-popups): New wrapper macro which
  let-binds the correct variables to suppress popup windows depending
  on the Emacs version in use.  This is a compile-time decision when
  byte-compiling.

* lisp/org.el (org-get-location, org-switch-to-buffer-other-window):
  Use the wrapper `org-no-popupsĀ“ to let-bind the correct variables
  for suppression of popup windows.
lisp/org-compat.el
lisp/org.el