9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] python indent acme proportional fonts ah joy
@ 2007-01-05 14:15 mattmobile
  2007-01-05 14:32 ` Brantley Coile
  0 siblings, 1 reply; 12+ messages in thread
From: mattmobile @ 2007-01-05 14:15 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

You could edit the font file to have visible spaces & tabs.

I always indent with tabs, that way one tab corresponds with one indent. Anything else needs an excuse.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] python indent acme proportional fonts ah joy
  2007-01-05 14:15 [9fans] python indent acme proportional fonts ah joy mattmobile
@ 2007-01-05 14:32 ` Brantley Coile
  0 siblings, 0 replies; 12+ messages in thread
From: Brantley Coile @ 2007-01-05 14:32 UTC (permalink / raw)
  To: mattmobile, 9fans

> You could edit the font file to have visible spaces & tabs.

Is this the first purposal for `dark-space.' :)



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] python indent acme proportional fonts ah joy
  2007-01-05 17:44       ` geoff
  2007-01-05 17:52         ` Paul Lalonde
@ 2007-01-05 17:54         ` Gorka guardiola
  1 sibling, 0 replies; 12+ messages in thread
From: Gorka guardiola @ 2007-01-05 17:54 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 1/5/07, geoff@plan9.bell-labs.com <geoff@plan9.bell-labs.com> wrote:
> I believe the intent was to force indentation to match block
> structure, in reaction to badly-formatted code in other languages.
>

The way to hell is paved with good intentions :-). Anyway, at least they
should have chosen tabs OR spaces. I agree in indenting right, but
syntax should be visible.


--
- curiosity sKilled the cat


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] python indent acme proportional fonts ah joy
  2007-01-05 17:44       ` geoff
@ 2007-01-05 17:52         ` Paul Lalonde
  2007-01-05 17:54         ` Gorka guardiola
  1 sibling, 0 replies; 12+ messages in thread
From: Paul Lalonde @ 2007-01-05 17:52 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It certainly is reactionary.
"Hateful in the eyes of God" is how I've come to see it.

On 5-Jan-07, at 9:44 AM, geoff@plan9.bell-labs.com wrote:

> I believe the intent was to force indentation to match block
> structure, in reaction to badly-formatted code in other languages.
>

- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFFnpAypJeHo/Fbu1wRAol7AJ95r0JwEFfKK2YrJopkBk1foauVqACfVHou
ysP1fnE5OgC0gj+psET++z4=
=8dtu
- -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFFnpBFpJeHo/Fbu1wRAoCLAJ9VopepIB4qQh5sFHUmn7KpCuviHwCbBE7x
Z2U/3p+lQoqzUqyXbNQi2k4=
=Qds1
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] python indent acme proportional fonts ah joy
  2007-01-05 14:30     ` Brantley Coile
@ 2007-01-05 17:44       ` geoff
  2007-01-05 17:52         ` Paul Lalonde
  2007-01-05 17:54         ` Gorka guardiola
  0 siblings, 2 replies; 12+ messages in thread
From: geoff @ 2007-01-05 17:44 UTC (permalink / raw)
  To: 9fans

I believe the intent was to force indentation to match block
structure, in reaction to badly-formatted code in other languages.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] python indent acme proportional fonts ah joy
  2007-01-05 10:56   ` Darrell Stitt
@ 2007-01-05 14:30     ` Brantley Coile
  2007-01-05 17:44       ` geoff
  0 siblings, 1 reply; 12+ messages in thread
From: Brantley Coile @ 2007-01-05 14:30 UTC (permalink / raw)
  To: 9fans

I use /lib/font/bit/pelm/unicode.8.font for -f and -F.

What retrograde reasoning led to abandoning free form input
to a parser.

(That's not meant to be demeaning to thee Python folks, but
what else can you call being column aware in a parser but
retrograde.)



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] python indent acme proportional fonts ah joy
  2007-01-05 10:42 ` Gorka guardiola
@ 2007-01-05 10:56   ` Darrell Stitt
  2007-01-05 14:30     ` Brantley Coile
  0 siblings, 1 reply; 12+ messages in thread
From: Darrell Stitt @ 2007-01-05 10:56 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

mixing tabs and spaces is kind of like hitting your head against the 
wall: causes unnecessary headaches.

the solution? don't do that.

You either chase semicolons and {} in C or just make the whitespace neat 
in python.

Gorka guardiola wrote:
> ¿Isn't cut & paste fun in python?, specially if you have half of the
> files with code
> indented with tabs and the other half with spaces like the Xen stuff did
> the last time I looked into it. Invisible syntax rocks!!.
> 
> 
> On 1/5/07, ron minnich <rminnich@gmail.com> wrote:
>> reminiscent of the 'free your mind Luke' discussion a few years ago on
>> indents in code and Acme and fonts and  ...
>>
>> I'm finding that I am counting spaces in acme when I get the
>> occasional python 'unindent' error. You may think those columns are
>> aligned, but that's just the proportional font showing.
>>
>> Guess I gotta find a fixed font for editing in acme.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] python indent acme proportional fonts ah joy
  2007-01-05  3:41 ron minnich
  2007-01-05  5:26 ` Russ Cox
  2007-01-05  6:44 ` Skip Tavakkolian
@ 2007-01-05 10:42 ` Gorka guardiola
  2007-01-05 10:56   ` Darrell Stitt
  2 siblings, 1 reply; 12+ messages in thread
From: Gorka guardiola @ 2007-01-05 10:42 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

¿Isn't cut & paste fun in python?, specially if you have half of the
files with code
indented with tabs and the other half with spaces like the Xen stuff did
the last time I looked into it. Invisible syntax rocks!!.


On 1/5/07, ron minnich <rminnich@gmail.com> wrote:
> reminiscent of the 'free your mind Luke' discussion a few years ago on
> indents in code and Acme and fonts and  ...
>
> I'm finding that I am counting spaces in acme when I get the
> occasional python 'unindent' error. You may think those columns are
> aligned, but that's just the proportional font showing.
>
> Guess I gotta find a fixed font for editing in acme.
-- 
- curiosity sKilled the cat


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] python indent acme proportional fonts ah joy
  2007-01-05  6:44 ` Skip Tavakkolian
@ 2007-01-05  6:59   ` Bruce Ellis
  0 siblings, 0 replies; 12+ messages in thread
From: Bruce Ellis @ 2007-01-05  6:59 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

i certainly hope it does.  otherwise they have to make up another
reason for such insanity.

brucee

On 1/5/07, Skip Tavakkolian <9nut@9netics.com> wrote:
> > I'm finding that I am counting spaces in acme when I get the
> > occasional python 'unindent' error.
>
> does python require a character in the 6th column for line
> continuation?  perhaps somebody could write ratpy (by analogy to
> ratfor) to work around these limitations.
>
>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] python indent acme proportional fonts ah joy
  2007-01-05  3:41 ron minnich
  2007-01-05  5:26 ` Russ Cox
@ 2007-01-05  6:44 ` Skip Tavakkolian
  2007-01-05  6:59   ` Bruce Ellis
  2007-01-05 10:42 ` Gorka guardiola
  2 siblings, 1 reply; 12+ messages in thread
From: Skip Tavakkolian @ 2007-01-05  6:44 UTC (permalink / raw)
  To: 9fans

> I'm finding that I am counting spaces in acme when I get the
> occasional python 'unindent' error.

does python require a character in the 6th column for line
continuation?  perhaps somebody could write ratpy (by analogy to
ratfor) to work around these limitations.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] python indent acme proportional fonts ah joy
  2007-01-05  3:41 ron minnich
@ 2007-01-05  5:26 ` Russ Cox
  2007-01-05  6:44 ` Skip Tavakkolian
  2007-01-05 10:42 ` Gorka guardiola
  2 siblings, 0 replies; 12+ messages in thread
From: Russ Cox @ 2007-01-05  5:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> reminiscent of the 'free your mind Luke' discussion a few years ago on
> indents in code and Acme and fonts and  ...
>
> I'm finding that I am counting spaces in acme when I get the
> occasional python 'unindent' error. You may think those columns are
> aligned, but that's just the proportional font showing.
>
> Guess I gotta find a fixed font for editing in acme.

You can toggle a window into and out of fixed width mode
by typing Font in the tag and then executing it (middle click).

Also, as long as the lines only contain leading spaces you should see
alignment the same in the variable-width font -- the width of a space
is still constant. It is just a smaller constant in the variable-width font,
so sometimes it is hard to see whether you are looking at six spaces or seven.

Also, try acme -a.  It really helps in cases like these.
It takes about a day to get used to, but then you won't go anywhere without it.

Russ


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [9fans] python indent acme proportional fonts ah joy
@ 2007-01-05  3:41 ron minnich
  2007-01-05  5:26 ` Russ Cox
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: ron minnich @ 2007-01-05  3:41 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

reminiscent of the 'free your mind Luke' discussion a few years ago on
indents in code and Acme and fonts and  ...

I'm finding that I am counting spaces in acme when I get the
occasional python 'unindent' error. You may think those columns are
aligned, but that's just the proportional font showing.

Guess I gotta find a fixed font for editing in acme.

:-=)

ron


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-01-05 17:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-05 14:15 [9fans] python indent acme proportional fonts ah joy mattmobile
2007-01-05 14:32 ` Brantley Coile
  -- strict thread matches above, loose matches on Subject: below --
2007-01-05  3:41 ron minnich
2007-01-05  5:26 ` Russ Cox
2007-01-05  6:44 ` Skip Tavakkolian
2007-01-05  6:59   ` Bruce Ellis
2007-01-05 10:42 ` Gorka guardiola
2007-01-05 10:56   ` Darrell Stitt
2007-01-05 14:30     ` Brantley Coile
2007-01-05 17:44       ` geoff
2007-01-05 17:52         ` Paul Lalonde
2007-01-05 17:54         ` Gorka guardiola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).