From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: wahjava@gmail.com (Ashish SHUKLA) Newsgroups: gmane.emacs.help Subject: Emacs CVS and inferior-haskell process Date: Sun, 01 Feb 2009 13:33:13 +0530 Organization: alt.religion.emacs Message-ID: <87k58awpmm.fsf@chateau.d.lf> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233477649 26628 80.91.229.12 (1 Feb 2009 08:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2009 08:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 01 09:42:02 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LTXtx-00085l-U8 for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 09:42:02 +0100 Original-Received: from localhost ([127.0.0.1]:56991 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTXsf-0008VZ-1d for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 03:40:41 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help X-Face: )vGQ9yK7Y$Flebu1C>(B\gYBm)[$zfKM+p&TT[[JWl6:]S>cc$%-z7-`46Zf0B*syL.C]oCq[upTG~zuS0.$"_%)|Q@$hA=9{3l{%u^h3jJ^Zl; t7 Original-Followup-To: gnu.emacs.help X-Uptime: 13:05:33 up 2:27, 1 user, load average: 0.16, 0.21, 0.20 X-URL: http://wahjava.wordpress.com/ X-OpenPGP-ID: 762E5E74 X-OpenPGP-Fingerprint: 1E00 4679 77E4 F8EE 2E4B 56F2 1F2F 8410 762E 5E74 X-OS: GNU/Linux on Linux 2.6.28-ARCH kernel on x86_64 architecture X-Mailer: Gnus v5.13 X-Mail-Morse: .-- .- .... .--- .- ...- .- .--.-. --. -- .- .. .-.. .-.-.- -.-. --- -- X-Attribution: =?utf-8?B?4KSG4KS24KWA4KS3?= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-unknown-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEWpqal/f39tbW1jY2Md HR2goKCenp6UlJROTk7////9/f35+fnT09ORJdieAAACVklEQVQ4jXXUP2vbQBQA8AvUTkgz5OzY Z0iGWhpS6BSrkECn0mvx0MEJ6AjtYrfoBCVDlD8naJYmNlRfwZq8+mkKlIZaGpJSYmP7Q/XkJDrJ Td8i/H68u3vHPaPufwLdf32AMA4A6GcAgvAamY1pOJiDIFqicTwLswDhfr3uxfFtkAY/GFHPMwzD 8zpnACmIOnE6js7rQb+v4NJrG9od0C+QgpHMy5jBewV+UDSMWiw1Y4fWfyV7+NGFzDsYa3pth9LJ Q4XvXxFHcJRvHOmygn5NAEabnDcQQguarnfoiwSCJ99jmKKcphsZONmWsDK9Ro7cvZOCtQdg8nje egLhc2LNlkLmsezzTFUUy5w18ocox/f0LaLgJy0zO75zk+9pp85GAj36xjqhdI0y3tq2m4dqqcWX zQWBTz8L1irvolXV4J+3q7eCDgVnttjNq6X8H+9KOZsuNk1uCzx8pSp+E9HImfJOTLdcGqo+YKnG EIovizkEn48V7BO+ch2DXcD4ENSpWiU+q8hjjbgTBZCXnZtyj0Ws4Q1Q0B2WXFtYZo65Bbyeeldw RS6qFueM80LlLA29YlVwGRYvFD+kwI/0O+A2PlpOP9GwslUVciHuYGechuBTp922YiDZCrghTknm XSyOM+D3aoRZlo0Jb42zY7DN4p2x4AeZ+QAYutx1sHwTHzMT5cMNduQ9yW3GczN4KZ86kb0c9O8T yXDeFqpl2fryPEAYGXIlezAPXYh2NgVr/gvdoHIuDwuPwOhcWE8f8mmICq41eATkn8x0kuRTIKcB wE9+/QUtiiAnYcaN7wAAAABJRU5ErkJggg== Cancel-Lock: sha1:iNN1akqf04JCmtHsbZBBfpqZ1yQ= Original-Lines: 57 Original-NNTP-Posting-Host: 122.161.150.248 Original-X-Trace: news.sunsite.dk DXC=0P5@ZLMiND4H=^0YSB=nbEKnk; 4mi>jDOWoH7_VjcbG]E2A4WVClUPd35F7dme8L8@Q7=:Y; edJL?8`d7X@Ka62m:Rk3 Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu comp.emacs:97731 gnu.emacs.help:166500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61819 Archived-At: Hi, Whenever I start inferior-haskell process I noticed that whatever I input to the haskell process, it echoes that back with ^J (2 characters, ^ and J, not single character ^J). To fix this behaviour I've to use the following EmacsLisp code: #v+ (with-current-buffer inferior-haskell-buffer (add-hook 'comint-preoutput-filter-functions (lambda (str) (replace-regexp-in-string ".*^J\\(.*\\)" "\\1" str)))) #v- This fixes this but I don't think this is any good solution. I think this has something to do with process or terminal coding, but I'm not sure what it is. Following is an interaction with ghci. During the invocation of ghci, I typed ":t map^M^D" characters on my keyboard: #v+ % ghci >test.txt % hexdump -C test.txt 00000000 47 48 43 69 2c 20 76 65 72 73 69 6f 6e 20 36 2e |GHCi, version 6.| 00000010 31 30 2e 31 3a 20 68 74 74 70 3a 2f 2f 77 77 77 |10.1: http://www| 00000020 2e 68 61 73 6b 65 6c 6c 2e 6f 72 67 2f 67 68 63 |.haskell.org/ghc| 00000030 2f 20 20 3a 3f 20 66 6f 72 20 68 65 6c 70 0a 4c |/ :? for help.L| 00000040 6f 61 64 69 6e 67 20 70 61 63 6b 61 67 65 20 67 |oading package g| 00000050 68 63 2d 70 72 69 6d 20 2e 2e 2e 20 6c 69 6e 6b |hc-prim ... link| 00000060 69 6e 67 20 2e 2e 2e 20 64 6f 6e 65 2e 0a 4c 6f |ing ... done..Lo| 00000070 61 64 69 6e 67 20 70 61 63 6b 61 67 65 20 69 6e |ading package in| 00000080 74 65 67 65 72 20 2e 2e 2e 20 6c 69 6e 6b 69 6e |teger ... linkin| 00000090 67 20 2e 2e 2e 20 64 6f 6e 65 2e 0a 4c 6f 61 64 |g ... done..Load| 000000a0 69 6e 67 20 70 61 63 6b 61 67 65 20 62 61 73 65 |ing package base| 000000b0 20 2e 2e 2e 20 6c 69 6e 6b 69 6e 67 20 2e 2e 2e | ... linking ...| 000000c0 20 64 6f 6e 65 2e 0a 50 72 65 6c 75 64 65 3e 20 | done..Prelude> | 000000d0 3a 74 20 6d 61 70 0a 6d 61 70 20 3a 3a 20 28 61 |:t map.map :: (a| 000000e0 20 2d 3e 20 62 29 20 2d 3e 20 5b 61 5d 20 2d 3e | -> b) -> [a] ->| 000000f0 20 5b 62 5d 0a 50 72 65 6c 75 64 65 3e 20 5e 44 | [b].Prelude> ^D| 00000100 4c 65 61 76 69 6e 67 20 47 48 43 69 2e 0a |Leaving GHCi..| 0000010e #v- BtW, I'm noticing this behavior since I upgraded to GHC (from 6.8.2 to 6.10.1). I'm using haskell-mode 2.4 and running following version of GNU Emacs. GNU Emacs 23.0.60.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.14.7) of 2009-01-24 on chateau.d.lf Any ideas what is wrong with ghci or emacs ? And how to properly fix this problem. Thanks in advance. -- Ashish SHUKLA