Re: Wrapping comments

2009-07-05 Thread Michael Torrie
Lawrence D'Oliveiro wrote: I tried using Emacs via SSH from a Mac once. Made me run screaming for the nearest Windows box http://groups.google.co.nz/group/comp.sys.mac.advocacy/msg/dfad8bff6942e749. Interesting rant, but the problem is with the key bindings they chose to use in Terminal.app

Re: Wrapping comments

2009-07-05 Thread Lawrence D'Oliveiro
In message mailman.2656.1246832876.8015.python-l...@python.org, Michael Torrie wrote: Lawrence D'Oliveiro wrote: I tried using Emacs via SSH from a Mac once. Made me run screaming for the nearest Windows box http://groups.google.co.nz/group/comp.sys.mac.advocacy/msg/dfad8bff6942e749.

Re: Wrapping comments

2009-05-12 Thread Lawrence D'Oliveiro
In message towb-4f1754.17464609052...@news.individual.de, Tobias Weber wrote: In article 02159679$0$20647$c3e8...@news.astraweb.com, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: Maybe in another 20 years, nobody will care about low-level details like the characters used to

Re: Wrapping comments

2009-05-12 Thread Lawrence D'Oliveiro
In message towb-63ce3d.09322210052...@news.individual.de, Tobias Weber wrote: (still not gonna use software that doesn't let me type # because it's alt+3 on a UK layout; having to re-learn or configure that is just sick) Tried typing compose-plus-plus? --

Re: Wrapping comments

2009-05-12 Thread Lawrence D'Oliveiro
In message slrnh0fqu4.qcl.n...@irishsea.home.craig-wood.com, Nick Craig- Wood wrote: Rhodri James rho...@wildebst.demon.co.uk wrote: Emacs is my editor of choice ... You probably haven't used MAC OS X then! I tried using Emacs via SSH from a Mac once. Made me run screaming for the

Re: Wrapping comments

2009-05-12 Thread Piet van Oostrum
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand (LD) wrote: LD In message slrnh0fqu4.qcl.n...@irishsea.home.craig-wood.com, Nick Craig- LD Wood wrote: Rhodri James rho...@wildebst.demon.co.uk wrote: Emacs is my editor of choice ... You probably haven't used MAC OS X then! LD I

Re: Wrapping comments

2009-05-11 Thread Nick Craig-Wood
Rhodri James rho...@wildebst.demon.co.uk wrote: On Sun, 10 May 2009 08:32:23 +0100, Tobias Weber t...@gmx.net wrote: In article m2bpq2ngup@googlemail.com, Arnaud Delobelle arno...@googlemail.com wrote: A simple Alt-Q will reformat everything nicely. Now that's something.

Re: Wrapping comments

2009-05-11 Thread norseman
Tobias Weber wrote: Hi, the guideline (PEP 8) is hard wrap to 7x characters. The reason given is that soft wrap makes code illegible. So what if you hard wrap code but let comments and docstrings soft-wrap? Otherwise it's hugely annoying to edit them. Say you remove the first three words of

Re: Wrapping comments

2009-05-11 Thread MRAB
norseman wrote: Tobias Weber wrote: Hi, the guideline (PEP 8) is hard wrap to 7x characters. The reason given is that soft wrap makes code illegible. So what if you hard wrap code but let comments and docstrings soft-wrap? Otherwise it's hugely annoying to edit them. Say you remove the

Re: Wrapping comments

2009-05-11 Thread Simon Brunning
2009/5/10 Tobias Weber t...@gmx.net: (still not gonna use software that doesn't let me type # because it's alt+3 on a UK layout; having to re-learn or configure that is just sick) To use Aquamacs with a UK keyboard, you want to select Options, Option Key, Meta British. Things just work then.

Re: Wrapping comments

2009-05-11 Thread Rhodri James
On Mon, 11 May 2009 08:39:48 +0100, Tobias Weber t...@gmx.net wrote: In article mailman.5400.1242000728.11746.python-l...@python.org, Rhodri James rho...@wildebst.demon.co.uk wrote: What on earth are you talking about? '#' has its own key on a UK layout Not on Apple keyboards, and the

Re: Wrapping comments

2009-05-11 Thread Arnaud Delobelle
Tobias Weber t...@gmx.net writes: In article mailman.5386.1241975816.11746.python-l...@python.org, David Robinow drobi...@gmail.com wrote: (define-key key-translation-map [?\M-3] #) or, if you prefer, just be sick. Thanks, but I don't believe using releases from people who think I

Re: Wrapping comments

2009-05-10 Thread Steven D'Aprano
On Sun, 10 May 2009 13:41:15 +1200, Lawrence D'Oliveiro wrote: If I had to print out all the code and documentation I have to look at, I'd need to add another room to my house. You are allowed to throw it away when you're done with it :) -- Steven --

Re: Wrapping comments

2009-05-10 Thread Scott David Daniels
Steven D'Aprano wrote: On Sun, 10 May 2009 13:41:15 +1200, Lawrence D'Oliveiro wrote: If I had to print out all the code and documentation I have to look at, I'd need to add another room to my house. You are allowed to throw it away when you're done with it :) Except here in Portland, where

Re: Wrapping comments

2009-05-10 Thread David Robinow
On Sun, May 10, 2009 at 3:32 AM, Tobias Weber t...@gmx.net wrote: In article m2bpq2ngup@googlemail.com,  Arnaud Delobelle arno...@googlemail.com wrote: A simple Alt-Q will reformat everything nicely. Now that's something. Thanks! (still not gonna use software that doesn't let me type #

Re: Wrapping comments

2009-05-10 Thread Rhodri James
On Sun, 10 May 2009 08:32:23 +0100, Tobias Weber t...@gmx.net wrote: In article m2bpq2ngup@googlemail.com, Arnaud Delobelle arno...@googlemail.com wrote: A simple Alt-Q will reformat everything nicely. Now that's something. Thanks! (still not gonna use software that doesn't let me

Re: Wrapping comments

2009-05-09 Thread Ben Finney
Tobias Weber t...@gmx.net writes: Or are there editors that can do a soft hard wrap while keeping indentation and #comment markers intact? Yes. Both Emacs and Vim will do exactly this when re-wrapping a paragraph of commented lines, provided they have support for the language's comment syntax

Re: Wrapping comments

2009-05-09 Thread Steven D'Aprano
about inserting hard/soft *characters*. He asked about *actions*: hard-wrapping code and soft-wrapping comments. He does that (presumably) by inserting newline characters in code where he wants to force a new line, and telling his editor to wrap comments according to the editor's own algorithm

Re: Wrapping comments

2009-05-09 Thread Arnaud Delobelle
Tobias Weber t...@gmx.net writes: In article k8ydnapzmfvqepjxnz2dnuvz_gqdn...@pdx.net, Scott David Daniels scott.dani...@acm.org wrote: At least vim and emacs can do so. Just tried Aquamacs. Using the defaults it correctly re-wraped docstrings using newlines when inserting, but not when

Re: Wrapping comments

2009-05-09 Thread Ben Finney
Tobias Weber t...@gmx.net writes: In article 87zldmcod8@benfinney.id.au, Ben Finney ben+pyt...@benfinney.id.au wrote: Yes. Both Emacs and Vim will do exactly this when re-wrapping a Thought so. And editors without a learning curve? A text editor that will be useful in all of your

Re: Wrapping comments

2009-05-09 Thread Lawrence D'Oliveiro
In message towb-ea7906.14423909052...@news.individual.de, Tobias Weber wrote: the guideline (PEP 8) is hard wrap to 7x characters. Nowadays I set my maximum line lengths, and the widths of my terminal windows to 100 characters. And I'm wondering whether or not to go wider still. After all,

Re: Wrapping comments

2009-05-09 Thread Scott David Daniels
Lawrence D'Oliveiro wrote: In message towb-ea7906.14423909052...@news.individual.de, Tobias Weber wrote: the guideline (PEP 8) is hard wrap to 7x characters. Nowadays I set my maximum line lengths, and the widths of my terminal windows to 100 characters. And I'm wondering whether or not to

Re: Wrapping comments

2009-05-09 Thread Lawrence D'Oliveiro
In message vasdncdmgoq_gzvxnz2dnuvz_vqdn...@pdx.net, Scott David Daniels wrote: Lawrence D'Oliveiro wrote: In message towb-ea7906.14423909052...@news.individual.de, Tobias Weber wrote: the guideline (PEP 8) is hard wrap to 7x characters. Nowadays I set my maximum line lengths, and the

Re: Wrapping comments

2009-05-09 Thread Lawrence D'Oliveiro
In message gu5bbr$1u...@lust.ihug.co.nz, Lawrence D'Oliveiro wrote: In message vasdncdmgoq_gzvxnz2dnuvz_vqdn...@pdx.net, Scott David Daniels wrote: Lawrence D'Oliveiro wrote: In message towb-ea7906.14423909052...@news.individual.de, Tobias Weber wrote: the guideline (PEP 8) is hard

Re: Wrapping comments

2009-05-09 Thread Scott David Daniels
Tobias Weber wrote: the guideline (PEP 8) is hard wrap to 7x characters. The reason given is that soft wrap makes code illegible. So what if you hard wrap code but let comments and docstrings soft-wrap? You apparently have caught the soft-/hard- disease spread by several software retailers.

Re: Wrapping comments

2009-05-09 Thread Grant Edwards
On 2009-05-10, Scott David Daniels scott.dani...@acm.org wrote: Nowadays I set my maximum line lengths, and the widths of my terminal windows to 100 characters. And I'm wondering whether or not to go wider still. After all, the screens can take it. But the printers cannot. Printers? The