Path: utzoo!attcan!uunet!husc6!tut.cis.ohio-state.edu!triceratops.cis.ohio-state.edu!karl From: karl@triceratops.cis.ohio-state.edu (Karl Kleinpaste) Newsgroups: comp.emacs Subject: Re: block moves in emacs? Message-ID: <16959@tut.cis.ohio-state.edu> Date: 5 Jul 88 15:38:58 GMT References: <804@taux01.UUCP> Sender: news@tut.cis.ohio-state.edu Lines: 25 In-reply-to: cjosta@taux01.UUCP's message of 3 Jul 88 10:50:32 GMT cjosta@taux01.UUCP writes: Is there any way to move a block of text in emacs? When I say block, I mean a rectangle of text. For example: Why, sure, no problem... (I am using Unipress Emacs v2.15 if it matters) Oh. Well, then maybe that is a problem after all. In GNU Emacs, you have a whole rectangle manipulation package: clear-rectangle Function: Blank out rectangle with corners at point and mark. copy-rectangle-to-register Function: Copy rectangular region into register REG. delete-rectangle Function: Delete (don't save) text in rectangle with point and mark as corners. kill-rectangle Function: Delete rectangle with corners at point and mark; save as last killed one. open-rectangle Function: Blank out rectangle with corners at point and mark, shifting text right. yank-rectangle Function: Yank the last killed rectangle with upper left corner at point. --Karl