summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Politz <politza@hochschule-trier.de>2015-04-14 21:05:40 +0200
committerAndreas Politz <politza@hochschule-trier.de>2015-04-14 21:06:01 +0200
commit8b2d27db210083246e4e619a393656f97c9c1682 (patch)
treeb14de455beccdc9d4ef6aeee050c805c3cee4840
parentf33d0d24c05ab82868a5f0b79033df268d031ebb (diff)
Workaround semantic bug.
* lisp/tablist-filter.el (python-mode-hook): Loading semantic/wisent/comp installs a python hook, avoid it.
-rw-r--r--lisp/tablist-filter.el3
-rw-r--r--test/pdf-tools.ert12
2 files changed, 14 insertions, 1 deletions
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))))