David Reitter <[EMAIL PROTECTED]> writes: > Your patch works well, except that wrap-column behaves like default- > wrap-column: I need to set it and create a new buffer for it to come > into effect. It should affect the current buffer when it is changed.
It works like other buffer/window setting (e.g. display margins). default-wrap-column is the default value for buffers which don't set wrap-column explicitly. (default-)wrap-column is only used when creating a _window_ to show the buffer, as the default for the window's wrap-column (see function set-window-wrap-column). So if you set wrap-column, switch buffers twice in the window (to hide and show buffer). > The next step would be to allow for wrap-column to follow the width > of the window (probably easy) What do you mean? > and to support - at least in the case > of (eq wrap-colum 'max) (i.e. follow the window) - variable-width > fonts. It supports variable width fonts -- it is just the wrap-column that is set in units of the default frame font. > > Having functions to move up and down "into" a wrapped line would be > something that would be a great help in Emacs 22. If they're not > bound to up/down by default, the functions can't break much. (if I > had the technical knowledge about Emacs' display engine, I would > write a patch - sorry!) This can be done in lisp - there are packages that does this for continuation lines already. Can't remember its name right now. The relevant function to use is "vertical-motion". -- Kim F. Storm <[EMAIL PROTECTED]> http://www.cua.dk _______________________________________________ Emacs-pretest-bug mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
