Re: auto-indent in Counterclockwise

2010-07-09 Thread Lee Spector
Sorry for the typo -- I did indeed mean control-space throughout, and CCW is doing what everyone seems to think is right on this (control-space for symbol completion). -Lee On Jul 9, 2010, at 7:00 AM, Michael Wood wrote: > On 9 July 2010 11:17, Laurent PETIT wrote: > [...] >> Isn't it formi

Re: auto-indent in Counterclockwise

2010-07-09 Thread Michael Wood
On 9 July 2010 11:17, Laurent PETIT wrote: [...] > Isn't it formidable that I automatically overlook the typos :-) It can be a blessing or a curse :) -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send emai

Re: auto-indent in Counterclockwise

2010-07-09 Thread Laurent PETIT
2010/7/9 Michael Wood > Hi > > On 9 July 2010 08:53, Laurent PETIT wrote: > [...] > >> > 2010/7/8 Lee Spector > [...] > >> >> Aha! It is now working for me on a mac and with control-space, > getting > > ^ > >> >> a > >> >> popup menu exactly as you say and as I want! > >

Re: auto-indent in Counterclockwise

2010-07-09 Thread Michael Wood
Hi On 9 July 2010 08:53, Laurent PETIT wrote: [...] >> > 2010/7/8 Lee Spector [...] >> >> Aha! It is now working for me on a mac and with control-space, getting ^ >> >> a >> >> popup menu exactly as you say and as I want! >> >> >> >> Perhaps I never actually tried this c

Re: auto-indent in Counterclockwise

2010-07-08 Thread Laurent PETIT
2010/7/9 B Smith-Mannschott > On Thu, Jul 8, 2010 at 17:13, Laurent PETIT > wrote: > > > > 2010/7/8 Lee Spector > >> > >> On Jul 8, 2010, at 10:31 AM, Laurent PETIT wrote: > >> > What you first describe is odd. Is this a Mac particularity ? > >> > On Windows/Linux, Hitting Ctrl+Space_bar result

Re: auto-indent in Counterclockwise

2010-07-08 Thread Chas Emerick
On Jul 9, 2010, at 12:55 AM, B Smith-Mannschott wrote: command-space on the mac is used by the system to open the spotlight search field from the menu bar. It would be best not to bind it in Eclipse as this will mean the user must either rebind the spotlight shortcut, or your eclipse shortcut

Re: auto-indent in Counterclockwise

2010-07-08 Thread B Smith-Mannschott
On Thu, Jul 8, 2010 at 17:13, Laurent PETIT wrote: > > 2010/7/8 Lee Spector >> >> On Jul 8, 2010, at 10:31 AM, Laurent PETIT wrote: >> > What you first describe is odd. Is this a Mac particularity ? >> > On Windows/Linux, Hitting Ctrl+Space_bar results in showing a popup with >> > all the possibl

Re: auto-indent in Counterclockwise

2010-07-08 Thread Steven E. Harris
Laurent PETIT writes: > When you say "that it's hard ... '[' and ']' ...", you're talking > about the original paredit.el in emacs? Actually, I was talking both about the current Emacs Lisp editing library (where `move-past-close-and-reindent' is defined) and the most recent paredit.el library a

Re: auto-indent in Counterclockwise

2010-07-08 Thread Laurent PETIT
2010/7/8 Lee Spector > > On Jul 8, 2010, at 10:31 AM, Laurent PETIT wrote: > > What you first describe is odd. Is this a Mac particularity ? > > On Windows/Linux, Hitting Ctrl+Space_bar results in showing a popup with > all the possible completions. > > If there is only one completion that ccw is

Re: auto-indent in Counterclockwise

2010-07-08 Thread Lee Spector
On Jul 8, 2010, at 10:31 AM, Laurent PETIT wrote: > What you first describe is odd. Is this a Mac particularity ? > On Windows/Linux, Hitting Ctrl+Space_bar results in showing a popup with all > the possible completions. > If there is only one completion that ccw is aware of, then no popup is >

Re: auto-indent in Counterclockwise

2010-07-08 Thread Laurent PETIT
2010/7/8 Lee Spector > > Laurent, > > Thanks for all of the helpful replies. Just one clarification: > > On Jul 8, 2010, at 3:37 AM, Laurent PETIT wrote: > >> BTW, is there a way to get a popup menu of the options, or some other > listing of them without going through them one by one? > > > > The

Re: auto-indent in Counterclockwise

2010-07-08 Thread Lee Spector
Laurent, Thanks for all of the helpful replies. Just one clarification: On Jul 8, 2010, at 3:37 AM, Laurent PETIT wrote: >> BTW, is there a way to get a popup menu of the options, or some other >> listing of them without going through them one by one? > > There is already a "Clojure" menu and

Re: auto-indent in Counterclockwise

2010-07-08 Thread Laurent PETIT
Hi Lee, Again, thanks for a thourough and constructive feedback ! 2010/7/8 Lee Spector > > I spent a bunch of time today in CCW 0.0.59.RC2, in "default" mode, and > thought I'd report my experience: > > - Lots of very nice features and I really appreciate having this -- please > don't take my c

Re: auto-indent in Counterclockwise

2010-07-07 Thread Lee Spector
I spent a bunch of time today in CCW 0.0.59.RC2, in "default" mode, and thought I'd report my experience: - Lots of very nice features and I really appreciate having this -- please don't take my criticisms below in the wrong way! - There are some cases in which the indentation doesn't follow t

Re: auto-indent in Counterclockwise

2010-07-07 Thread Laurent PETIT
2010/7/8 Steven E. Harris > Laurent PETIT writes: > > > But to make it really clear: move-past-close-and-reindent is exactly > > what counterclockwise's is doing in "Strict" edition mode (not totally > > true concerning the reindentation, currently in ccw it is only > > reorganizing closing brac

Re: auto-indent in Counterclockwise

2010-07-07 Thread Steven E. Harris
Laurent PETIT writes: > But to make it really clear: move-past-close-and-reindent is exactly > what counterclockwise's is doing in "Strict" edition mode (not totally > true concerning the reindentation, currently in ccw it is only > reorganizing closing brackets by removing extra spaces, not > re

Re: auto-indent in Counterclockwise

2010-07-07 Thread Laurent PETIT
Steven, I did not know this page, thanks for the link. But to make it really clear: move-past-close-and-reindent is exactly what counterclockwise's is doing in "Strict" edition mode (not totally true concerning the reindentation, currently in ccw it is only reorganizing closing brackets by removin

Re: auto-indent in Counterclockwise

2010-07-06 Thread Steven E. Harris
Laurent PETIT writes: >> I think it's a good feature, *if* typing the closing bracket/paren just >> resulted in "cursoring over" the one that'd already been inserted. > > ? See the Emacs function `move-past-close-and-reindent'. It works as the obvious counterpart to the function `insert-parethes

Re: auto-indent in Counterclockwise

2010-07-06 Thread Laurent PETIT
2010/7/6 Lee Spector : > > On Jul 6, 2010, at 1:35 AM, Laurent PETIT wrote: >> >> Seems like people definitely don't like automatic closing bracket >> insertion in the default mode. Guess I'm gonna remove this from the >> default mode then, if it does more harm than anything ... > > > Will there st

Re: auto-indent in Counterclockwise

2010-07-06 Thread Lee Spector
On Jul 6, 2010, at 1:35 AM, Laurent PETIT wrote: > > Seems like people definitely don't like automatic closing bracket > insertion in the default mode. Guess I'm gonna remove this from the > default mode then, if it does more harm than anything ... Will there still be auto-indenting during typi

Re: auto-indent in Counterclockwise

2010-07-06 Thread Laurent PETIT
2010/7/6 Chas Emerick : > > On Jul 6, 2010, at 1:35 AM, Laurent PETIT wrote: > >> 2010/7/6 Sean Corfield : >>> >>> On Mon, Jul 5, 2010 at 9:24 PM, Sean Corfield >>> wrote: No, I hadn't found it painful in my brief run around with CCW over the last few days... I hadn't even noticed t

Re: auto-indent in Counterclockwise

2010-07-06 Thread Chas Emerick
On Jul 6, 2010, at 1:35 AM, Laurent PETIT wrote: 2010/7/6 Sean Corfield : On Mon, Jul 5, 2010 at 9:24 PM, Sean Corfield wrote: No, I hadn't found it painful in my brief run around with CCW over the last few days... I hadn't even noticed the defaults were different :| And I should proba

Re: auto-indent in Counterclockwise

2010-07-05 Thread Laurent PETIT
2010/7/6 Sean Corfield : > On Mon, Jul 5, 2010 at 9:24 PM, Sean Corfield wrote: >> No, I hadn't found it painful in my brief run around with CCW over the >> last few days... I hadn't even noticed the defaults were different :| > > And I should probably add that I switched over to strict mode prett

Re: auto-indent in Counterclockwise

2010-07-05 Thread Sean Corfield
On Mon, Jul 5, 2010 at 9:24 PM, Sean Corfield wrote: > No, I hadn't found it painful in my brief run around with CCW over the > last few days... I hadn't even noticed the defaults were different :| And I should probably add that I switched over to strict mode pretty much immediately and I much pr

Re: auto-indent in Counterclockwise

2010-07-05 Thread Sean Corfield
On Mon, Jul 5, 2010 at 5:05 AM, Chas Emerick wrote: > As a tangent, does anyone else find the default structural editing shortcuts > fairly painful, e.g. overriding Mac defaults for goto-end-of-line, > select-next-word, etc? No, I hadn't found it painful in my brief run around with CCW over the l

Re: auto-indent in Counterclockwise

2010-07-05 Thread Lee Spector
On Jul 5, 2010, at 4:52 PM, Laurent PETIT wrote: > Sorry if I offensed you by suggesting you didn't "get" the virtues of > homoïconicity ! I would love to hear details on what a good structure > editor (not just a semi-editor like paredit) looks like ! No offense taken. I'll see if I can find any

Re: auto-indent in Counterclockwise

2010-07-05 Thread Lee Spector
On Jul 5, 2010, at 4:49 PM, Laurent PETIT wrote: > But I could define both Tab > and Ctrl+I (the eclipse's way of reindenting, though I find it pretty > hard to use on a regular basis) for reindenting the current line. inc Are there objections to defining both to do re-indentation? Eclipse nati

Re: auto-indent in Counterclockwise

2010-07-05 Thread Laurent PETIT
OK. Concerning the specific "indent line" issue, I guess I'll finally do the following : * align the default way of re-indenting a line with the Eclipse standard, e.g. Ctrl+I on Windows/Linux (what is it for Mac ?) * this way this can be overriden by the user via the Window > Preferences > G

Re: auto-indent in Counterclockwise

2010-07-05 Thread Laurent PETIT
2010/7/5 Lee Spector : > > On Jul 4, 2010, at 6:46 PM, Laurent PETIT wrote: >> >> I guess I could make the Tab-as-indent-line behavior go back to the >> default mode, and introduce the >> Esc.-as-no-interpretation-by-the-editor-for-the-nex-keystroke . So >> people wanting to insert a real tab could

Re: auto-indent in Counterclockwise

2010-07-05 Thread Laurent PETIT
Hi Chas, 2010/7/5 Chas Emerick : > > On Jul 4, 2010, at 4:10 PM, Laurent PETIT wrote: > >>> I know talk is cheap and beggars can't be choosers, etc., but FWIW I >>> would prefer to have something close to the "default" mode but with tab (or >>> some other key) >> >> The default "reindent line" key

Re: auto-indent in Counterclockwise

2010-07-05 Thread Chas Emerick
On Jul 4, 2010, at 4:10 PM, Laurent PETIT wrote: I know talk is cheap and beggars can't be choosers, etc., but FWIW I would prefer to have something close to the "default" mode but with tab (or some other key) The default "reindent line" keyboard shortcut in Eclipse is Ctrl+I. Would this b

Re: auto-indent in Counterclockwise

2010-07-04 Thread Lee Spector
On Jul 4, 2010, at 6:46 PM, Laurent PETIT wrote: > > I guess I could make the Tab-as-indent-line behavior go back to the > default mode, and introduce the > Esc.-as-no-interpretation-by-the-editor-for-the-nex-keystroke . So > people wanting to insert a real tab could do it by first hitting the >

Re: auto-indent in Counterclockwise

2010-07-04 Thread Laurent PETIT
Hey, 2010/7/5 Lee Spector : > > On Jul 4, 2010, at 4:10 PM, Laurent PETIT wrote: >> So there are 2 possibilities: >>  a. I create an additional "configuration parameter" so that anybody >> can choose if he wants the Tab key to behave "normally" or to be bound >> to the "reindent line" feature. And

Re: auto-indent in Counterclockwise

2010-07-04 Thread Lee Spector
On Jul 4, 2010, at 4:10 PM, Laurent PETIT wrote: > So there are 2 possibilities: > a. I create an additional "configuration parameter" so that anybody > can choose if he wants the Tab key to behave "normally" or to be bound > to the "reindent line" feature. And I make this "structural editing > m

Re: auto-indent in Counterclockwise

2010-07-04 Thread Peter Schuller
> What do you think ? What do other people think ? If people want a > configuration parameter, I'll give them one. As Stuart said in another > thread: speak now or ... :) While tabs vs. spaces in the general sense can be debated, one of the nice things about Lisp is that *everyone* (more or less)

Re: auto-indent in Counterclockwise

2010-07-04 Thread Laurent PETIT
Hi again, 2010/7/4 Lee Spector : > > [I'm not sure if the Clojure list is the right place for this, or if it > should go somewhere more specific to CCW -- please let me know if it's the > latter.] There are more specific ccw-related mls, but if nobody complains, I suggest to continue this discu