Annotation of researchv9/cmd/emacs/macros/basic, revision 1.1.1.1

1.1       root        1: emacsterm mouse region marking [MACRO]
                      2: 
                      3:  Move the cursor when mouse button 1 marks a region.
                      4:  Emacsterm transmits ^X^]nxyxy.  The key number (n) is ignored.
                      5: 
                      6:                               Ignore the key number.
                      7: �<
                      8: �goto_xy
                      9: �                             Set the mark.
                     10: �goto_xy
                     11: 
                     12: emacsterm mouse pointing [MACRO]
                     13: 
                     14:  Move the cursor when mouse button 1 is clicked.
                     15:  Emacsterm transmits ^X^_nxy.  The key number (n) is ignored.
                     16: 
                     17:                               Ignore the key number.
                     18: �<
                     19: �goto_xy
                     20: 
                     21: goto_xy
                     22:                               Collect the arguments
                     23: ��<
                     24: 5��<
                     25: �12~�32        Subtract 32 to get the row and column
                     26: 5�12~5�32
                     27: �13~�128       Shift the col over by 7 bits
                     28: �11~�5        Add in the row
                     29: g
                     30: 
                     31: �inserts output of a shell command into current buffer [MACRO]
                     32: <usilent
                     33: �
  turn on usilent mode (save old value)
                     34: B            store current buffer name
                     35: <command line? 
                     36: �             invoke shell on command inserted at the prompt
                     37: <.exec
                     38:             switch .exec buffer
                     39: �             go to top of buffer
                     40: �             mark top of buffer
                     41: �             go to bottom of buffer
                     42: �             put entire .exec buffer on kill stack
                     43: %            swap first and second items of the kill stack
                     44:             go to original buffer
                     45:              insert contents of .exec (on kill stack) into current buf
                     46: <usilent
                     47: 
  restore old usilent mode value
                     48: -            restore kill stack
                     49: 
                     50: �transpose next two words [MACRO]
                     51: �            pick up this word and char. after
                     52: �             go to end of next word
                     53: -� drop saved word and go back to start of it.
                     54: -            clear stack
                     55: 
                     56: �signs name to message with $HOME/.signature file [MACRO]
                     57: 
                     58: <$HOME/.signature
                     59: �
                     60: �sets overwrite mode [MACRO]
                     61: 
                     62: <overwrite
                     63: 

                     64: �returns to insert mode [MACRO]
                     65: 
                     66: <overwrite
                     67: 

                     68: �kills (arg) lines [MACRO]
                     69: 
                     70: &�            mark the beginning of the current line
                     71: �  go down (arg) lines and kill
                     72: 
                     73: �puts (arg) lines onto the kill stack [MACRO]
                     74: 
                     75: &�            mark the beginning of the current line
                     76: ��  go down (arg) lines, and put the lines on the kill stack
                     77: 
                     78: �copies the current file to file.old [MACRO]
                     79: 
                     80: <cp 
                     81: +F  append the file name
                     82: +< 
                     83: +F  append the file name
                     84: +<.old
                     85: �             execute the cp command
                     86: 
                     87: �calls an interactive C symbol cross-referencer [MACRO]
                     88: 
                     89: <usilent
                     90: �0
        turn off usilent mode (save old value)
                     91: <cscope
                     92: |���~��  if arg != 1 
                     93:        +< 
                     94:        +F                   append the file name
                     95: ��
                     96: �             call cscope
                     97: <usilent
                     98: 
  restore old usilent mode value
                     99: 
                    100: Ddisplays a directory [MACRO]
                    101: 
                    102: <usilent
                    103: ��
 turn off usilent mode (save old value)
                    104: <vsh 
                    105: +<Directory? 
                    106: �             prompt for the directory name
                    107: <usilent
                    108: 
  restore old usilent mode value
                    109: 
                    110: �runs the spell command on the current buffer [MACRO]
                    111: <~EMACS/macros/spell1
                    112: � load spell macro, execute it
                    113: 
                    114: �runs the mail processing subsystem [MACRO]
                    115: <~EMACS/macros/mail
                    116: ��
                    117: �capitalizes entered letters until end of word [MACRO]
                    118: <~EMACS/macros/caps
                    119: �
                    120: �inserts C lang. templates & executes command abbrevs. [MACRO]
                    121: <~EMACS/macros/template
                    122: �
                    123: �d_caret find and delete the next caret [MACRO]
                    124: <^
                    125: 
                    126: ochanges to the other window in same buffer [MACRO]
                    127: 1B2      put this buffer in the other window
                    128: �o redefine ^X^O
                    129: <~EMACS/macros/bufswap
                    130:             load bufswap macro
                    131: 12�  and set mark here for use
                    132: o
                    133: Ggraphics (draw) [MACRO]
                    134: <~EMACS/macros/draw
                    135: G
                    136: bbox -- draw a box between cursor and mark [MACRO]
                    137: <~EMACS/macros/draw
                    138: b
                    139: �edits the shell command file [MACRO]
                    140: <~EMACS/macros/shell
                    141: �
                    142: �executes current line in shell command file [MACRO]
                    143: <~EMACS/macros/shell
                    144: �
                    145: �displays current command in shell command file [MACRO]
                    146: <~EMACS/macros/shell
                    147: �
                    148: �displays (arg) next command in shell command file [MACRO]
                    149: <~EMACS/macros/shell
                    150: ��
                    151: �displays (arg) next command in shell command file [MACRO]
                    152: <~EMACS/macros/shell
                    153: ��
                    154: sescapes to the shell (enter ^D to exit) [MACRO]
                    155: <~EMACS/macros/shell
                    156: s
                    157: �shifts marked area right (no arg) or left (arg != 1) [MACRO]
                    158: <~EMACS/macros/shift
                    159: ��

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.