From 8b2d27db210083246e4e619a393656f97c9c1682 Mon Sep 17 00:00:00 2001 From: Andreas Politz Date: Tue, 14 Apr 2015 21:05:40 +0200 Subject: Workaround semantic bug. * lisp/tablist-filter.el (python-mode-hook): Loading semantic/wisent/comp installs a python hook, avoid it. --- lisp/tablist-filter.el | 3 ++- test/pdf-tools.ert | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 test/pdf-tools.ert diff --git a/lisp/tablist-filter.el b/lisp/tablist-filter.el index a401a2b..b72ea21 100644 --- a/lisp/tablist-filter.el +++ b/lisp/tablist-filter.el @@ -22,8 +22,9 @@ ;; +(let (python-mode-hook) (require 'semantic/wisent/comp) -(require 'semantic/wisent/wisent) +(require 'semantic/wisent/wisent)) ;;; Code: diff --git a/test/pdf-tools.ert b/test/pdf-tools.ert new file mode 100644 index 0000000..8a247e8 --- /dev/null +++ b/test/pdf-tools.ert @@ -0,0 +1,12 @@ + + +;; * ================================================================== * +;; * Tests not fitting anywhere else +;; * ================================================================== * + +(require 'ert) + +(ert-deftest pdf-tools-semantic-workaround () + (let (python-mode-hook) + (require 'tablist) + (should (null python-mode-hook)))) -- cgit v1.0