Subject: Howto prevent justify operation when pasting with mouse in pine/pico?

From: Michael Schmitt <[email-masked]>
Date: Sun, 14 May 2000 00:06:01 -0700 (PDT)

Hi,
 
I just want to get my X Windows mouse copy-an-paste buffer to be put
_as_is_ in the mail composer, i.e. pico. it always performs this damned
implicit justify operation right after i click the middle mouse button.

how can i turn this off? 

(using 'pine -w' as alternate non-wrapping editor doesn't work...and
i just can't find a switch to toggle justify behavior or prevent
justify - right now i'm using emacs as alternative editor anytime i
want to copy-and-post something in a composed email == annoying)

thanks, michael

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Satya <[email-masked]>
Date: Sun, 14 May 2000 14:04:13 +0530 (IST)

>(using 'pine -w' as alternate non-wrapping editor doesn't work...and

pico -w works.

>want to copy-and-post something in a composed email == annoying)

Ah. Well, then, you may not want to do it with pico.

--
Satya. http://satya.virtualave.net/
FREE! Email reminder service at http://satyaonline.cjb.net/rem.html
US-bound grad students! For pre-apps, see http://quickapps.cjb.net/
All programmers are optimists.

---

From: Michael Schmitt <[email-masked]>
Date: Sun, 14 May 2000 18:15:17 -0700 (PDT)

> >(using 'pine -w' as alternate non-wrapping editor doesn't work...and

let me rephrase that: 'pico -w' works for non-wrapping while
typing...but not for non-justifying/wrapping when pasting. try it.

> Ah. Well, then, you may not want to do it with pico.

great. my point was that this is annoying to always have to go to the
alternate editor explicitly when i want to paste something in an email
...and setting the config switch "enable-alternate-editor-implicitly"
doesn't work properly for me (tried that with emacs, everytime i
save&quit an emacs composition it doesn't return to pine but opens
another emacs...btw, i'm using pine v4.21 on solaris and linux)

so, to make my question more general: is there any _convenient_ way to
do proper middle-mousebutton-pasting with pine??

thanks for any help, michael

---

From: "Jacob Morzinski" <[email-masked]>
Date: Sun, 14 May 2000 21:52:05 EDT

>typing...but not for non-justifying/wrapping when pasting. try it.
[...]
>another emacs...btw, i'm using pine v4.21 on solaris and linux)

I'm surprised, because when I run "pico -w" on linux or netbsd or
irix or solaris, I am able to paste the line:

/var/tmp/jmorzins/todo/tcl8.3.1/unix/configure --prefix=/var/tmp/jmorzins/tcl --exec-prefix=/var/tmp/jmorzins/tcl/arch/$ATHENA_SYS --enable-gcc

in to the editor without suffering any word wrapping.  I'm using the
pico that came with pine4.21, which is pico version 3.7.  I can paste
either in the version that I compiled myself, or in the binary version
that I download from the distrubution site.
   ftp://ftp.cac.washington.edu/pine/unix-bin/pico-bin.solaris

(I simply downloaded it, chmod'd it to 755, and ran ./pico-bin.solaris -w)

-- 
 Jacob Morzinski                                [email-masked]

---

From: Michael Schmitt <[email-masked]>
Date: Sun, 14 May 2000 19:19:38 -0700 (PDT)

> /var/tmp/jmorzins/todo/tcl8.3.1/unix/configure --prefix=/var/tmp/jmorzins/tcl --exec-prefix=/var/tmp/jmorzins/tcl/arch/$ATHENA_SYS --enable-gcc

yes, you're right. however, this only works if you just paste one line -
then 'pico -w' turns off auto-wrapping like it's supposed to.

but if you try to paste mulitple lines (e.g., my .sig below) it performs
this damned justify operation no matter if 'pico' or 'pico -w'.

i kind of vaguely remember that (much) older versions of pico/pine
didn't do this annoying thing to me...

Michael

-- 
Michael Schmitt                | tel: 1-805-893-8981 / fax: -8553
Department of Computer Science | http://www.cs.ucsb.edu/~schmittm
Engineering I #2116 (PSL Lab)  | "It's a little-known fact that
University of California       |  the Y1K problem caused the Dark
Santa Barbara, CA 93106        |  Ages"

---

From: Martijn Vernooy <[email-masked]>
Date: Wed, 17 May 2000 11:54:25 +0200 (CEST)

> implicit justify operation right after i click the middle mouse button.
Perhaps you can try choosing setup and disabling the
'enable-mouse-in-xterm' thing? Cutting and pasting will work just as in
every xterm then. You can't click on the buttons on the bottom of the
screen anymore though.

Martijn Vernooij

---

From: Joe Pruett <[email-masked]>
Date: Sat, 20 May 2000 14:11:18 -0700 (PDT)

the reason that it justifies is that xterm uses ^J between lines, not ^M
and ^J tells pico (and pine) to justify the current paragraph.  what i do
is to use vi via the alternate editor command (^_) and paste into it.  of
course that requires that you know vi :-).

---

From: Jacob Morzinski <[email-masked]>
Date: Sat, 20 May 2000 18:24:24 -0400 (EDT)

On Sat, 20 May 2000, Joe Pruett wrote:
> and ^J tells pico (and pine) to justify the current paragraph.

This may have been what was happening to the original poster,
with the caveat that he was not using xterm.  (If you experiment,
you'll probably discover that you are unable to paste a ^J into
an xterm.  Even if you copy one from elsewhere, when you try to
paste it you end up getting a ^M.)

I emailed the original poster off-list to point out that I had
no trouble pasting long lines into a pico -w running in an xterm,
and he replied to me and said that he'd been using one of KDE's
terminal emulators rather than xterm.  When he switched to using
xterm he was able to paste long lines without difficulty.