;ELC   
;;; Compiled by pot@pot.cnuce.cnr.it on Tue Mar 18 15:52:37 2003
;;; from file /home/pot/gnu/emacs-pretest.new/lisp/textmodes/picture.el
;;; in Emacs version 21.3
;;; with bytecomp version 2.85.4.1
;;; with all optimizations.

;;; This file uses dynamic docstrings, first added in Emacs 19.29.
(if (and (boundp 'emacs-version)
	 (< (aref emacs-version (1- (length emacs-version))) ?A)
	 (or (and (boundp 'epoch::version) epoch::version)
	     (string-lessp emacs-version "19.29")))
    (error "`picture.el' was compiled for Emacs 19.29 or later"))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(custom-declare-group 'picture nil "Picture mode --- editing using quarter-plane screen model." :prefix "picture-" :group 'editing)
#@64 *Character `picture-draw-rectangle' uses for top left corners.
(custom-declare-variable 'picture-rectangle-ctl '43 '(#$ . -758) :type 'character :group 'picture)
#@65 *Character `picture-draw-rectangle' uses for top right corners.
(custom-declare-variable 'picture-rectangle-ctr '43 '(#$ . -926) :type 'character :group 'picture)
#@68 *Character `picture-draw-rectangle' uses for bottom right corners.
(custom-declare-variable 'picture-rectangle-cbr '43 '(#$ . -1095) :type 'character :group 'picture)
#@67 *Character `picture-draw-rectangle' uses for bottom left corners.
(custom-declare-variable 'picture-rectangle-cbl '43 '(#$ . -1268) :type 'character :group 'picture)
#@62 *Character `picture-draw-rectangle' uses for vertical lines.
(custom-declare-variable 'picture-rectangle-v '124 '(#$ . -1440) :type 'character :group 'picture)
#@64 *Character `picture-draw-rectangle' uses for horizontal lines.
(custom-declare-variable 'picture-rectangle-h '45 '(#$ . -1606) :type 'character :group 'picture)
(byte-code "\301B\302\301!\204\f \303\301\207" [current-load-list picture-desired-column boundp 0] 2)
(defalias 'picture-update-desired-column #[(adjust-to-current) "i	\204 \nSW\204 \nTV\203 )\207" [current-column adjust-to-current picture-desired-column] 2])
#@155 Position point at the beginning of the line.
With ARG not nil, move forward ARG - 1 lines first.
If scan reaches end of buffer, stop there without error.
(defalias 'picture-beginning-of-line #[(&optional arg) "\203\n \302!Sy\210\303 \210\304\211\207" [arg picture-desired-column prefix-numeric-value beginning-of-line 0] 2 (#$ . 2046) "P"])
#@173 Position point after last non-blank character on current line.
With ARG not nil, move forward ARG - 1 lines first.
If scan reaches end of buffer, stop there without error.
(defalias 'picture-end-of-line #[(&optional arg) "\203\n \302!Sy\210\303 \210\304`\305\210x\210i\211\207" [arg picture-desired-column prefix-numeric-value beginning-of-line " 	" nil] 3 (#$ . 2397) "P"])
#@91 Move cursor right, making whitespace if necessary.
With argument, move that many columns.
(defalias 'picture-forward-column #[(arg) "\303t!\210\304	\\]\305\306\"\211V\205 	\304W\205 \307u)\207" [picture-desired-column arg current-column picture-update-desired-column 0 move-to-column t -1] 4 (#$ . 2782) "p"])
#@90 Move cursor left, making whitespace if necessary.
With argument, move that many columns.
(defalias 'picture-backward-column #[(arg) "\301t!\210\302[!\207" [arg picture-update-desired-column picture-forward-column] 2 (#$ . 3105) "p"])
#@92 Move vertically down, making whitespace if necessary.
With argument, move that many lines.
(defalias 'picture-move-down #[(arg) "\303\304!\210\305!\210\306	\307\"\211	V\205 \310u)\207" [arg picture-desired-column current-column picture-update-desired-column nil picture-newline move-to-column t -1] 4 (#$ . 3346) "p"])
#@65 Amount to move vertically after text character in Picture mode.
(defconst picture-vertical-step 0 (#$ . 3674))
#@67 Amount to move horizontally after text character in Picture mode.
(defconst picture-horizontal-step 1 (#$ . 3791))
#@90 Move vertically up, making whitespace if necessary.
With argument, move that many lines.
(defalias 'picture-move-up #[(arg) "\301\302!\210\303[!\207" [arg picture-update-desired-column nil picture-move-down] 2 (#$ . 3912) "p"])
#@60 Move right after self-inserting character in Picture mode.
(defalias 'picture-movement-right #[nil "\300\301\302\"\207" [picture-set-motion 0 1] 3 (#$ . 4147) nil])
#@59 Move left after self-inserting character in Picture mode.
(defalias 'picture-movement-left #[nil "\300\301\302\"\207" [picture-set-motion 0 -1] 3 (#$ . 4318) nil])
#@57 Move up after self-inserting character in Picture mode.
(defalias 'picture-movement-up #[nil "\300\301\302\"\207" [picture-set-motion -1 0] 3 (#$ . 4488) nil])
#@59 Move down after self-inserting character in Picture mode.
(defalias 'picture-movement-down #[nil "\300\301\302\"\207" [picture-set-motion 1 0] 3 (#$ . 4654) nil])
#@117 Move up and left after self-inserting character in Picture mode.
With prefix argument, move up and two-column left.
(defalias 'picture-movement-nw #[(&optional arg) "\301\302\203\n \303\202 \302\"\207" [arg picture-set-motion -1 -2] 3 (#$ . 4824) "P"])
#@119 Move up and right after self-inserting character in Picture mode.
With prefix argument, move up and two-column right.
(defalias 'picture-movement-ne #[(&optional arg) "\301\302\203\n \303\202 \304\"\207" [arg picture-set-motion -1 2 1] 3 (#$ . 5086) "P"])
#@121 Move down and left after self-inserting character in Picture mode.
With prefix argument, move down and two-column left.
(defalias 'picture-movement-sw #[(&optional arg) "\301\302\203\n \303\202 \304\"\207" [arg picture-set-motion 1 -2 -1] 3 (#$ . 5351) "P"])
#@123 Move down and right after self-inserting character in Picture mode.
With prefix argument, move down and two-column right.
(defalias 'picture-movement-se #[(&optional arg) "\301\302\203\n \303\202 \302\"\207" [arg picture-set-motion 1 2] 3 (#$ . 5619) "P"])
#@129 Set VERTICAL and HORIZONTAL increments for movement in Picture mode.
The mode line is updated to reflect the current direction.
(defalias 'picture-set-motion #[(vert horiz) "\n\305\306\n\307\246\310\246T\311_\\\310\\\3128\"\313 \210\314\315!\207" [vert picture-vertical-step horiz picture-horizontal-step mode-name format "Picture:%s" 3 2 5 (wnw nw up ne ene Left left none right Right wsw sw down se ese) force-mode-line-update message ""] 5 (#$ . 5885)])
#@77 Move in direction of `picture-vertical-step' and `picture-horizontal-step'.
(defalias 'picture-move #[nil "\302U\204\n \303!\210	\302U?\205 \304	!\207" [picture-vertical-step picture-horizontal-step 0 picture-move-down picture-forward-column] 2 (#$ . 6353)])
#@259 Move point in direction of current picture motion in Picture mode.
With ARG do it that many times.  Useful for delineating rectangles in
conjunction with diagonal picture motion.
Do \[command-apropos]  picture-movement  to see commands which control motion.
(defalias 'picture-motion #[(arg) "\303	_!\210\304\n_!\207" [arg picture-vertical-step picture-horizontal-step picture-move-down picture-forward-column] 3 (#$ . 6622) "p"])
#@268 Move point in direction opposite of current picture motion in Picture mode.
With ARG do it that many times.  Useful for delineating rectangles in
conjunction with diagonal picture motion.
Do \[command-apropos] `picture-movement' to see commands which control motion.
(defalias 'picture-motion-reverse #[(arg) "\301[!\207" [arg picture-motion] 2 (#$ . 7062) "p"])
(defalias 'picture-insert #[(ch arg) "\306!\n\307U\203  	\310V\203  \311!\312W\203  \211\\\307\\\202! \f\307V\205Y \fSiU\2045 \313!\210	\\l\204L `\313!\210`|\210))c\210\314u\210\315 \210\202\" *\207" [ch width picture-vertical-step picture-horizontal-step arg picture-desired-column char-width 0 1 abs 2 move-to-column-force -1 picture-move col pos] 2])
#@271 Insert this character in place of character previously at the cursor.
The cursor then moves in the direction you previously specified
with the commands `picture-movement-right', `picture-movement-up', etc.
Do \[command-apropos] `picture-movement' to see those commands.
(defalias 'picture-self-insert #[(arg) "\304	=?!\210\305\n\"\207" [this-command last-command last-command-event arg picture-update-desired-column picture-insert] 3 (#$ . 7806) "p"])
#@51 Clear out ARG columns after point without moving.
(defalias 'picture-clear-column #[(arg) "i\305	\\]\306\307\n!\210`\310!\210`|\210\212\n]j\210,i\211\207" [original-col arg target-col pos picture-desired-column 0 nil move-to-column-force move-to-column] 3 (#$ . 8266) "p"])
#@60 Clear out ARG columns before point, moving back over them.
(defalias 'picture-backward-clear-column #[(arg) "\301[!\207" [arg picture-clear-column] 2 (#$ . 8555) "p"])
#@219 Clear out rest of line; if at end of line, advance to next line.
Cleared-out line text goes into the kill ring, as do newlines that are
advanced over.  With argument, clear out (and save in kill ring) that
many lines.
(defalias 'picture-clear-line #[(arg) "\203 \301!\302!\210\303\304V\203 \202 [!\207\305\306!\203) \307`\310y\210`\"\207\311`\312\210`\"\207" [arg prefix-numeric-value kill-line newline 0 looking-at "[ 	]*$" kill-ring-save 1 kill-region nil] 3 (#$ . 8731) "P"])
#@152 Move to the beginning of the following line.
With argument, moves that many lines (up, if negative argument);
always moves to the beginning of a line.
(defalias 'picture-newline #[(arg) "\301W\203	 y\207\301V\205& \302\210m\203 \303 \210\202 \304u\210S\211\202\n \207" [arg 0 nil newline 1] 3 (#$ . 9228) "p"])
#@93 Insert an empty line after the current line.
With positive argument insert that many lines.
(defalias 'picture-open-line #[(arg) "\212\301\210\302!)\207" [arg nil open-line] 2 (#$ . 9553) "p"])
#@51 Insert a duplicate of the current line, below it.
(defalias 'picture-duplicate-line #[nil "\212\301 \210`\302\303!\210`{\304y\210c*\207" [contents beginning-of-line picture-newline 1 -1] 3 (#$ . 9755) nil])
(defalias 'picture-replace-match #[(newtext fixedcase literal) "\306\211\211\307\225\211b\210i\306\211\310#\210i\nZ\f\211\203- \311\312\"\211\204$ *b\210	\307V\203B `\313	i\\\314\"\210`|\210\310#\210	\307W\205U \315\316	[\"+\207" [pos change ocolumn list1 buffer-undo-list newtext nil 0 replace-match primitive-undo 1 move-to-column t insert-char 32 fixedcase literal] 5])
#@1181 *A character set which controls behavior of commands.
\[picture-set-tab-stops] and \[picture-tab-search].  It is NOT a
regular expression, any regexp special characters will be quoted.
It defines a set of "interesting characters" to look for when setting
(or searching for) tab stops, initially "!-~" (all printing characters).
For example, suppose that you are editing a table which is formatted thus:
| foo		| bar + baz | 23  *
| bubbles	| and + etc | 97  *
and that `picture-tab-chars' is "|+*".  Then invoking
\[picture-set-tab-stops] on either of the previous lines would result
in the following tab stops
		:     :     :     :
Another example - "A-Za-z0-9" would produce the tab stops
  :		  :	:     :

Note that if you want the character `-' to be in the set, it must be
included in a range or else appear in a context where it cannot be
taken for indicating a range (e.g. "-A-Z" declares the set to be the
letters `A' through `Z' and the character `-').  If you want the
character `\' in the set it must be preceded by itself: "\\".

The command \[picture-tab-search] is defined to move beneath (or to) a
character belonging to this set independent of the tab stops list.
(custom-declare-variable 'picture-tab-chars '"!-~" '(#$ . -10367) :type 'string :group 'picture)
#@477 Set value of `tab-stop-list' according to context of this line.
This controls the behavior of \[picture-tab].  A tab stop is set at
every column occupied by an "interesting character" that is preceded
by whitespace.  Interesting characters are defined by the variable
`picture-tab-chars', see its documentation for an example of usage.
With ARG, just (re)set `tab-stop-list' to its default value.  The tab
stops computed are displayed in the minibuffer with `:' at each stop.
(defalias 'picture-set-tab-stops #[(&optional arg) "\212\306	\203 \307\305!\202< \310\311\n!\312Q\313 \210`\306\210\314\f\315#\2030 \316\306w\210iB\202 \204; \317\320\311\n!\"\210*\321GS8T\322\"\203[ @\323I\210A\211\204M \324!+\207" [tabs arg picture-tab-chars regexp bol tab-stop-list nil default-value "[ 	]+[" regexp-quote "]" beginning-of-line re-search-backward t " 	" error "No characters in set %s on this line" make-string 32 58 message blurb] 5 (#$ . 11651) "P"])
#@316 Move to column beneath next interesting char in previous line.
With ARG move to column occupied by next interesting character in this
line.  The character must be preceded by whitespace.
"interesting characters" are defined by variable `picture-tab-chars'.
If no such character is found, move to beginning of line.
(defalias 'picture-tab-search #[(&optional arg) "i\212	\204 \303 \210\304\305\n!Pex\210o\204 \306!\210\307\310\305\n!\311Q\212\312\210`)\313#\2032 iS\2024 \312)\203@ \306\314\"\202B \303 )\207" [target arg picture-tab-chars beginning-of-line "^" regexp-quote move-to-column re-search-forward "[ 	]+[" "]" nil move t] 4 (#$ . 12632) "P"])
#@256 Tab transparently (just move point) to next tab stop.
With prefix arg, overwrite the traversed text with spaces.  The tab stop
list can be changed by \[picture-set-tab-stops] and \[edit-tab-stops].
See also documentation for variable `picture-tab-chars'.
(defalias 'picture-tab #[(&optional arg) "`\304 \210	\205 \305i`|\210\nj*)\207" [opoint arg column indent-tabs-mode move-to-tab-stop nil] 2 (#$ . 13301) "P"])
#@134 Rectangle killed or copied by \[picture-clear-rectangle] in Picture mode.
The contents can be retrieved by \[picture-yank-rectangle]
(defvar picture-killed-rectangle nil (#$ . 13727))
#@282 Clear and save rectangle delineated by point and mark.
The rectangle is saved for yanking by \[picture-yank-rectangle] and replaced
with whitespace.  The previously saved rectangle, if any, is lost.  With
prefix argument, the rectangle is actually killed, shifting remaining text.
(defalias 'picture-clear-rectangle #[(start end &optional killp) "\304	\n#\211\207" [start end killp picture-killed-rectangle picture-snarf-rectangle] 4 (#$ . 13918) "r\nP"])
#@208 Clear rectangle delineated by point and mark into REGISTER.
The rectangle is saved in REGISTER and replaced with whitespace.  With
prefix argument, the rectangle is actually killed, shifting remaining text.
(defalias 'picture-clear-rectangle-to-register #[(start end register &optional killp) "\304\305	\n#\"\207" [register start end killp set-register picture-snarf-rectangle] 6 (#$ . 14383) "r\ncRectangle to register: \nP"])
(defalias 'picture-snarf-rectangle #[(start end &optional killp) "i\305\212\n\203 \306\f\"\202 \307\f\"\310\f\"\210)\311	\312\"\210*\207" [indent-tabs-mode column killp start end nil delete-extract-rectangle extract-rectangle clear-rectangle move-to-column t] 4])
#@317 Overlay rectangle saved by \[picture-clear-rectangle]
The rectangle is positioned with upper left corner at point, overwriting
existing text.  With prefix argument, the rectangle is inserted instead,
shifting existing text.  Leaves mark at one corner of rectangle and
point at the other (diagonally opposed) corner.
(defalias 'picture-yank-rectangle #[(&optional insertp) ":\204	 \302\303!\207\304	\"\207" [picture-killed-rectangle insertp error "No rectangle saved" picture-insert-rectangle] 3 (#$ . 15091) "P"])
#@269 Insert the last killed rectangle at the position clicked on.
Also move point to one end of the text thus inserted (normally the end).
Prefix arguments are interpreted as with \[yank].
If `mouse-yank-at-point' is non-nil, insert at point
regardless of where you click.
(defalias 'picture-yank-at-click #[(click arg) "\204 \303	!\210\304\n!\207" [mouse-yank-at-point click arg mouse-set-point picture-yank-rectangle] 2 (#$ . 15614) "e\nP"])
#@300 Overlay rectangle saved in REGISTER.
The rectangle is positioned with upper left corner at point, overwriting
existing text.  With prefix argument, the rectangle is
inserted instead, shifting existing text.  Leaves mark at one corner
of rectangle and point at the other (diagonally opposed) corner.
(defalias 'picture-yank-rectangle-from-register #[(register &optional insertp) "\303!\211:\204 \304\305\"\202 \306	\n\")\207" [register rectangle insertp get-register error "Register %c does not contain a rectangle" picture-insert-rectangle] 4 (#$ . 16062) "cRectangle from register: \nP"])
#@168 Overlay RECTANGLE with upper left corner at point.
Optional argument INSERTP, if non-nil causes RECTANGLE to be inserted.
Leaves the region surrounding the rectangle.
(defalias 'picture-insert-rectangle #[(rectangle &optional insertp) "\303	\204 \212\304`\305\n@G!\210\306\nGS!\210`\"\210)\307 \210\310\n!)\207" [indent-tabs-mode insertp rectangle nil delete-rectangle picture-forward-column picture-move-down push-mark insert-rectangle] 4 (#$ . 16664)])
#@56 Return the vertical position of point.  Top line is 1.
(defalias 'picture-current-line #[nil "\300e`\"i\301U\203 \302\202 \301\\\207" [count-lines 0 1] 3 (#$ . 17127)])
#@33 Draw a rectangle around region.
(defalias 'picture-draw-rectangle #[(start end) "\306 i\n\fb\210i\306 b\210i\306 ]^^]\307!\210\310!\210\311\312!\210\313 \210\314\315\"\210\314Z\"\210\316 \210\314 \315\"\210\314!\306 Z\"\210\317 \210\314\"\315\"\210\314Z\"\210\320 \210\314#\315\"\210\314!\306 Z\"\210\321\"\210\307!\210\322	\312\".\f\207" [sl sc picture-vertical-step pvs picture-horizontal-step phs picture-current-line goto-line move-to-column-force picture-update-desired-column t picture-movement-right picture-insert 1 picture-movement-down picture-movement-left picture-movement-up picture-set-motion move-to-column start c1 r1 end c2 r2 right left top bottom picture-rectangle-ctl picture-rectangle-h picture-desired-column picture-rectangle-ctr picture-rectangle-v picture-rectangle-cbr picture-rectangle-cbl] 4 (#$ . 17304) "*r"])
(byte-code "\301B\302\302\207" [current-load-list picture-mode-map nil] 2)
(defalias 'picture-substitute #[(oldfun newfun) "\304	\n$\207" [oldfun newfun picture-mode-map global-map substitute-key-definition] 5])
(byte-code "\204\347 \301 \302\303\304\"\210\302\305\304\"\210\302\306\304\"\210\302\307\310\"\210\302\311\312\"\210\302\313\314\"\210\302\315\316\"\210\302\317\316\"\210\302\320\321\"\210\302\322\323\"\210\302\324\325\"\210\302\326\327\"\210\302\330\331\"\210\302\332\333\"\210\302\334\335\"\210\302\336\337\"\210\340\341\313#\210\340\342\343#\210\340\344\345#\210\340\342\346#\210\340\347\350#\210\340\351\352#\210\340\353\354#\210\340\355\356#\210\340\357\360#\210\340\361\362#\210\340\363\364#\210\340\365\366#\210\340\367\370#\210\340\371\372#\210\340\373\374#\210\340\375\376#\210\340\377\201@ #\210\340\201A \201B #\210\340\201C \201D #\210\340\201E \201F #\210\340\201G \201H #\210\301\207" [picture-mode-map make-keymap picture-substitute self-insert-command picture-self-insert completion-separator-self-insert-command completion-separator-self-insert-autofilling forward-char picture-forward-column backward-char picture-backward-column delete-char picture-clear-column backward-delete-char-untabify picture-backward-clear-column delete-backward-char kill-line picture-clear-line open-line picture-open-line newline picture-newline newline-and-indent picture-duplicate-line next-line picture-move-down previous-line picture-move-up beginning-of-line picture-beginning-of-line end-of-line picture-end-of-line define-key "" "	" picture-toggle-tab-state "	" picture-tab picture-tab-search "	" picture-set-tab-stops "" picture-clear-rectangle "" picture-clear-rectangle-to-register "" picture-yank-rectangle "" picture-yank-rectangle-from-register "" picture-draw-rectangle "" picture-mode-exit "" picture-motion "" picture-motion-reverse "<" picture-movement-left ">" picture-movement-right "^" picture-movement-up "." picture-movement-down "`" picture-movement-nw "'" picture-movement-ne "/" picture-movement-sw "\\" picture-movement-se] 4)
#@115 If non-nil, its value is called on entry to Picture mode.
Picture mode is invoked by the command \[picture-mode].
(custom-declare-variable 'picture-mode-hook 'nil '(#$ . 20339) :type 'hook :group 'picture)
(byte-code "\301B\302B\303B\304B\301\207" [current-load-list picture-mode-old-local-map picture-mode-old-mode-name picture-mode-old-major-mode picture-mode-old-truncate-lines] 2)
#@3345 Switch to Picture mode, in which a quarter-plane screen model is used.
Printing characters replace instead of inserting themselves with motion
afterwards settable by these commands:
  C-c <	  Move left after insertion.
  C-c >	  Move right after insertion.
  C-c ^	  Move up after insertion.
  C-c .	  Move down after insertion.
  C-c `	  Move northwest (nw) after insertion.
  C-c '	  Move northeast (ne) after insertion.
  C-c /	  Move southwest (sw) after insertion.
  C-c \   Move southeast (se) after insertion.
  C-u C-c `  Move westnorthwest (wnw) after insertion.
  C-u C-c '  Move eastnortheast (ene) after insertion.
  C-u C-c /  Move westsouthwest (wsw) after insertion.
  C-u C-c \  Move eastsoutheast (ese) after insertion.
The current direction is displayed in the mode line.  The initial
direction is right.  Whitespace is inserted and tabs are changed to
spaces when required by movement.  You can move around in the buffer
with these commands:
  \[picture-move-down]	  Move vertically to SAME column in previous line.
  \[picture-move-up]	  Move vertically to SAME column in next line.
  \[picture-end-of-line]	  Move to column following last non-whitespace character.
  \[picture-forward-column]	  Move right inserting spaces if required.
  \[picture-backward-column]	  Move left changing tabs to spaces if required.
  C-c C-f Move in direction of current picture motion.
  C-c C-b Move in opposite direction of current picture motion.
  Return  Move to beginning of next line.
You can edit tabular text with these commands:
  M-Tab	  Move to column beneath (or at) next interesting character.
	    `Indents' relative to a previous line.
  Tab	  Move to next stop in tab stop list.
  C-c Tab Set tab stops according to context of this line.
	    With ARG resets tab stops to default (global) value.
	    See also documentation of variable	picture-tab-chars
	    which defines "interesting character".  You can manually
	    change the tab stop list with command \[edit-tab-stops].
You can manipulate text with these commands:
  C-d	  Clear (replace) ARG columns after point without moving.
  C-c C-d Delete char at point - the command normally assigned to C-d.
  \[picture-backward-clear-column]  Clear (replace) ARG columns before point, moving back over them.
  \[picture-clear-line]	  Clear ARG lines, advancing over them.	 The cleared
	    text is saved in the kill ring.
  \[picture-open-line]	  Open blank line(s) beneath current line.
You can manipulate rectangles with these commands:
  C-c C-k Clear (or kill) a rectangle and save it.
  C-c C-w Like C-c C-k except rectangle is saved in named register.
  C-c C-y Overlay (or insert) currently saved rectangle at point.
  C-c C-x Like C-c C-y except rectangle is taken from named register.
  C-c C-r Draw a rectangular box around mark and point.
  \[copy-rectangle-to-register]   Copies a rectangle to a register.
  \[advertised-undo]   Can undo effects of rectangle overlay commands
	    commands if invoked soon enough.
You can return to the previous mode with:
  C-c C-c Which also strips trailing whitespace from every line.
	    Stripping is suppressed by supplying an argument.

Entry to this mode calls the value of  picture-mode-hook  if non-nil.

Note that Picture mode commands will work outside of Picture mode, but
they are not defaultly assigned to keys.
(defalias 'picture-mode #[nil "\306=\203\n \307\310!\207\311\301!\210\312 \313\n!\210\311\304!\210\311\305!\210\306\311\314!\210\315\f\311\316!\210\317\316!\311\320!\210\317\320!\311\321!\210\311\322!\210\311\323!\210\324\325\326\327\"\210\330\331\332\"\210\333\334\335\336!\f#\207" [major-mode picture-mode-old-local-map picture-mode-map mode-name picture-mode-old-mode-name picture-mode-old-major-mode picture-mode error "You are already editing a picture" make-local-variable current-local-map use-local-map picture-killed-rectangle nil tab-stop-list default-value picture-tab-chars picture-vertical-step picture-horizontal-step picture-mode-old-truncate-lines t picture-set-motion 0 1 run-hooks edit-picture-hook picture-mode-hook message "Type %s in this buffer to return it to %s mode." substitute-command-keys "\\[picture-mode-exit]" truncate-lines] 4 (#$ . 20740) nil])
(defalias 'edit-picture 'picture-mode)
#@172 Undo picture-mode and return to previous major mode.
With no argument strips whitespace from end of every line in Picture buffer
  otherwise just return to previous mode.
(defalias 'picture-mode-exit #[(&optional nostrip) "\306=\204\n \307\310!\207	\204 \311 \210\n\312\f!\210\313\314!\210\315 \207" [major-mode nostrip picture-mode-old-mode-name mode-name picture-mode-old-local-map picture-mode-old-major-mode picture-mode error "You aren't editing a Picture" delete-trailing-whitespace use-local-map kill-local-variable tab-stop-list force-mode-line-update picture-mode-old-truncate-lines truncate-lines] 2 (#$ . 25026) "P"])
(provide 'picture)
