A little disappointed so far

Skip Montanaro skip at pobox.com
Mon May 19 16:39:49 EDT 2003


    >> By collapsing the intervening blocks down to a line or so.  I
    >> sometimes use the PythonWin editor which has little +s and -s in the
    >> left column that, when clicked on, expand and collapse compound
    >> statement blocks.  This make it *much* easier to line up a statement
    >> with one above that would otherwise be off the screen.

    Guy> Is there an editor on Unix that can do this?  In particular, is
    Guy> there a way to get gvim to do it?

Dunno about g?vim, but X?Emacs can do this:

    C-x $ runs `set-selective-display'

    `set-selective-display' is an interactive compiled Lisp function
      -- loaded from "/Users/skip/src/xemacs-21.5.9/lisp/simple.elc"
    (set-selective-display ARG)

    Documentation:
    Set `selective-display' to ARG; clear it if no arg.
    When the value of `selective-display' is a number > 0,
    lines whose indentation is >= that value are not displayed.
    The variable `selective-display' has a separate value for each buffer.

so if I type "C-u 12 C-x $", all lines with indentation >= column 12 will be
elided from the display.

Skip






More information about the Python-list mailing list