[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: flyspell + longlines: hang/wait
From: |
Kim F. Storm |
Subject: |
Re: flyspell + longlines: hang/wait |
Date: |
Tue, 01 Nov 2005 19:59:55 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
David Reitter <address@hidden> 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 <address@hidden> http://www.cua.dk