darcs patch: make code more compact in XPrompt.

This should definitely not be applied unless it's approved by Andrea. It's
a side-effect of my debugging attempt which resulted in the previously-sent
bug fix for XPrompt. I compactified the code so I could read it (since I
can't read what I can't see, so a function that doesn't fit on the screen
is pretty hard to debug. But obviously some people like large quantities
of superfluous space...
David
Mon Aug 27 14:59:23 EDT 2007 David Roundy

On Mon, Aug 27, 2007 at 03:21:41PM -0400, David Roundy wrote:
This should definitely not be applied unless it's approved by Andrea. It's a side-effect of my debugging attempt which resulted in the previously-sent bug fix for XPrompt. I compactified the code so I could read it (since I can't read what I can't see, so a function that doesn't fit on the screen is pretty hard to debug. But obviously some people like large quantities of superfluous space...
Fine with me: please apply.
+ | ks == xK_Return = do historyPush + liftIO $ hPutStrLn stderr "Hello world" + return ()
we can get rid of the debugging bits: I'll send a cosmetic patch to take of that and other minor code formatting. Thank you, Andrea BTW: here keyPressHandle - which was 52 lines long - perfectly fit on the 53 available lines of my 1024x768 laptop. what about switching to emacs--wathever-no-x11? ;-)

On Tue, Aug 28, 2007 at 08:17:04AM +0200, Andrea Rossato wrote:
On Mon, Aug 27, 2007 at 03:21:41PM -0400, David Roundy wrote:
+ | ks == xK_Return = do historyPush + liftIO $ hPutStrLn stderr "Hello world" + return ()
we can get rid of the debugging bits: I'll send a cosmetic patch to take of that and other minor code formatting.
Ooops! Sorry about that... and conveniently we'll save two lines. :)
Thank you,
You're welcome.
BTW: here keyPressHandle - which was 52 lines long - perfectly fit on the 53 available lines of my 1024x768 laptop. what about switching to emacs--wathever-no-x11? ;-)
I guess it's that I've got a larger font. I can only see 32 lines on my terminal and 31 in my emacs window (which actually uses a smaller font). -- David Roundy http://www.darcs.net

On Tue, Aug 28, 2007 at 10:13:54AM -0400, David Roundy wrote:
On Tue, Aug 28, 2007 at 08:17:04AM +0200, Andrea Rossato wrote:
BTW: here keyPressHandle - which was 52 lines long - perfectly fit on the 53 available lines of my 1024x768 laptop. what about switching to emacs--wathever-no-x11? ;-)
I guess it's that I've got a larger font. I can only see 32 lines on my terminal and 31 in my emacs window (which actually uses a smaller font).
Oh yeah, and I don't use full-screen. I leave room for a terminal at the bottom. -- David Roundy http://www.darcs.net
participants (2)
-
Andrea Rossato
-
David Roundy