From per.fredelius at gmail.com Wed May 2 21:05:56 2012 From: per.fredelius at gmail.com (Per Fredelius) Date: Wed, 2 May 2012 22:05:56 +0200 Subject: *haskell* jumping working directory to parent on exit Message-ID: I have the following issue: If I do this: 1. Load up a module Test.Test using C-c C-l 2. Close the ghci session using ':q' 3. Try open a new session using C-c C-l *without* closing the *haskell* buffer. Then ghci will give me an error, the module can not be found. Using getCurrentDirectory (in System.Directory) will tell me why. Current directory has been switched from previous session. It is now in the previous directories parent directory. So if my testmodule has path parentfolder/myfolder/Test/Test.hs the working directory will become parentfolder/myfolder the first time and parentfolder the second time. If I do close the buffer in between sessions the issue does not occur. A friend suggested that haskell mode will look for cabal files and sometimes change directory to one having one. I've tried moving my cabal file around to no avail. I'm still an emacs newbie so I may have confused some things up. I'm not sure what happens, only the end result. This issue is mainly an actual issue for me because of modules that cause ghci to crash when closing them because of 'misbehaving' non-haskell dependencies (opengl). Debugging would be much less of a hassle if I can trust in C-c C-l. Thanks in advance From jeremy at n-heptane.com Wed May 2 21:10:04 2012 From: jeremy at n-heptane.com (Jeremy Shaw) Date: Wed, 2 May 2012 15:10:04 -0500 Subject: *haskell* jumping working directory to parent on exit In-Reply-To: References: Message-ID: On Wed, May 2, 2012 at 3:05 PM, Per Fredelius wrote: > A friend suggested that haskell mode will look for cabal files and > sometimes change directory to one having one. I've tried moving my > cabal file around to no avail. haskell-mode only notices that you moved the .cabal file around if you re-open the .hs file. (C-x C-v ENTER) - jeremy From chrisdone at googlemail.com Wed May 2 21:14:46 2012 From: chrisdone at googlemail.com (Christopher Done) Date: Wed, 2 May 2012 22:14:46 +0200 Subject: *haskell* jumping working directory to parent on exit In-Reply-To: References: Message-ID: This sounds bug-ish. I copied it to the Github issue tracker: https://github.com/haskell/haskell-mode/issues/35 I'm not really maintaining inferior-haskell-mode. For what it's worth, with the different interactive mode (i.e. mine), hitting :q kills GHCi, it prompts you to restart, you hit "y" and then it cd's back to the directory it was at. It's easy to handle misbehaving GHCi. To try it: https://github.com/haskell/haskell-mode#setup-for-new-interactive-mode Ciao! From chrisdone at googlemail.com Sat May 19 11:17:25 2012 From: chrisdone at googlemail.com (Christopher Done) Date: Sat, 19 May 2012 12:17:25 +0200 Subject: Re-organized the Emacs page on HaskellWiki Message-ID: Hi chaps, Yesterday I re-organized the Emacs so that the main page is now: http://www.haskell.org/haskellwiki/Emacs (The old link redirects here.) The various topics of interested have been separated into pages and linked to from the ?infobox? on the right-hand side. Before, we threw everything onto one big page, t'was a mess. Preferably we should keep it organized and up to date. Anything related to Emacs and Haskell can be put in here, not just haskell-mode stuff. Ideally, we could make it very well documented with screenshots and such, so that a complete newb to Emacs could get going quickly. But that takes some time. If anyone does start that, let's standardize on the default Emacs GTK+ black-on-white theme. Ciao! From gracjanpolak at gmail.com Mon May 21 08:56:53 2012 From: gracjanpolak at gmail.com (Gracjan Polak) Date: Mon, 21 May 2012 09:56:53 +0200 Subject: BackTab key... where is it? Message-ID: Hi all, I cannot find the backtab key on my keyboard. In haskell-mode.el there is: (define-key map [backtab] 'unindent-for-tab-command) It does not work for me. I use GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2011-10-25 on braeburn.aquamacs.org - Aquamacs Distribution 2.4. This is Mac OS X with Aquaemacs. The mention of backtab in google I've found is this: M-TAB (echo-area-tab-insert) Shift-TAB (on DOS/Windows only) Insert a TAB character. On DOS/Windows only, the Shift-TAB key is an alias for M-TAB. This key is sometimes called `BackTab'. So not highly relevant, but gives a clue that backtab should be equivalent to shift-tab for me. Might be relevant. http://www.emacswiki.org/emacs/mon-keybindings.el binds every possible representation of shift-tab: (define-key emacs-lisp-mode-map (kbd "") 'lisp-complete-symbol) (define-key emacs-lisp-mode-map (kbd "") 'lisp-complete-symbol) (define-key emacs-lisp-mode-map (kbd "") 'lisp-complete-symbol) Should haskell-mode do the same? -- Gracjan -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisdone at googlemail.com Mon May 21 09:05:51 2012 From: chrisdone at googlemail.com (Christopher Done) Date: Mon, 21 May 2012 10:05:51 +0200 Subject: BackTab key... where is it? In-Reply-To: References: Message-ID: On my machine, backtab is Shift-Tab. I added this to haskell-mode, for the simple-indent module. I don't mind adding these extra bindings, if elisp mode does it. If your indentation mode is one of the indentation.el's, I'm not sure they even support unindent-for-tab-command? Ciao!