Next: , Previous: PushPrefs, Up: Preferences Commands


4.9.19 PopPrefs

Syntax: PopPrefs [n]
Abbreviation: POPP

pops n sets of preferences from the preferences stack (where they were placed previously by PushPrefs) and applies those preferences to the current buffer. See PushPrefs. If not specified, n defaults to one. Note that the preferences stack is global, not buffer specific. Therefore you could PushPrefs one buffer's preferences, switch buffers, then PopPrefs those settings 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.

PopPrefs restores the following values from the preferences stack:

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