Next: , Previous: VisualBell, Up: Preferences Commands


4.9.18 PushPrefs

Syntax: PushPrefs [n]
Abbreviation: PUSHP

pushes n copies of the user preferences onto a stack. If not specified, n defaults to one. Use the PopPrefs command to pop preferences off the stack and restore the values. See PopPrefs. Note that the preferences stack is global, not buffer-specific, so you could PushPrefs one buffer's preferences, switch buffers, then PopPrefs those preferences, thereby altering the preferences for the second buffer. The maximum preferences stack depth is 32.

PushPrefs and PopPrefs are useful in macros that require certain preferences to work properly. A macro can PushPrefs, change any preferences necessary, do its work, then PopPrefs to restore the users previous preferences settings.

PushPrefs saves the following values on the preferences stack:

        AutoIndent   DoUndo    NoFileReq    StatusBar
        AutoPrefs    FastGUI   PreserveCR   TabSize
        Binary       FreeForm  ReadOnly     Turbo
        CaseSearch   HexCode   RightMargin  VerboseMacros
        ClipNumber   Insert    SearchBack   WordWrap