Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!uakari.primate.wisc.edu!crdgw1!barnett From: barnett@grymoire.crd.ge.com (Bruce Barnett) Newsgroups: comp.windows.open-look Subject: Re: Mailtool line wrap Message-ID: Date: 1 Mar 91 15:30:22 GMT References: <4x8v6x3@openlook.Unify.Com> <1529@richsun.cpg.trs.reuter.com> <1991Feb28.110513.6820@hellgate.utah.edu> Sender: news@crdgw1.crd.ge.com Reply-To: barnett@crdgw1.ge.com Organization: GE Corp. R & D, Schenectady, NY Lines: 49 In-reply-to: thompson@cs.utah.edu's message of 28 Feb 91 18:05:13 GMT In article <1991Feb28.110513.6820@hellgate.utah.edu> thompson@cs.utah.edu (William Thompson) writes: > Sun REALLY needs to provide a better way to do this. I don't at all like > having my view of a file in a Text Subwindow different than the actual > format for the text, and I shouldn't have to take special action to put the > two into conformance. Open Look needs a wrap option in Text Subwindows > that affects both the display and the underlying text. This can cause a lot of problems. There are times when it is very convenient to cut and paste between two different windows, and the line length remains the same. You can resize the window width, and redisplay the text at the new size. I am not sure how this can be done so that it always does what you want. I don't want the windows to change the formatting of the lines if I am cutting and pasting shell scripts. There are actually four different ways to solve the problem with mailtool, using current software: 1) Use the .text_extras_menu choice fmt. Select the text you want formated, and choose the menu item 2) You should be able to do the same thing by binding a function key to this function. Add the following to your .textswrc file: KEY_RIGHT(4) FILTER fmt Select the text and press the function key. 3) You could drag and drop. Get the catcher program. You can set up a catcher tool that allows you to drag text over to it, and it will format your text. Then drag it back. I started work on one that would optionally remove the indentation, reformat text, and add the indentation (or '> ') back to the text. 4) To do this automatically - which I do not recommend, you can set the variable "sendmail" in your .mailrc file to pipe all mail through a special command. This could be a script that would run fmt, and then call sendmail with the proper options. I don't think #4 is a good idea, because it could mung up programs bad. Cheers. -- Bruce G. Barnett barnett@crd.ge.com uunet!crdgw1!barnett