goto statement

Mike Meyer mwm at mired.org
Fri Apr 22 02:11:05 EDT 2005


Grant Edwards <grante at visi.com> writes:

> On 2005-04-21, Roy Smith <roy at panix.com> wrote:
>> Grant Edwards  <grante at visi.com> wrote:
>>>Sure, but what about the case where his program is on paper
>>>tape and all he has for an editor is an ice pick?
>>
>> Can't you emulate that in emacs with M-X inclusive-or-overwrite-mode?
>
> Heck, emacs probably has a "paper-tape-mode" where it displays
> the file like this:
>
>   ooo.oooo
>   ooo.oooo
>   ooo.oooo
>   ooo.oooo
>   o o.o  o
>   o o.oo
>    oo.  oo
>   o  .oo o
>   ooo.oooo
>     o.oo
>    oo.oo o
>   o o.o oo
>   o  .ooo

I can't find it in Emacs. On the other hand:

guru% /usr/games/ppt emacs rulez!
___________
| oo  .o o|
| oo o.o o|
| oo  .  o|
| oo  . oo|
| ooo . oo|
| ooo . o |
| ooo .o o|
| oo o.o  |
| oo  .o o|
| oooo. o |
|  o  .  o|
___________
guru% 

and

guru% /usr/games/bcd vi rulez!
 ________________________________________________
/VI                                              |
| ]                                              |
|                                                |
|]                                               |
|111111111111111111111111111111111111111111111111|
|222222222222222222222222222222222222222222222222|
|333333333333333333333333333333333333333333333333|
|444444444444444444444444444444444444444444444444|
|]55555555555555555555555555555555555555555555555|
|666666666666666666666666666666666666666666666666|
|777777777777777777777777777777777777777777777777|
|888888888888888888888888888888888888888888888888|
|9]9999999999999999999999999999999999999999999999|
|________________________________________________|
 ________________________________________________
/RULEZ!                                          |
|   ]                                            |
|] ]                                             |
| ]  ]]                                          |
|111111111111111111111111111111111111111111111111|
|222222222222222222222222222222222222222222222222|
|33]333333333333333333333333333333333333333333333|
|4]4444444444444444444444444444444444444444444444|
|555]55555555555555555555555555555555555555555555|
|666666666666666666666666666666666666666666666666|
|77777]777777777777777777777777777777777777777777|
|88888]888888888888888888888888888888888888888888|
|]999]9999999999999999999999999999999999999999999|
|________________________________________________|
guru% 

and just for grins:

guru% /usr/games/morse ed rulez!
 dit
 dah dit dit

 dit dah dit
 dit dit dah
 dit dah dit dit
 dit
 dah dah dit dit
 dit dit dah dah dit

guru% 

So adding paper-tape mode to emacs shouldn't be all that hard.

      <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list