Skip to content

Commit

Permalink
Use font-lock-comment-delimiter-face for "--" in interactive popups
Browse files Browse the repository at this point in the history
Fixes #1741
  • Loading branch information
purcell committed Apr 15, 2021
1 parent 426e28b commit d771202
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions haskell-interactive-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ wrapped in compiler directive at the top of FILE."
(haskell-interactive-mode-prompt))

(defun haskell-interactive-popup-error (response)
"Popup an error."
"Pop up an error."
(if haskell-interactive-popup-errors
(let ((buf (get-buffer-create "*HS-Error*")))
(pop-to-buffer buf nil t)
Expand All @@ -659,12 +659,13 @@ wrapped in compiler directive at the top of FILE."
'haskell-interactive-face-compile-error))
(goto-char (point-min))
(delete-blank-lines)
(insert (propertize "-- Hit `q' to close this window.\n\n"
'font-lock-face 'font-lock-comment-face))
(save-excursion
(goto-char (point-max))
(insert (propertize "\n-- To disable popups, customize `haskell-interactive-popup-errors'.\n\n"
'font-lock-face 'font-lock-comment-face))))))
(let ((start-comment (propertize "-- " 'font-lock-face 'font-lock-comment-delimiter-face)))
(insert start-comment (propertize "Hit `q' to close this window.\n\n" 'font-lock-face 'font-lock-comment-face))
(save-excursion
(goto-char (point-max))
(insert "\n" start-comment
(propertize "To disable popups, customize `haskell-interactive-popup-errors'.\n\n"
'font-lock-face 'font-lock-comment-face)))))))
(haskell-interactive-mode-insert-error response)))

(defun haskell-interactive-next-error-function (&optional n reset)
Expand Down

0 comments on commit d771202

Please sign in to comment.