sam-fans - fans of the sam editor
 help / color / mirror / Atom feed
* Re: Applying old samx patch to newer sam?
@ 2000-03-23 17:03 Paul Jackson
  2000-03-24 12:32 ` Ed Kubaitis
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Jackson @ 2000-03-23 17:03 UTC (permalink / raw)
  To: Bengt Kleberg; +Cc: sam-fans

Bengt wrote:
|> Please note that I am trying to 'maintain' sam-9libs.

Thank-you and bless you!

|> I rather not include this [samx] in sam-9libs.

That's fine - I wasn't expecting sam-9libs to accomodate
samx.  I acknowledge that samx is "controversial".

I should have been clearer that I was more looking
for feedback from other samx users as to  whether
I should worry about the failed chunk of the patch.

|> 1 sam is supposed to be mouse driven, not keyboard driven.

It is common-place for the finest tools to be written
with a focused vision, and then for users to turn around
and do the darndest things with them.  Life is good.


=======================================================================
I won't rest till it's the best ...	   Software Production Engineer
Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj


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

* Re: Applying old samx patch to newer sam?
  2000-03-23 17:03 Applying old samx patch to newer sam? Paul Jackson
@ 2000-03-24 12:32 ` Ed Kubaitis
  0 siblings, 0 replies; 4+ messages in thread
From: Ed Kubaitis @ 2000-03-24 12:32 UTC (permalink / raw)
  To: sam-fans

Hi,

AFAIK, the failed pieces in the samx patch can be ignored. As
I recollect, the failed pieces were applying changes which the
new (circa 1993) libXg provided in a different way/place. I've
been using versions of sam + samx patch since then, building it
most recently a few months ago for Redhat Linux 6.1 and have not
seen any problems.

Ed
--------------------------
Ed Kubaitis (ejk@uiuc.edu)
CCSO - University of Illinois - Urbana-Champaign


Paul Jackson wrote:
> 
> Bengt wrote:
> |> Please note that I am trying to 'maintain' sam-9libs.
> 
> Thank-you and bless you!
> 
> |> I rather not include this [samx] in sam-9libs.
> 
> That's fine - I wasn't expecting sam-9libs to accomodate
> samx.  I acknowledge that samx is "controversial".
> 
> I should have been clearer that I was more looking
> for feedback from other samx users as to  whether
> I should worry about the failed chunk of the patch.
> 
> |> 1 sam is supposed to be mouse driven, not keyboard driven.
> 
> It is common-place for the finest tools to be written
> with a focused vision, and then for users to turn around
> and do the darndest things with them.  Life is good.
> 
> =======================================================================
> I won't rest till it's the best ...        Software Production Engineer
> Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj


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

* Re: Applying old samx patch to newer sam?
@ 2000-03-23 10:26 Bengt Kleberg
  0 siblings, 0 replies; 4+ messages in thread
From: Bengt Kleberg @ 2000-03-23 10:26 UTC (permalink / raw)
  To: pj, sam-fans

Greetings,

Please note that I am trying to 'maintain' sam-9libs. So if I seem reluctant to make
any changes it could be plain lazyness :-)

ANyway, samx was news to me. I think (afer having read the man page and so for a short while)
that I rahter not include this in sam-9libs.

1 sam is supposed to be mouse driven, not keyboard driven.
2 auto placing of windows is something that acme/wily does (and I think they are better at
	user interfaceing than sam anyway)
3 auto indent, see 2
4 the perl scripts would be nice to include though. 


Best Wishes, Bengt
===============================================================
Everything aforementioned should be regarded as totally private
opinions, and nothing else. bengt@softwell.se
``His great strength is that he is uncompromising. It would make
him physically ill to think of programming in C++.''


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

* Applying old samx patch to newer sam?
@ 2000-03-23  3:30 Paul Jackson
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Jackson @ 2000-03-23  3:30 UTC (permalink / raw)
  To: sam-fans

Summary:

    The only samx patch I could find was old, and didn't entirely
    apply to the latest sam code.  But it (the samkey features)
    seem to work.  Should I worry?  Is there a more recent
    samx patch?

Background:

    I've just stumbled onto sam and samx, while casting about for
    a 'decent' editor for use on Linux, Irix and occassionally
    Windows.

    For the last few years, I had used 'ed' for global work,
    and Rick Davis' jot (aka zip) for mouse work.  But jot only
    runs on Irix, and now I am working more with Linux.  So
    off to look for another editor.

    Thanks especially to all who have contributed to this email
    list over the years -- the ~500 messages in the archives
    were very useful in getting up to speed quickly.
    
    Sam and samx are great - I am glad I found them.

Details:

    The only samx patches I could find were:
    
	Samx Version 2: Extensions to the Unix/X11 Sam Editor
	-----------------------------------------------------
	Ed Kubaitis (ejk@uiuc.edu)
	17 April 1993
    
    from:

	ftp://ftp.funet.fi/pub/unix/editors/sam/samx2/

    I've managed to apply these patches to the most recent sam
    that I could find, circa April 1999, under:

	ftp://ftp.demon.co.uk/pub/unix/plan9/sam-9libs.*

    and the result seems to work, after a little futzing around,
    _except_ that the following piece of the patch seems to be
    quite inapplicable.

    The old samx patch would change the file strwidth.c thusly:
    
	***************
	*** 13,18 ****
		l = 0;
		n = f->n;
		info = f->info;
		if(s)
			while(c = *s++)
				if(c < n)
	--- 13,28 ----
		l = 0;
		n = f->n;
		info = f->info;
	+       if (Keydefs && s) {
	+               while (*s) {
	+                       unsigned short r;
	+                       s += chartorune(&r, s);
	+                       if (r >= n || info[r].width == 0)
	+                               r = 0x7e;
	+                       l += info[r].width;
	+               }
	+               return Pt(l,f->height);
	+       }
		if(s)
			while(c = *s++)
				if(c < n)

Should I worry that I could find no place resembling the above
location to add this code?


=======================================================================
I won't rest till it's the best ...	   Software Production Engineer
Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj


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

end of thread, other threads:[~2000-03-25  6:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-23 17:03 Applying old samx patch to newer sam? Paul Jackson
2000-03-24 12:32 ` Ed Kubaitis
  -- strict thread matches above, loose matches on Subject: below --
2000-03-23 10:26 Bengt Kleberg
2000-03-23  3:30 Paul Jackson

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).