Home

News

International

Screen Shots

Documentation

Download

Build

License

Credits

Contact

SourceForge Project

Tintware Documentation : Tint Emacs : GNU Emacs Compatibility : Advanced Features

Keyboard Macros

C-x ( (which is bound to start-kbd-macro) will start recording a new keyboard macro. With a numeric argument, start-kbd-macro will append to the previous keyboard macro. C-x ) (which is bound to end-kbd-macro) will end a keyboard macro. C-x e (which is bound to call-last-kbd-macro) will execute the most recently defined keyboard macro. M-x apply-macro-to-region-lines which apply the most recently defined keyboard macro to each of the lines in the region. With a numeric argument, apply-macro-to-region-lines will prompt for the name of a macro and apply that to the region lines instead.

C-x q (which is bound to query-kbd-macro) which allows you to put a query into a keyboard macro. The query will ask you each time around what to do. Your choices are to continue, skip the rest of this iteration, quit executing the macro, or go into a recursive edit. C-u C-x q, or generally query-kbd-macro with any numeric argument, will go into a recursive edit when the macro is being defined and when it is being executed.

M-x name-last-kbd-macro will read a name from the minibuffer, and then make a command with that name which is the macro. You can then call the macro using M-x and the name. M-x insert-kbd-macro will read the name of a macro from the minibuffer, and then insert the code which defines that macro into the current buffer. Tint Emacs will automatically load a file called temacs.tnt if it is in the directory specified by the environment variable USERPROFILE on Win32 and HOME on other systems. With a numeric arguments, insert-kbd-macro will also insert the code necessary to bind any keys you have assigned to the macro.

All of the keyboard macro features work the same as GNU Emacs, except that insert-kbd-macro does not insert keymap bindings.

Recursive Edit

Tint Emacs has the same recursive edit support as GNU Emacs. M-C-c (which is bound to exit-recursive-edit) is used to exit a recursive edit. C-] (which is bound to abort-recursive-edit) is used to abort a recursive edit. Finally, M-x top-level is used to abort all recursive edits and return to the top level.

Changing Key Bindings

M-x global-set-key prompts for a key sequence and a command, and then defines the key sequence to run the command globally. M-x local-set-key prompts for a key sequence and a command, and then defines the key sequence to run the command for the current mode. M-x global-unset-key prompts for a key sequence and undefines it globally; note that key sequence might still defined to run the command (or a different command) in a mode specific keymap. M-x local-unset-key prompts for a key sequence and undefines it in the current mode.