comparison lisp/textmodes/picture.el @ 67646:585a898592ba

* language/ethio-util.el (ethio-fidel-to-sera-mail-or-marker): * textmodes/picture.el (picture-mode): Update docstrings.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 18 Dec 2005 01:17:27 +0000
parents 5b1a238fcbb4
children 067115a6e738 7beb78bc1f8e
comparison
equal deleted inserted replaced
67645:3efc515483db 67646:585a898592ba
659 (defvar picture-mode-old-truncate-lines) 659 (defvar picture-mode-old-truncate-lines)
660 660
661 ;;;###autoload 661 ;;;###autoload
662 (defun picture-mode () 662 (defun picture-mode ()
663 "Switch to Picture mode, in which a quarter-plane screen model is used. 663 "Switch to Picture mode, in which a quarter-plane screen model is used.
664 \\<picture-mode-map>
664 Printing characters replace instead of inserting themselves with motion 665 Printing characters replace instead of inserting themselves with motion
665 afterwards settable by these commands: 666 afterwards settable by these commands:
666 C-c < Move left after insertion. 667
667 C-c > Move right after insertion. 668 Move left after insertion: \\[picture-movement-left]
668 C-c ^ Move up after insertion. 669 Move right after insertion: \\[picture-movement-right]
669 C-c . Move down after insertion. 670 Move up after insertion: \\[picture-movement-up]
670 C-c ` Move northwest (nw) after insertion. 671 Move down after insertion: \\[picture-movement-down]
671 C-c ' Move northeast (ne) after insertion. 672
672 C-c / Move southwest (sw) after insertion. 673 Move northwest (nw) after insertion: \\[picture-movement-nw]
673 C-c \\ Move southeast (se) after insertion. 674 Move northeast (ne) after insertion: \\[picture-movement-ne]
674 C-u C-c ` Move westnorthwest (wnw) after insertion. 675 Move southwest (sw) after insertion: \\[picture-movement-sw]
675 C-u C-c ' Move eastnortheast (ene) after insertion. 676 Move southeast (se) after insertion: \\[picture-movement-se]
676 C-u C-c / Move westsouthwest (wsw) after insertion. 677
677 C-u C-c \\ Move eastsoutheast (ese) after insertion. 678 Move westnorthwest (wnw) after insertion: C-u \\[picture-movement-nw]
679 Move eastnortheast (ene) after insertion: C-u \\[picture-movement-ne]
680 Move westsouthwest (wsw) after insertion: C-u \\[picture-movement-sw]
681 Move eastsoutheast (ese) after insertion: C-u \\[picture-movement-se]
682
678 The current direction is displayed in the mode line. The initial 683 The current direction is displayed in the mode line. The initial
679 direction is right. Whitespace is inserted and tabs are changed to 684 direction is right. Whitespace is inserted and tabs are changed to
680 spaces when required by movement. You can move around in the buffer 685 spaces when required by movement. You can move around in the buffer
681 with these commands: 686 with these commands:
682 \\[picture-move-down] Move vertically to SAME column in previous line. 687
683 \\[picture-move-up] Move vertically to SAME column in next line. 688 Move vertically to SAME column in previous line: \\[picture-move-down]
684 \\[picture-end-of-line] Move to column following last non-whitespace character. 689 Move vertically to SAME column in next line: \\[picture-move-up]
685 \\[picture-forward-column] Move right inserting spaces if required. 690 Move to column following last
686 \\[picture-backward-column] Move left changing tabs to spaces if required. 691 non-whitespace character: \\[picture-end-of-line]
687 C-c C-f Move in direction of current picture motion. 692 Move right, inserting spaces if required: \\[picture-forward-column]
688 C-c C-b Move in opposite direction of current picture motion. 693 Move left changing tabs to spaces if required: \\[picture-backward-column]
689 Return Move to beginning of next line. 694 Move in direction of current picture motion: \\[picture-motion]
695 Move opposite to current picture motion: \\[picture-motion-reverse]
696 Move to beginning of next line: \\[next-line]
697
690 You can edit tabular text with these commands: 698 You can edit tabular text with these commands:
691 M-Tab Move to column beneath (or at) next interesting character. 699
692 `Indents' relative to a previous line. 700 Move to column beneath (or at) next interesting
693 Tab Move to next stop in tab stop list. 701 character (see variable `picture-tab-chars'): \\[picture-tab-search]
694 C-c Tab Set tab stops according to context of this line. 702 Move to next stop in tab stop list: \\[picture-tab]
695 With ARG resets tab stops to default (global) value. 703 Set tab stops according to context of this line: \\[picture-set-tab-stops]
696 See also documentation of variable picture-tab-chars 704 (With ARG, resets tab stops to default value.)
697 which defines \"interesting character\". You can manually 705 Change the tab stop list: \\[edit-tab-stops]
698 change the tab stop list with command \\[edit-tab-stops]. 706
699 You can manipulate text with these commands: 707 You can manipulate text with these commands:
700 C-d Clear (replace) ARG columns after point without moving. 708 Clear ARG columns after point without moving: \\[picture-clear-column]
701 C-c C-d Delete char at point - the command normally assigned to C-d. 709 Delete char at point: \\[delete-char]
702 \\[picture-backward-clear-column] Clear (replace) ARG columns before point, moving back over them. 710 Clear ARG columns backward: \\[picture-backward-clear-column]
703 \\[picture-clear-line] Clear ARG lines, advancing over them. The cleared 711 Clear ARG lines, advancing over them: \\[picture-clear-line]
704 text is saved in the kill ring. 712 (the cleared text is saved in the kill ring)
705 \\[picture-open-line] Open blank line(s) beneath current line. 713 Open blank line(s) beneath current line: \\[picture-open-line]
714
706 You can manipulate rectangles with these commands: 715 You can manipulate rectangles with these commands:
707 C-c C-k Clear (or kill) a rectangle and save it. 716 Clear a rectangle and save it: \\[picture-clear-rectangle]
708 C-c C-w Like C-c C-k except rectangle is saved in named register. 717 Clear a rectangle, saving in a named register: \\[picture-clear-rectangle-to-register]
709 C-c C-y Overlay (or insert) currently saved rectangle at point. 718 Insert currently saved rectangle at point: \\[picture-yank-rectangle]
710 C-c C-x Like C-c C-y except rectangle is taken from named register. 719 Insert rectangle from named register: \\[picture-yank-rectangle-from-register]
711 C-c C-r Draw a rectangular box around mark and point. 720 Draw a rectangular box around mark and point: \\[picture-draw-rectangle]
712 \\[copy-rectangle-to-register] Copies a rectangle to a register. 721 Copies a rectangle to a register: \\[copy-rectangle-to-register]
713 \\[advertised-undo] Can undo effects of rectangle overlay commands 722 Undo effects of rectangle overlay commands: \\[advertised-undo]
714 if invoked soon enough. 723
715 You can return to the previous mode with: 724 You can return to the previous mode with \\[picture-mode-exit], which
716 C-c C-c Which also strips trailing whitespace from every line. 725 also strips trailing whitespace from every line. Stripping is suppressed
717 Stripping is suppressed by supplying an argument. 726 by supplying an argument.
718 727
719 Entry to this mode calls the value of `picture-mode-hook' if non-nil. 728 Entry to this mode calls the value of `picture-mode-hook' if non-nil.
720 729
721 Note that Picture mode commands will work outside of Picture mode, but 730 Note that Picture mode commands will work outside of Picture mode, but
722 they are not defaultly assigned to keys." 731 they are not defaultly assigned to keys."