ソースを参照

org-compat: Silence byte-compiler

Nicolas Goaziou 8 年 前
コミット
6daad64277
1 ファイル変更5 行追加2 行削除
  1. 5 2
      lisp/org-compat.el

+ 5 - 2
lisp/org-compat.el

@@ -45,8 +45,11 @@
   (defalias 'outline-show-children 'show-children)
   (defalias 'outline-show-entry 'show-entry)
   (defalias 'outline-show-subtree 'show-subtree)
-  (defalias 'xref-find-definitions 'find-tag)
-  (defalias 'gui-get-selection 'x-get-selection))
+  (defalias 'xref-find-definitions 'find-tag))
+
+(eval-when-compile
+  (when (< emacs-major-version 25)
+    (defalias 'gui-get-selection 'x-get-selection)))
 
 (defun org-compatible-face (inherits specs)
   "Make a compatible face specification.