;ELC ;;; compiled by jwz@thalidomide on Thu Mar 24 13:25:33 1994 ;;; from file /th/jwz/emacs19/lisp/prim/rect.el ;;; emacs version 19.10 Lucid (beta9). ;;; bytecomp version 2.22; 22-dec-93. ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19"))) (error "This file was compiled for Emacs 19.")) (fset 'operate-on-rectangle #[(function start end coerce-tabs &rest extra-args) "À‰‰‰Š bˆiÆyˆ`)ŠbˆiÈyˆÉ )\n W«‰ \n\n\n)Š bˆ` W«ÅÀ‰‰   Î \"ˆi Z ` Î\n\"ˆ\niZ  ÆW«Š  \\ Æ Ð   %ˆ+Èyˆª6)\n Z,‡" [nil endlinepos endcol startlinepos startcol start 0 end 1 point-marker tem endextra begextra startpos move-to-column coerce-tabs apply function extra-args] 6 "\ Call FUNCTION for each line of rectangle with corners at START, END. If COERCE-TABS is non-nil, convert multi-column characters that span the starting or ending columns on any line to multiple spaces before calling FUNCTION. FUNCTION is called with three arguments: position of start of segment of this line within the rectangle, number of columns that belong to rectangle but are before that position, number of columns that belong to rectangle but are after point. Point is at the end of the segment of this line within the rectangle."]) (byte-code "ÀÁMˆÂÃMˆÄÅMˆÆÇ!ÉÊM‡" [delete-rectangle-line #[(startdelpos ignore ignore) "`|‡" [startdelpos] 2] delete-extract-rectangle-line #[(startdelpos begextra endextra lines) "ŠÀ \n $ˆ) `|‡" [extract-rectangle-line startdelpos begextra endextra lines] 5] extract-rectangle-line #[(startdelpos begextra endextra lines) "`{`bˆÃÄ Å#«¤iŠÆuˆi)Z\nÈ` ZÉZOÊ!\n‰G` Z\\ËOQ)ªU ÈV¬† ÈV«‹Ê !\nÊ !Q\nAB¡*‡" [startdelpos end line search-forward " " t -1 width 0 1 spaces-string nil begextra endextra lines] 6] purecopy ["" " " " " " " " " " " " " " " " "] spaces-strings spaces-string #[(n) "ÁX«„\nH‡ÃÁV«‹Å PÁZ‰ªq \nHP)‡" [n 8 spaces-strings "" val " "] 4]] 2) (fset 'delete-rectangle #[(start end) "ÀÁ\n Ä$‡" [operate-on-rectangle delete-rectangle-line start end t] 5 "\ Delete (don't save) text in rectangle with point and mark as corners. The same range of columns is deleted in each line starting with the line where the region begins and ending with the line where the region ends." "r"]) (fset 'delete-extract-rectangle #[(start end) "ÀCÂÃ Æ %ˆ AŸ)‡" [nil lines operate-on-rectangle delete-extract-rectangle-line start end t] 6 "\ Delete contents of rectangle and return it as a list of strings. Arguments START and END are the corners of the rectangle. The value is list of strings, one for each line of the rectangle."]) (fset 'extract-rectangle #[(start end) "ÀCÂà À %ˆ AŸ)‡" [nil lines operate-on-rectangle extract-rectangle-line start end] 6 "\ Return contents of rectangle with corners at START and END. Value is list of strings, one for each line of the rectangle."]) (defvar killed-rectangle nil "\ Rectangle for yank-rectangle to insert.") (fset 'kill-rectangle #[(start end) "À \n\"‰‡" [delete-extract-rectangle start end killed-rectangle] 3 "\ Delete rectangle with corners at point and mark; save as last killed one. Calling from program, supply two args START and END, buffer positions. But in programs you might prefer to use `delete-extract-rectangle'." "r"]) (fset 'yank-rectangle #[nil "À !‡" [insert-rectangle killed-rectangle] 2 "\ Yank the last killed rectangle with upper left corner at point." nil]) (fset 'insert-rectangle #[(rectangle) "iÁÅ ˆ ­ž\n¬ŽÆyˆn¬ƒÇcˆÈ Á\"ˆÉ @cˆ A‰¬cÉ+‡" [rectangle t first insertcolumn lines push-mark 1 10 move-to-column nil] 4 "\ Insert text of RECTANGLE with upper left corner at point. RECTANGLE's first line is inserted at point, its second line is inserted at a point vertically under point, etc. RECTANGLE should be a list of strings. After this command, the mark is at the upper left corner and point is at the lower right corner."]) (fset 'open-rectangle #[(start end) "ÀÁ\n Ä$ˆ\nb‡" [operate-on-rectangle open-rectangle-line start end nil] 5 "\ Blank out rectangle with corners at point and mark, shifting text right. The text previously in the region is not overwritten by the blanks, but instead winds up to the right of the rectangle." "r"]) (fset 'open-rectangle-line #[(startpos begextra endextra) "i\\Á bˆi ZÇÁwˆiZ) `|ˆ \n\\j*‡" [endextra nil whitewidth endcol startpos begextra begcol " "] 2]) (fset 'string-rectangle #[(start end string) "ÀÁ\n Ä %ˆ\nb‡" [operate-on-rectangle string-rectangle-line start end t string] 6 "\ Insert STRING on each line of the region-rectangle, shifting text right. The left edge of the rectangle specifies the column for insertion. This command does not delete or overwrite any existing text. Called from a program, takes three args; START, END and STRING." "r\nsString rectangle: "]) (fset 'string-rectangle-line #[(startpos begextra endextra string) "À\nbˆiÄÀwˆi Z)\n`|ˆ cˆi \\j)‡" [nil whitespace startpos ocol " " string] 2]) (fset 'clear-rectangle #[(start end) "ÀÁ\n Ä$‡" [operate-on-rectangle clear-rectangle-line start end t] 5 "\ Blank out rectangle with corners at point and mark. The text previously in the region is overwritten by the blanks. When called from a program, requires two args which specify the corners." "r"]) (byte-code "ÀÁMˆÂÃ!‡" [clear-rectangle-line #[(startpos begextra endextra) "ÀÁwˆi\n\\` bˆÀÁxˆ`|ˆ j)‡" [" " nil endextra column startpos] 3] provide rect] 2)