summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2016-06-11 21:11:05 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2016-06-11 21:11:05 +0200
commit345a0a0281f65755756f5a3282aa953764726ce6 (patch)
tree0fbac04ec48cc5d7b4777c53e00a1104c024b0af
parentae6689f1de9bd43af9c096c7eae66f40d4d8cd8a (diff)
downloadgeiser-guile-345a0a0281f65755756f5a3282aa953764726ce6.tar.gz
geiser-guile-345a0a0281f65755756f5a3282aa953764726ce6.tar.bz2
Registering font-lock keywords in REPLs at the right time
We were doing it before the buffer's implementation, and the implementation-specific keywords were not found. Should fix github's issue #159.
-rw-r--r--elisp/geiser-repl.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index f7336f8..f0ba31b 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -1,6 +1,6 @@
;;; geiser-repl.el --- Geiser's REPL
-;; Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2016 Jose Antonio Ortega Ruiz
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the Modified BSD License. You should
@@ -280,7 +280,8 @@ module command as a string")
(or old (generate-new-buffer (geiser-repl--buffer-name impl))))
(unless old
(geiser-repl-mode)
- (geiser-impl--set-buffer-implementation impl)))))
+ (geiser-impl--set-buffer-implementation impl)
+ (geiser-syntax--add-kws)))))
(defun geiser-repl--read-impl (prompt &optional active)
(geiser-impl--read-impl prompt (and active (geiser-repl--active-impls))))
@@ -688,7 +689,6 @@ buffer."
(geiser-completion--setup t)
(setq geiser-smart-tab-mode-string "")
(geiser-smart-tab-mode t)
- (geiser-syntax--add-kws)
;; enabling compilation-shell-minor-mode without the annoying highlighter
(compilation-setup t))