turn-off-haskell-font-lock and turn-on-haskell-font-lock functions have been removed from haskell-mode

This commit is contained in:
Kevin Boulain 2015-04-18 23:00:15 +02:00 committed by Daniel Gröber
parent de3d3a5f19
commit 45c5a06117
1 changed files with 12 additions and 2 deletions

View File

@ -182,9 +182,19 @@
(funcall ins-func)
(goto-char (point-min))
(if (not fontify)
(turn-off-haskell-font-lock)
;; turn-off-haskell-font-lock has been removed from haskell-mode
;; test if the function is defined in our version
(if (fboundp 'turn-off-haskell-font-lock)
(turn-off-haskell-font-lock)
;; it's not defined, fallback on font-lock-mode
(font-lock-mode -1))
(haskell-font-lock-defaults-create)
(turn-on-haskell-font-lock)))
;; turn-on-haskell-font-lock has been removed from haskell-mode
;; test if the function is defined in our version
(if (fboundp 'turn-on-haskell-font-lock)
(turn-on-haskell-font-lock)
;; it's not defined, fallback on font-lock-mode
(turn-on-font-lock))))
(display-buffer buf
'((display-buffer-reuse-window
display-buffer-pop-up-window))))))