Table E-13. Macro commands (Chapter 6)
Keystrokes
Command name
Action
C-x (
kmacro-start-macro
Start macro definition.
F3
kmacro-start-macro-or-insert-counter
Start macro definition. If pressed while defining a macro, insert a counter.
C-x )
kmacro-end-macro
End macro definition.
F4
kmacro-end-or-call-macro
End macro definition (if definition is in progress) or invoke last keyboard macro.
C-x e
kmacro-end-and-call-macro
Execute last keyboard macro defined. Can type e to repeat macro.
C-x C-k n
name-last-kbd-macro
Name the last macro you created (before saving it).
C-x C-k e
edit-kbd-macro
Edit a keyboard macro by typing C-x e for the last keyboard macro defined, M-x for a named macro, C-h l for lossage, or keystrokes for a macro bound to a key.
C-x C-k Enter
kmacro-edit-macro
Edit the last keyboard macro.
Table E-14. Outline mode commands (Chapter 7)
Keystrokes
Command name
Action
(none)
outline-mode
Toggle outline mode
C-c C-t Hide Hide Body
hide-body
Hide all body lines.
C-c C-a Show Show All
show-all
Show everything that's hidden.
Table E-15. Compilation mode commands (Chapter 9)
Keystrokes
Command name
Action
C-x `
next-error
Move to the next error message and visit the corresponding source code.
M-n
compilation-next-error
Move to the next error message.
M-p
compilation-previous-error
Move to the previous error message.
C-c C-c
compilation-goto-error
Visit the source code for the current error message.
Table E-16. Basic indentation commands (Chapter 7 and Chapter 9)
Keystrokes
Command name
Action
C-M-\
indent-region
Indent each line between the cursor and mark.
M-m
back-to-indentation
Move to the first nonblank character on the line.
M-^
delete-indentation
Join this line to the previous one.
Table E-17. C motion commands (Chapter 9)
Keystrokes
Command name
Action
M-a
c-beginning-of-statement
Move to the beginning of the current statement.
M-e
c-end-of-statement
Move to the end of the current statement.
M-q
c-fill-paragraph
If in comment, fill the paragraph, preserving indentations and decorations.
C-M-a
beginning-of-defun
Move to the beginning of the body of the function surrounding the point.
C-M-e
end-of-defun
Move to the end of the function.
C-M-h
c-mark-function
Put the cursor at the beginning of the function, the mark at the end.
C-c C-q
c-indent-defun
Indent the entire function according to indentation style.
C-c C-u
c-up-conditional
Move to the beginning of the current preprocessor conditional.
C-c C-p
c-backward-conditional
Move to the previous preprocessor conditional.
C-c C-n
c-forward-conditional
Move to the next preprocessor conditional.
Table E-18. SQL mode commands (Chapter 9)
Keystrokes
Command name
Action
C-c C-c
sql-send-paragraph
Send the paragraph the cursor is on. A paragraph is defined by the particular database client. For the sql-mysql process, for example, a paragraph begins with a statement like select or update and ends with a semicolon. Any number of lines can intervene.
C-c C-r
sql-send-region
Send the marked region.
C-c C-b
sql-send-buffer
Send the entire buffer.