GNU bug report logs -
#13399
24.3.50; Word-wrap can't wrap at zero-width space U-200B
Previous Next
Reported by: martin rudalics <rudalics <at> gmx.at>
Date: Thu, 10 Jan 2013 08:31:02 UTC
Severity: wishlist
Found in version 24.3.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
> Very simply: it simulates the display. See pos_visible_p (which
> posn-at-point calls). That's what I meant when I said that doing this
> for determining the line width or height should be easy.
Here I see the following call sequences:
`fit-window-to-buffer'
-> `count-screen-lines' -> `vertical-motion' -> move_it_to
-> `pos-visible-in-window-p' -> pos_visible_p -> move_it_to
So everything `fit-window-to-buffer' does ends up calling move_it_to and
the loop called via `pos-visible-in-window-p' is likely silly. Using
`posn-at-point' -> `pos-visible-in-window-p' -> pos_visible_p -> move_it_to
`window-end' -> move_it_vertically -> move_it_to
probably won't produce anything else. This means that somehow
move_it_to fails to DTRT here.
I don't have a deterministic scenario to produce the bug. I attach a
file you can try via `eval-buffer' followed by M-x foo. After that
you'd have to resize the frame randomly (usually shrinking it
vertically) until it hides the last line(s) of the *foo* window. This
usually takes a few seconds here.
The hiding does not occur when I do not draw a box around characters. I
didn't try different character heights, bold face, etc. so far. Note
that in normal work I use a maximized frame and the bug shows up
frequently when changing text in *foo* (using another hook) or the
window configuration.
I now have to manually trigger `window-line-height' on each of *foo*'s
lines when the hiding occurs, add the return values, and try to find out
what goes on. This will take some time. If you have a better idea, I'd
be all ears.
martin
[foo.el (application/emacs-lisp, inline)]
This bug report was last modified 4 years and 245 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.