[gnu.emacs] yank and yank-rectangle insert while in overwrite mode

david@oahu.cs.ucla.edu (David Dantowitz) (09/17/89)

    Has anyone written code to have yank and yank-rectangle overwrite
    existing characters while in overwrite mode?  Even though overwrite
    mode is enabled, both yank commands still insert, rather than overwriting.



David Dantowitz
david@cs.ucla.edu             "Curb your dogma"

jbw@bucsf.bu.edu (Joe Wells) (09/25/89)

In article <27187@shemp.CS.UCLA.EDU> david@oahu.cs.ucla.edu (David Dantowitz) writes:

       Has anyone written code to have yank and yank-rectangle overwrite
       existing characters while in overwrite mode?  Even though overwrite
       mode is enabled, both yank commands still insert, rather than
       overwriting.

Yes and no.  No one that I know of has done this for yank and
yank-rectangle.  However, you can get the behaviour for rectangles in
which you are interested with these commands:

   picture-clear-rectangle
   picture-clear-rectangle-to-register
   picture-yank-rectangle
   picture-yank-rectangle-from-register

Enjoy,

--
Joe Wells <jbw@bucsf.bu.edu>
jbw%bucsf.bu.edu@bu-it.bu.edu
...!harvard!bu-cs!bucsf!jbw