Skip to content

Commit

Permalink
Apply ansi color on regions in ess-describe-object-at-point
Browse files Browse the repository at this point in the history
  • Loading branch information
vspinu committed Sep 17, 2019
1 parent 8b4e253 commit 8b48aae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lisp/ess-help.el
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
(require 'ess-mode)
(require 'ess-inf)
(require 'ess-utils)
(require 'ansi-color)

(declare-function ess-r-help-mode "ess-r-mode")
(declare-function ess-stata-help-mode "ess-stata-lang")
Expand Down Expand Up @@ -801,7 +802,9 @@ other dialects)."
(forward-line -1)
(setq pos (point))
;; set the keys that we are used to in help mode
(special-mode))
(special-mode)
(let ((inhibit-read-only t))
(ansi-color-apply-on-region (point-min) (point-max))))
(if (eq ess-describe-at-point-method 'tooltip)
(ess-tooltip-show-at-point
(with-current-buffer buf (buffer-string)) 0 30)
Expand Down

0 comments on commit 8b48aae

Please sign in to comment.