sam-fans - fans of the sam editor
 help / color / mirror / Atom feed
* Re: the obvious. =) (to everyone but kim)
@ 2000-03-31  1:12 kim kubik
  0 siblings, 0 replies; 2+ messages in thread
From: kim kubik @ 2000-03-31  1:12 UTC (permalink / raw)
  To: kim kubik, jim.robinson, sam Fans

-----Original Message-----
From: James A. Robinson <jim.robinson@stanford.edu>
To: kim kubik <chaotrope@jps.net>
Date: Monday, March 27, 2000 2:55 PM
Subject: Re: the obvious. =) (to everyone but kim) 
      
       (kim wrote):
>> PS: Jim I also have a number of SREs that walk through a file and
>>     delete those little copywrite notices and things like that which
>>     you Elsevier people seem to be so keen on including.     :-)

  (and Jim replied):
> Elsevier??? What gave you the idea I was an Elsevier person?
> I work for HighWire Press, Elsevier is the antithesis of us.
>
> Jim

Ooops, guess I stuck my foot in it again! Sorry if there are
any implications I'm unaware of vis-a-vis Highwire & Elsevier,
like maybe Elsevier publishes only to the pederast trade,
while Highwire has loftier aspirations.

On a safer topic the re you gave for <b>bolding</b> dot in an
html file just needed a  tiny addition to work in (I think, a
dubious activity at best and not equating to 'I am') that

    s/(.+\n*)*/<b>&<\/b>/

will surround any amount of backhilited text with <b>...</b>,
not just text on one line, and the text may include blank lines.

So thank you and sorry about the faux pas.

- kim




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

* Re: the obvious. =) (to everyone but kim)
@ 2000-03-27 22:39 kim kubik
  0 siblings, 0 replies; 2+ messages in thread
From: kim kubik @ 2000-03-27 22:39 UTC (permalink / raw)
  To: jim.robinson, sam Fans


-----Original Message-----
From: James A. Robinson <jim.robinson@stanford.edu>
To: sam Fans <sam-fans@hawkwind.utcs.toronto.edu>
Date: Sunday, March 26, 2000 9:45 PM
Subject: Re: the obvious. =)

J.A.R. wrote:
>one of the things I thought about doing was writing a set of guide
>files for sam.  It's really too bad one can't have a real acme clone
>(with the same neat file handling) with a sam command window! =)
>
that's sort of what gave me the idea of these sam "macro" files,
the acme/wily guide files. I just put the oft-used command sequences
in a little window about the shape of a vertical Hershey candy bar
off to the right and then snarf what I need.

>> # BOLD FACE DOT:
>> [s/./<b>&/
>>  a/<\/b>/ ]

>Since you have dot selected, why not just [s/.+/<b>&<\/b>/]?
>
I *think* that the above will work on text in one line ONLY.
My memory is that I tried a number of convoluted SREs (well, the
number I could come up with is still a small integer) and finally
had to settle on the a/<\/b> as being necessary if I wanted to
backhilite any arbitrary section of possibly multi-line text
which could possibly include multi \n\n+ 's.

>Is there any vi influance here (zz)? =)  I'm wondering if you really
>enter most of your text via the command window? I'd find it hard to go
>back and hunt down previous commands from the scroll-back.

Like I said originally, old habits die hard; I still shove the mouse
cursor into the text window, click and start typing, but I really really
try to do it in the sam window. And yes, every once in a while I
need to telnet to a Unix system and so have to remember some vi, but
the zz idea actually came from a much older editor, called creatively
EDIT, described in Software-P&E (1971)v1, p73-81, the author being a
guy at Cambridge (UK) name of S.R. Bourne, before he came across the
pond to play with that other OS.

EDIT used a lone z to get out of text entry mode and enter command
mode and had a cute way of walking thru the whole file, executing
commands if you prefaced the command sequence with a 0 (similar to
sam's , ). Being almost thirty years ago, one had to give a small
line number range at startup which would be kept in core and edited;
the rest of the file remained unaltered on disc. Over the years the
editor got altered by various people including maybe Chris Fraser.


While EDIT did't have re's, Marting Richards did publish an algorithm
"strongly influenced by ... Thompson" (S-P&E (1979)v9,p527-534) later
on (a student onced described Richards as the dullest lecturer he had
in his whole time at Cambridge).

Anyhow, I hope some of this helps someone.

 - kim

PS: Jim I also have a number of SREs that walk through a file and
    delete those little copywrite notices and things like that which
    you Elsevier people seem to be so keen on including.        :-)



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

end of thread, other threads:[~2000-04-03 22:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-31  1:12 the obvious. =) (to everyone but kim) kim kubik
  -- strict thread matches above, loose matches on Subject: below --
2000-03-27 22:39 kim kubik

sam-fans - fans of the sam editor

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/sam-fans

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 sam-fans sam-fans/ http://inbox.vuxu.org/sam-fans \
		sam-fans@hawkwind.utcs.toronto.edu
	public-inbox-index sam-fans

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.sam-fans


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git