Skip to content

Commit d771202

Browse files
committed
Use font-lock-comment-delimiter-face for "--" in interactive popups
Fixes #1741
1 parent 426e28b commit d771202

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

haskell-interactive-mode.el

+8-7
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ wrapped in compiler directive at the top of FILE."
645645
(haskell-interactive-mode-prompt))
646646

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

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

0 commit comments

Comments
 (0)