File:  [Research Unix] / researchv9 / cmd / emacs / macros / basic
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv9-SUN3_old, researchv9-SUN3, HEAD
researchv9-SUN3(old)

emacsterm mouse region marking [MACRO]

 Move the cursor when mouse button 1 marks a region.
 Emacsterm transmits ^X^]nxyxy.  The key number (n) is ignored.

				Ignore the key number.
�<
�goto_xy
�				Set the mark.
�goto_xy

emacsterm mouse pointing [MACRO]

 Move the cursor when mouse button 1 is clicked.
 Emacsterm transmits ^X^_nxy.  The key number (n) is ignored.

				Ignore the key number.
�<
�goto_xy

goto_xy
				Collect the arguments
��<
5��<
�12~�32	Subtract 32 to get the row and column
5�12~5�32
�13~�128	Shift the col over by 7 bits
�11~�5	Add in the row
g

�inserts output of a shell command into current buffer [MACRO]
<usilent
�
	turn on usilent mode (save old value)
B		store current buffer name
<command line? 
�		invoke shell on command inserted at the prompt
<.exec
		switch .exec buffer
�		go to top of buffer
�		mark top of buffer
�		go to bottom of buffer
�		put entire .exec buffer on kill stack
%		swap first and second items of the kill stack
		go to original buffer
		insert contents of .exec (on kill stack) into current buf
<usilent

	restore old usilent mode value
-		restore kill stack

�transpose next two words [MACRO]
�		pick up this word and char. after
�		go to end of next word
-�	drop saved word and go back to start of it.
-		clear stack

�signs name to message with $HOME/.signature file [MACRO]

<$HOME/.signature
�
�sets overwrite mode [MACRO]

<overwrite


�returns to insert mode [MACRO]

<overwrite


�kills (arg) lines [MACRO]

�		mark the beginning of the current line
�	go down (arg) lines and kill

�puts (arg) lines onto the kill stack [MACRO]

�		mark the beginning of the current line
��	go down (arg) lines, and put the lines on the kill stack

�copies the current file to file.old [MACRO]

<cp 
+F	append the file name
+< 
+F	append the file name
+<.old
�		execute the cp command

�calls an interactive C symbol cross-referencer [MACRO]

<usilent
�0
	turn off usilent mode (save old value)
<cscope
|���~��	if arg != 1 
	+< 
	+F			append the file name
��
�		call cscope
<usilent

	restore old usilent mode value

Ddisplays a directory [MACRO]

<usilent
��
	turn off usilent mode (save old value)
<vsh 
+<Directory? 
�		prompt for the directory name
<usilent

	restore old usilent mode value

�runs the spell command on the current buffer [MACRO]
<~EMACS/macros/spell1
� load spell macro, execute it

�runs the mail processing subsystem [MACRO]
<~EMACS/macros/mail
��
�capitalizes entered letters until end of word [MACRO]
<~EMACS/macros/caps
�
�inserts C lang. templates & executes command abbrevs. [MACRO]
<~EMACS/macros/template
�
�d_caret find and delete the next caret [MACRO]
<^

ochanges to the other window in same buffer [MACRO]
1B2	put this buffer in the other window
�o	redefine ^X^O
<~EMACS/macros/bufswap
		load bufswap macro
12�	and set mark here for use
o
Ggraphics (draw) [MACRO]
<~EMACS/macros/draw
G
bbox -- draw a box between cursor and mark [MACRO]
<~EMACS/macros/draw
b
�edits the shell command file [MACRO]
<~EMACS/macros/shell
�
�executes current line in shell command file [MACRO]
<~EMACS/macros/shell
�
�displays current command in shell command file [MACRO]
<~EMACS/macros/shell
�
�displays (arg) next command in shell command file [MACRO]
<~EMACS/macros/shell
��
�displays (arg) next command in shell command file [MACRO]
<~EMACS/macros/shell
��
sescapes to the shell (enter ^D to exit) [MACRO]
<~EMACS/macros/shell
s
�shifts marked area right (no arg) or left (arg != 1) [MACRO]
<~EMACS/macros/shift
��

unix.superglobalmegacorp.com

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