Re: Adding a BufferType, like Vim's buftype

2008-12-20 Thread Jeff Wheeler
On Sat, 2008-12-20 at 23:56 +0100, Jean-Philippe Bernardy wrote: > * If you don't want a scratch buffer you do not need to create it; If that's possible, that'd be great. I thought it had to be created so some buffer existed initially, and it wasn't created if a file was passed via the command-

Re: Profiling yi

2008-12-20 Thread Gwern Branwen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Sat, Dec 20, 2008 at 5:34 PM, Kalman Noel wrote: -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEAREKAAYFAklNm9kACgkQvpDo5Pfl1oI6zgCdGfMs8sfY/XgMs63uJMYXwyUE iG4AnRwj7g4rEt8u0+T60ibrAi0tkUHg =IcrO -END PGP SIGNATURE-

patch applied (yi): small comment on the :ball function

2008-12-20 Thread Jean-Philippe Bernardy
Sat Dec 20 18:09:05 EST 2008 jeanphilippe.berna...@gmail.com * small comment on the :ball function M ./Yi/Editor.hs +1 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~--~~

patch applied (yi): use the common prefix stuff in emacs-style buffer switch

2008-12-20 Thread Jean-Philippe Bernardy
Sat Dec 20 18:07:46 EST 2008 jeanphilippe.berna...@gmail.com * use the common prefix stuff in emacs-style buffer switch M ./Yi/Keymap/Emacs/Utils.hs -1 +2 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/g

patch applied (yi): better handling of hidden prefix

2008-12-20 Thread Jean-Philippe Bernardy
Sat Dec 20 18:07:27 EST 2008 jeanphilippe.berna...@gmail.com * better handling of hidden prefix M ./Yi/Buffer/Misc.hs -1 +2 M ./Yi/Editor.hs -3 +8 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group

Re: Adding a BufferType, like Vim's buftype

2008-12-20 Thread Jean-Philippe Bernardy
On Sat, Dec 20, 2008 at 11:43 PM, Jeff Wheeler wrote: > On Sat, 2008-12-20 at 23:33 +0100, Jean-Philippe Bernardy wrote: > >> What difference do you have in mind? > > At least in Vim, the scratch buffer is never worth showing again, after > startup. It, and other junk buffers (*completions*, *mes

Re: Adding a BufferType, like Vim's buftype

2008-12-20 Thread Jeff Wheeler
On Sat, 2008-12-20 at 23:33 +0100, Jean-Philippe Bernardy wrote: > What difference do you have in mind? At least in Vim, the scratch buffer is never worth showing again, after startup. It, and other junk buffers (*completions*, *messages*, *scratch* are all of them, I think), should not show up i

patch applied (yi): simplify identString

2008-12-20 Thread Jean-Philippe Bernardy
Sat Dec 20 17:02:09 EST 2008 jeanphilippe.berna...@gmail.com * simplify identString M ./Yi/Buffer/Misc.hs -4 +4 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~--~~~~-

patch applied (yi): simplify switchToBufferE

2008-12-20 Thread Jean-Philippe Bernardy
Sat Dec 20 17:24:03 EST 2008 jeanphilippe.berna...@gmail.com * simplify switchToBufferE M ./Yi/Keymap/Emacs/Utils.hs -3 +3 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~--~~

patch applied (yi): add functions to retrieve a short buffer name given a prefix, and to create that prefix.

2008-12-20 Thread Jean-Philippe Bernardy
Sat Dec 20 17:21:49 EST 2008 jeanphilippe.berna...@gmail.com * add functions to retrieve a short buffer name given a prefix, and to create that prefix. M ./Yi/Buffer/Misc.hs +4 M ./Yi/Editor.hs +6 --~--~-~--~~~---~--~~ Yi development mailing list yi-de

Re: Profiling yi

2008-12-20 Thread Kalman Noel
Gwern Branwen: > OK, Kalman. With the recent activity, what's the latest story on this > principled way of profiling Yi? I don't quite get what your question's about (as a man from the continent, you know...) Are you asking what results I got from profiling? --~--~-~--~~

Re: Adding a BufferType, like Vim's buftype

2008-12-20 Thread Jean-Philippe Bernardy
On Sat, Dec 20, 2008 at 11:28 PM, Jeff Wheeler wrote: > On Sat, 2008-12-20 at 22:53 +0100, Jean-Philippe Bernardy wrote: > >> This is available in identA, check if the result is Left or Right. > > Great; that simplifies my life. :) :) > I'm not sure Either is the best approach, though. A shell-

Re: Adding a BufferType, like Vim's buftype

2008-12-20 Thread Jeff Wheeler
On Sat, 2008-12-20 at 22:53 +0100, Jean-Philippe Bernardy wrote: > This is available in identA, check if the result is Left or Right. Great; that simplifies my life. :) I'm not sure Either is the best approach, though. A shell-prompt buffer, for example, is not a junk buffer like *scratch* and *

Re: Adding a BufferType, like Vim's buftype

2008-12-20 Thread Jean-Philippe Bernardy
On Sat, Dec 20, 2008 at 10:45 PM, Jeff Wheeler wrote: > This would a larger patch than other things I've done, so I wanted to > get the opinion of everybody else before working on it too much. > > Vim implements a buftype variable for each buffer that tracks whether it > is a normal file-focused

Adding a BufferType, like Vim's buftype

2008-12-20 Thread Jeff Wheeler
This would a larger patch than other things I've done, so I wanted to get the opinion of everybody else before working on it too much. Vim implements a buftype variable for each buffer that tracks whether it is a normal file-focused buffer, a scratch-esque buffer, or a few other choices. I think Y

patch applied (yi): tiny style clarification

2008-12-20 Thread Jean-Philippe Bernardy
Sat Dec 20 16:18:04 EST 2008 jeanphilippe.berna...@gmail.com * tiny style clarification M ./STYLE -1 +3 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~--~~~~--~--

patch applied (yi): STYLE: information on using hlint

2008-12-20 Thread Jean-Philippe Bernardy
Sat Dec 20 16:10:52 EST 2008 gwe...@gmail.com * STYLE: information on using hlint Ignore-this: 66d0b88a49a088190c758109d2b22b5a M ./STYLE +7 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-deve

Re: Hlint on Yi

2008-12-20 Thread Jean-Philippe Bernardy
>> Use fewer brackets: ok >> Lambda shift: no >> eta-reduce: do not do it unless the point-less abstraction makes >> sense. (that is, almost never) >> fromMaybe: ok >> (:) : ok >> use a list comprehension: ok >> print: ok >> unwords: ok >> liftM: use <$> (or fmap) instead > > I don't follow; what'

Re: Profiling yi

2008-12-20 Thread Gwern Branwen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Tue, Dec 16, 2008 at 1:56 PM, Kalman Noel wrote: -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEAREKAAYFAklNX7YACgkQvpDo5Pfl1oIURACdFrWa3i0wV8FIAJcoXl35y7T6 63sAoIGNm1ujLQhw6VRXLDoXTA/4FM69 =D5Je -END PGP SIGNATURE-

darcs patch: STYLE: information on using hlint

2008-12-20 Thread gwern0
Sat Dec 20 16:10:52 EST 2008 gwe...@gmail.com * STYLE: information on using hlint --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~--~~~~--~~--~--~--- -BEGIN

Re: Hlint on Yi

2008-12-20 Thread Gwern Branwen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Sat, Dec 20, 2008 at 3:37 PM, Jean-Philippe Bernardy wrote: -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEAREKAAYFAklNXkwACgkQvpDo5Pfl1oIXmwCfQ0ZIXKSatRv/ueyuZuVLx5IY qqMAnifXR/hNwujRouznW5IGbCvCq5wE =z/b/ -END PGP SIG

patch applied (yi): move commonPrefix to prelude

2008-12-20 Thread Jean-Philippe Bernardy
Sat Dec 20 16:05:07 EST 2008 jeanphilippe.berna...@gmail.com * move commonPrefix to prelude M ./Yi/Completion.hs -14 +2 M ./Yi/Prelude.hs +17 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-d

patch applied (yi): remove unused definition

2008-12-20 Thread Jean-Philippe Bernardy
Sat Dec 20 16:05:27 EST 2008 jeanphilippe.berna...@gmail.com * remove unused definition M ./Yi/Dired.hs -1 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~--~~~~--

Re: darcs patch: HConf: implement --ghc-options

2008-12-20 Thread Jeff Wheeler
On Dec 20, 2:13 pm, Kalman Noel wrote: > Ahem. I resent the patch, this time completely (or so I hope). I just pushed the patch. Thanks! Jeff Wheeler --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-de

patch applied (yi): HConf: implement --ghc-options

2008-12-20 Thread Jeff Wheeler
Sat Dec 20 13:57:08 EST 2008 Kalman Noel * HConf: implement --ghc-options This enables the user to pass flags to the compiler when reloading the configuration. The motivation was enabling profiling, but it may have other uses. Notes: * In order to profit from --ghc-options

Re: Hlint on Yi

2008-12-20 Thread nicolas . pouillard
Excerpts from Jean-Philippe Bernardy's message of Sat Dec 20 21:37:47 +0100 2008: > > Ok, here's my take on the report: > > Most important of all, use your judgment before applying a suggestion! > Make sure you understand the code you modify. I will take care of suggestions of the Vim module p

Re: Hlint on Yi

2008-12-20 Thread Jean-Philippe Bernardy
Ok, here's my take on the report: Most important of all, use your judgment before applying a suggestion! Make sure you understand the code you modify. Rule-by-rule: Use fewer brackets: ok Lambda shift: no eta-reduce: do not do it unless the point-less abstraction makes sense. (that is, almost n

Re: Hlint on Yi

2008-12-20 Thread Jean-Philippe Bernardy
On Sat, Dec 20, 2008 at 9:10 PM, Jeff Wheeler wrote: > On Sat, 2008-12-20 at 21:00 +0100, nicolas.pouillard wrote: >> Excerpts from Gwern Branwen's message of Sat Dec 20 20:54:11 +0100 2008: >> > -BEGIN PGP SIGNED MESSAGE- >> > Hash: SHA512 >> > >> > I doubt everyone has installed or even

Re: darcs patch: HConf: implement --ghc-options

2008-12-20 Thread Kalman Noel
Jeff Wheeler: > On Dec 16, 1:00 pm, Kalman Noel wrote: >> Tue Dec 16 19:59:41 CET 2008 Kalman Noel >> >> * HConf: implement --ghc-options >> >> This enables the user to pass flags to the compiler when >> reloading the >> configuration. The motivation was enabling profiling, but it may

Re: Hlint on Yi

2008-12-20 Thread Jeff Wheeler
On Sat, 2008-12-20 at 21:00 +0100, nicolas.pouillard wrote: > Excerpts from Gwern Branwen's message of Sat Dec 20 20:54:11 +0100 2008: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA512 > > > > I doubt everyone has installed or even heard of hlint here. hlint is > > Neil Mitchell's latest pro

darcs patch: HConf: implement --ghc-options

2008-12-20 Thread Kalman Noel
Sat Dec 20 19:57:08 CET 2008 Kalman Noel * HConf: implement --ghc-options This enables the user to pass flags to the compiler when reloading the configuration. The motivation was enabling profiling, but it may have other uses. Notes: * In order to profit from --ghc-options=

patch applied (yi): remove one usage of ParallelListComp

2008-12-20 Thread Jean-Philippe Bernardy
Sat Dec 20 15:02:51 EST 2008 jeanphilippe.berna...@gmail.com * remove one usage of ParallelListComp M ./Yi/Debug.hs -3 +1 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~--~~-

Re: Hlint on Yi

2008-12-20 Thread nicolas . pouillard
Excerpts from Gwern Branwen's message of Sat Dec 20 20:54:11 +0100 2008: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > I doubt everyone has installed or even heard of hlint here. hlint is > Neil Mitchell's latest project, which was released today. It is as it > sounds like: it finds sub

patch applied (yi): Simplify tab abbreviation code

2008-12-20 Thread Jeff Wheeler
Sat Dec 20 13:35:41 EST 2008 Jeff Wheeler * Simplify tab abbreviation code Didn't realize that this was never needed. The last choice for the 'case' always works for this, just as well. M ./Yi/UI/TabBar.hs -1 --~--~-~--~~~---~--~~ Yi development mail

Issue 215 in yi-editor: Buffer name is full path, not relative path

2008-12-20 Thread codesite-noreply
Comment #2 on issue 215 by jeffwheeler: Buffer name is full path, not relative path http://code.google.com/p/yi-editor/issues/detail?id=215 I just pushed a patch for abbreviated tab titles. The other problem remains. -- You received this message because you are listed in the owner or CC field

patch applied (yi): Abbreviate tab titles

2008-12-20 Thread Jeff Wheeler
Sat Dec 20 13:26:38 EST 2008 Jeff Wheeler * Abbreviate tab titles M ./Yi/UI/TabBar.hs +7 M ./Yi/UI/Vty.hs -1 +1 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~--~~~-

Issue 215 in yi-editor: Buffer name is full path, not relative path

2008-12-20 Thread codesite-noreply
Comment #1 on issue 215 by nicolas.pouillard: Buffer name is full path, not relative path http://code.google.com/p/yi-editor/issues/detail?id=215 Tab names abbreviation would be really nice and seems independent of the buffer name. The tab name would temporarily be /U/j/d/y/Y/K/Vim.hs which

Issue 215 in yi-editor: Buffer name is full path, not relative path

2008-12-20 Thread codesite-noreply
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 215 by jeffwheeler: Buffer name is full path, not relative path http://code.google.com/p/yi-editor/issues/detail?id=215 What steps will reproduce the problem? 1. Open yi with any keybinding; I use Vim, but I tested with Emacs

Re: YiConfig.hs

2008-12-20 Thread Jean-Philippe Bernardy
On Fri, Dec 19, 2008 at 11:47 PM, jzhan wrote: > > I'm having trouble figuring out how to publish a function from > YiConfig.hs and also how to bind a new key to yi. > (ctrl (char '>') ?>>! > increaseIndent) > } > Terminals do not send a proper code for Ctrl->. I suggest you try binding M

Re: darcs patch: HConf: implement --ghc-options

2008-12-20 Thread Jeff Wheeler
On Dec 16, 1:00 pm, Kalman Noel wrote: > Tue Dec 16 19:59:41 CET 2008  Kalman Noel >   * HConf: implement --ghc-options > >   This enables the user to pass flags to the compiler when reloading the >   configuration. The motivation was enabling profiling, but it may have other >   uses. This is