9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Sam Rewrite (Was: SAM snarf with X)
@ 2005-10-08 12:44 yard-ape
  2005-10-08 13:01 ` Uriel
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: yard-ape @ 2005-10-08 12:44 UTC (permalink / raw)
  To: 9fans

(Just read that comp.os.plan9 isn't working, so I'm reposting here on 9fans.)

> would it be utter sacrilege and or a complete waste of time
> to add some acme features to samterm like:
> 
> 1. sharing the snarf buffer with the window system.
> 2. cording
> 
> i've been thinking about this for a while, but haven't gotten
> to it.

If we're going to talk sacrilige, how about a complete rewrite for a more conventional window managment setting?  (This should probably continue, if at all, on comp.editors, where I've also posted it.)

Sort-of-seriously, Sam's clothing is starting to wear a bit.  Acme might make most of that irrelevant for most Plan 9 users; but those of us using X11 *and* devoted to sam notice the aged (and alien) artifacts alot more.  And that's a shame, because with a smart window manager, a good terminal program, and some p9p tools, a pared-down, X-conscientious sam would be wonderful:

    1) X-conscientious-Sam doesn't need its own
       window system (with mux policies); the
       window manager can all do this (allowing
       point-to-type, and whatever else).
    2) "1)" means that more than half of the mouse
       menu items are shed, allowing for more
       responsive cut/paste behaviour (such as
       Acme's, or the conventional Athena/XTerm
       behaviour).
    3) Mouse is (gasp!) configurable---via Xrdb
       if nothing else.  This would cut down
       on news traffic about mouse behaviour.
       And Xclipboard would be a neat external
       mouse-based snarf-buffer array solution.
    4) The unshared snarf buffer issue is gone.
    5) The select-while-scrolling problem is solved
       (perhaps, again, with the simple Athena/XTerm
       select mechanism).
    6) Redo!

I should add that I don't know what I'm talking about; I've never written an a whole X client before.  But some of you have.  How hard could it be!

-Derek



^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [9fans] Sam Rewrite (Was: SAM snarf with X)
@ 2005-10-09  9:50 yard-ape
  0 siblings, 0 replies; 11+ messages in thread
From: yard-ape @ 2005-10-09  9:50 UTC (permalink / raw)
  To: 9fans

Thanks for all the feedback, everyone, and I'm following up on all your leads.

-Derek


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [9fans] Sam Rewrite (Was: SAM snarf with X)
@ 2005-10-09  9:53 yard-ape
  2005-10-09 15:41 ` Russ Cox
  0 siblings, 1 reply; 11+ messages in thread
From: yard-ape @ 2005-10-09  9:53 UTC (permalink / raw)
  To: 9fans

Russ Cox wrote:

> The die hard sam users would disagree vehemently with you.
> The nice thing about sam is that it's one window, not many,
> making it comfortable to edit a 30-file project without getting
> caught up in managing windows.

Alright, but I'm not sure I get it.  Can you give an example?  I imagine Acme can boast a single, absolute UI policy only because it's a more general tool; sam(term) is just an editor, and so is always being used inside another UI setting---even if it's rio.  Rob apparently designed the behaviour for consistency with it's original setting, but woudn't it be simpler if it was determined automatically by its setting?  From "The Text Editor Sam":

	"...the most obvious [problem] is that it is poorly integrated
	into the surrounding window system. By design, the user interface
	in sam feels almost identical to that of mux, but a thick wall
	separates text in sam from the programs running in mux."

>>    3) Mouse is (gasp!) configurable...
> 
> If you want xemacs, you know where to find it.

Ouch!

> I'm not sure I want to know what this really means, but
> "simple Athena/XTerm" sure sounds like an oxymoron to me.

Granted.  *Old* Athena/XTerm, then: set dot with button one click, scroll, extend dot with button three click.

>> uh, i really don't think that you need to be this radical. i've got
>> some code that allows 9term to scroll-select. they're based on
>> basically the same "struct Text", so i think it's doable.

Thanks, I'll check that out.

>>    6) Redo!
> 
> This is already implemented.

Ah!---Seems my $MANPATH has been pointing to an obsolete sam.1!  This is a very nice surprise.

(Not sure who posted this bit):

> i would like to unshare the buffer; but i'm not intersted
> in offending. perhaps this could be switched either via
> command line or menu option.

I've thought the command line switch would be nice, too.

Thanks again,

Derek


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

end of thread, other threads:[~2005-10-09 15:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-08 12:44 [9fans] Sam Rewrite (Was: SAM snarf with X) yard-ape
2005-10-08 13:01 ` Uriel
2005-10-08 15:17 ` Steve Simon
2005-10-08 15:45 ` Russ Cox
2005-10-08 15:51   ` Charles Forsyth
2005-10-08 17:46   ` erik quanstrom
2005-10-09  0:11     ` Russ Cox
2005-10-08 18:02   ` erik quanstrom
2005-10-09  9:50 yard-ape
2005-10-09  9:53 yard-ape
2005-10-09 15:41 ` Russ Cox

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