"Fossies" - the Fresh Open Source Software Archive

Member "ne-3.2.1/doc/html/PushPrefs.html" (2 Oct 2019, 4052 Bytes) of package /linux/misc/ne-3.2.1.tar.gz:

Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the ne-3.2.1.tar.gz project site itself.

Next: , Previous: , Up: Preferences Commands   [Contents][Index]

4.9.22 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 document-specific, so you could PushPrefs one document’s preferences, switch documents, then PopPrefs those preferences, thereby altering the preferences for the second document. 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  DelTabs   NoFileReq    StatusBar  VisualBell
  AutoPrefs   DoUndo    PreserveCR   ShiftTabs  WordWrap
  Binary      FreeForm  ReadOnly     Tabs
  CaseSearch  HexCode   RightMargin  TabSize
  ClipNumber  Insert    SearchBack   UTF8Auto