From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#21012: 25.0.50; eww: last char of a line sometimes not fully visible Date: Thu, 09 Jul 2015 22:06:16 +0200 Message-ID: <87egkh3xl3.fsf@web.de> References: <87twteh65g.fsf@web.de> <83d202v2m2.fsf@gnu.org> <87wpya5rey.fsf@web.de> <83a8v6ukbe.fsf@gnu.org> <834mlduyz8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1436472440 21758 80.91.229.3 (9 Jul 2015 20:07:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jul 2015 20:07:20 +0000 (UTC) Cc: 21012@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 09 22:07:10 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZDI6A-00064R-1O for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jul 2015 22:07:10 +0200 Original-Received: from localhost ([::1]:41645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDI69-00031W-7m for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jul 2015 16:07:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDI65-00031O-J1 for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2015 16:07:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDI62-0004UR-Cc for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2015 16:07:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDI62-0004UK-93 for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2015 16:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZDI61-00040a-No for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2015 16:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Jul 2015 20:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21012 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21012-submit@debbugs.gnu.org id=B21012.143647239015368 (code B ref 21012); Thu, 09 Jul 2015 20:07:01 +0000 Original-Received: (at 21012) by debbugs.gnu.org; 9 Jul 2015 20:06:30 +0000 Original-Received: from localhost ([127.0.0.1]:45535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDI5W-0003zo-4s for submit@debbugs.gnu.org; Thu, 09 Jul 2015 16:06:30 -0400 Original-Received: from mout.web.de ([212.227.15.3]:58646) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDI5U-0003zZ-W4 for 21012@debbugs.gnu.org; Thu, 09 Jul 2015 16:06:29 -0400 Original-Received: from drachen.dragon ([2.202.71.232]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0M6Dve-1YoKXc2nLG-00yAaX; Thu, 09 Jul 2015 22:06:22 +0200 In-Reply-To: <834mlduyz8.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Jul 2015 18:34:03 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:GIjYjdzZWt802qT0FXqOB+e9znclbKD+LCfuk9NPGKO9lUM0pbP 8as8IATEiETdBDNnsvvYL+PXUtMZvzYBStd7oUQhEfBGsTaOpnQg6i/hXAIC/L68y6Ezsh7 WK/ViHZjBPUEUN6wKGmzCxqz3hgyFJoGlI6sJXpEHYfBjLOzjv3OLa8C9UKjIO7ADbjlzgM KwmmY3vAuwAwFS/2qmMGw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Xpk0ZIKz2Mg=:WycqRD+La2LARfLjNVEGMT tyNsx/3fdgkqhm2g3z5jrWNFiNf0YCRPEvlaYZYfoXgvFVlyPP7tRox+QMfTRZ9ufFQEarDMS 31Sym6W9X4IKcDRv1hRCAeA9E5BSilM4fAnrIUF1Hv50jTcqSsREWn2SqII9OXUnK26LTyrgC CrUaDlWXRQnJdfg1KDmcPWB5yxAgwrr4JIBAYtCdMhR1p4ygdNOlf42c0F5/yxAZL7BXTkvsM K3mmzHbBHx0jEEFcm8CtlqHJbv6M1nhzr/szUnasoC+JWDQKROQxia0s1SBM/zd6O/wXeEawI WxqDfAtNCN0Zqkk5vthmplhCCpJY1xSfKmMqmjLOQYYanzvxHwOopciU0196jnCxiPiUh/+Ii kURX0yLWAhD5wBGobbcJ9rXeykWaMufGseOgsveSZS5vRkAxCAhsOEpGguqQ0ImrYDOQVxIiV xfhotET5XrhMbEPisUOyRjl0olHJSGMKWuVG9tvxStUc7OlyxMsS3tu6m9IiYu9RVXkUjI7n4 90Sz5+Yoj33RDZw9IJPR84BH7dr9d45U3xwn1RLXLie1HdeNt8c+2x5UJgp9SML6n0oHcMZl6 dOHH+3Oqs8rDfWAJQCpCDEpuRQdG8inybJ97AmoUrO+AeVKwCWXl7ly9+2M6QZsdZt1EpIpdl 3Gh/iiBFGmEL9G1nhdszo1i8Xm9bmMVJQUQG+DomXezk6wcp8SR+w1cvI1cn/MxwMjqo= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104865 Archived-At: Eli Zaretskii writes: > First, regarding your suggestion above to use end-of-visual-line: this > is only TRT when shr-width is nil, i.e. shr is filling text to the > full window width. But shr-vertical-motion should also support the > case when shr-width is some specific number of columns or pixels, in > which case end-of-visual-line will put us at the wrong position. Ok, I kind of expected that. > Now to the issues I found. > > First, the value of shr-internal-width was computed incorrectly: it > used window-width, which, as you discovered, is more than the text > area width, and it subtracted 2 columns from that value, whereas it > really needs to subtract only 1 (since column numbers are zero-based). Good. > Here's a patch that attempts at fixing all but the last of these > issues; if it gives good results, I will install it. If not, please > show a test case that reproduces whatever problems are left. > > [...] Ok, thanks much so far. The problem described by me (from the screenshot) is however not completely fixed (recipe follows). What I originally posted seems to happen with any text, it is more likely to happen when you use positive text-scale-mode, and it still happens. If you want a precise recipe (though it's just a random example): emacs -Q, C-h C-a, click on the first link (named "Gnu Emacs") with mouse-2. In line 135, the last char is truncated. If you hit C-x C-+, you will find more and more partly visible chars the more you scale up. Using `end-of-visual-line' seemed to fix this, but we can't use it. Is `window-text-pixel-size' useful? Thanks, Michael.