Your message dated Fri, 02 Sep 2011 22:19:58 -0300
with message-id <[email protected]>
and subject line fixed in 2.8.0-1
has caused the Debian Bug report #421471,
regarding inferior-haskell-load-file on a new file fails
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
421471: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=421471
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: haskell-mode
Version: 2.1-1

Using C-c C-l (inferior-haskell-load-file) on a buffer that doesn't
have a buffer-file-name (like *scratch*) fails.

Steps to reproduce:
* C-x b *scratch* RET
* M-x haskell-mode RET
* Type some Haskell code
* C-c C-l

Output from GHCi:
 Prelude> :load ""

 <command line>:
     Could not find module `':
       Use -v to see a list of the files searched for.
 Failed, modules loaded: none.

Fix: patch attached. We just need to (save-buffer) before we try to
grab the buffer-file-name.

--
-David House, [email protected]
*** /usr/local/share/emacs/site-lisp/haskell-mode-2.3/inf-haskell-mine.el	2007-04-29 15:29:12.000000000 +0100
--- /usr/local/share/emacs/site-lisp/haskell-mode-2.3/inf-haskell.el	2007-04-29 15:28:57.000000000 +0100
***************
*** 176,184 ****
  (defun inferior-haskell-load-file (&optional reload)
    "Pass the current buffer's file to the inferior haskell process."
    (interactive)
-   (save-buffer)
    (let ((file buffer-file-name)
  	(proc (inferior-haskell-process)))
      (with-current-buffer (process-buffer proc)
        ;; Not sure if it's useful/needed and if it actually works.
        ;; (unless (equal (file-name-as-directory default-directory)
--- 176,184 ----
  (defun inferior-haskell-load-file (&optional reload)
    "Pass the current buffer's file to the inferior haskell process."
    (interactive)
    (let ((file buffer-file-name)
  	(proc (inferior-haskell-process)))
+     (save-buffer)
      (with-current-buffer (process-buffer proc)
        ;; Not sure if it's useful/needed and if it actually works.
        ;; (unless (equal (file-name-as-directory default-directory)

--- End Message ---
--- Begin Message ---
This bug is fixed in the latest upstream version. Emacs asks where to
save the buffer, then passes it to the haskell process.

d


--- End Message ---

Reply via email to