Skip to content

Commit ee9ca98

Browse files
committed
haskell-process-load-file: conditionalise windop popup
1 parent eef5727 commit ee9ca98

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

haskell-interactive-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,10 @@ FILE-NAME only."
499499
t)))))
500500

501501
;;;###autoload
502-
(defun haskell-interactive-mode-reset-error (session)
502+
(defun haskell-interactive-mode-reset-error (session &optional no-window-popup)
503503
"Reset the error cursor position."
504504
(interactive)
505-
(with-current-buffer (haskell-session-interactive-buffer session)
505+
(with-current-buffer (haskell-session-interactive-buffer session no-window-popup)
506506
(haskell-interactive-mode-goto-end-point)
507507
(let ((mrk (point-marker)))
508508
(haskell-session-set session 'next-error-locus nil)

haskell.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,11 @@ If `haskell-process-load-or-reload-prompt' is nil, accept `default'."
377377
(pop-to-buffer buffer)))
378378

379379
;;;###autoload
380-
(defun haskell-process-load-file ()
380+
(defun haskell-process-load-file (&optional no-window-popup)
381381
"Load the current buffer file."
382382
(interactive)
383383
(save-buffer)
384-
(haskell-interactive-mode-reset-error (haskell-session))
384+
(haskell-interactive-mode-reset-error (haskell-session) no-window-popup)
385385
(haskell-process-file-loadish (format "load \"%s\"" (replace-regexp-in-string
386386
"\""
387387
"\\\\\""

0 commit comments

Comments
 (0)