From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.bugs Subject: bug#22891: Date: Sat, 23 Apr 2016 20:42:30 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c09daf049977305312b4e5f X-Trace: ger.gmane.org 1461437005 8785 80.91.229.3 (23 Apr 2016 18:43:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Apr 2016 18:43:25 +0000 (UTC) To: martin rudalics , Constantine Vetoshev , 22891@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 23 20:43:15 2016 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 1au2WR-00021Z-Aw for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Apr 2016 20:43:15 +0200 Original-Received: from localhost ([::1]:53241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1au2WN-0007ve-Du for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Apr 2016 14:43:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1au2WH-0007oG-F6 for bug-gnu-emacs@gnu.org; Sat, 23 Apr 2016 14:43:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1au2WE-0007dr-8U for bug-gnu-emacs@gnu.org; Sat, 23 Apr 2016 14:43:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1au2WE-0007dV-3Q for bug-gnu-emacs@gnu.org; Sat, 23 Apr 2016 14:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1au2WD-0002eu-So for bug-gnu-emacs@gnu.org; Sat, 23 Apr 2016 14:43:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Apr 2016 18:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22891 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22891-submit@debbugs.gnu.org id=B22891.146143695610190 (code B ref 22891); Sat, 23 Apr 2016 18:43:01 +0000 Original-Received: (at 22891) by debbugs.gnu.org; 23 Apr 2016 18:42:36 +0000 Original-Received: from localhost ([127.0.0.1]:44284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1au2Vo-0002eH-LR for submit@debbugs.gnu.org; Sat, 23 Apr 2016 14:42:36 -0400 Original-Received: from mail-vk0-f51.google.com ([209.85.213.51]:36291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1au2Vn-0002e2-Qn for 22891@debbugs.gnu.org; Sat, 23 Apr 2016 14:42:36 -0400 Original-Received: by mail-vk0-f51.google.com with SMTP id n67so150610583vkf.3 for <22891@debbugs.gnu.org>; Sat, 23 Apr 2016 11:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc; bh=XiBqbNVgynfxPYlisHBH0ZM4k9AHW1ejxNqUbZ1MJwc=; b=nal+q4BKp6RQ/upLGOpqqI8yaywLEiONXO9SI1Qj3tPlYMuwTc5dVwYPxkjxOpgG77 hhSKFPjtp0G7jvS20w1/Ff46wn/gofS8IRNMpYeVPYfs0EXEw8Zxd0h9TcwvuCNY3/GK NJ5SBX2x79/IzsUGA4slklxRNY0r/I2hgO/2Q26CaAKuxYGFcRfEIvqAneXgAzrlgsag 0BEqrrBOHQJWD74ZJ+gCMoVEBg1OEoiIfr/SdkC/BSds/bfeCTLhYZTOZYwF7+hEVAK7 00nTwlJ5E2QlyGHoM5mNB2chZlcmmJ9IunfivxjvhGy0ywlnidQDourD1rTfS3ldU5Sb v9Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc; bh=XiBqbNVgynfxPYlisHBH0ZM4k9AHW1ejxNqUbZ1MJwc=; b=LKAqI9Zdhd/xkWM+FZBe3ms3H1saEmw2IuDpJrdXtZG3X8QXbxclmoCH9fdgjlWDX9 ioeuUPAe53xacewYdgE8+hP/U3imeY3Kkk6n3WT8Dgew2Nbjinx68+duBaxMZJhrIU5I sANXQExJLwp91V0dxv+kBWsk0Q4hblO3IuU5YzYyT7/ugZXf6F9UtLci5XhkTmHufnSU 6QA3WeY58YOt9JZ5ipRHnEbqCt990RczpMBQg5GGTjv37wmp4AYzpW7c11jvqBdPcaQZ CAnSGISwNiXzcFDjNFKG5eVeJH/n9DSWDVk7gcJ5n/w1FqCWIsALt9IirmILDDTjzZxW ygtg== X-Gm-Message-State: AOPr4FX9SJ2o/vjge1fOzRi3Fz8Aeovbz6jVjfMkJ60oltxujM5IqzNEk5TQgQ51fxQ9YeN2ViBfdj0WDKFCJw== X-Received: by 10.176.3.176 with SMTP id 45mr10511866uau.60.1461436950351; Sat, 23 Apr 2016 11:42:30 -0700 (PDT) Original-Received: by 10.31.214.131 with HTTP; Sat, 23 Apr 2016 11:42:30 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:116716 Archived-At: --94eb2c09daf049977305312b4e5f Content-Type: text/plain; charset=UTF-8 Hi! I think that I already have solved this, but awaiting confirmation I haven't committed the change. In short, when either fringe is zero, Emacs reserves one column for a terminal-style continuation character. The function `window-adjust-process-window-size' in window.el should use `window-max-chars-per-line' rather than `window-body-width' to take the continuation character into consideration. See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22891#26 for details. In that message I also suggested removing `term-window-width' and instead use `window-max-chars-per-line', as both functions use a complex algorithm to determine whether or not a column is reserved for the continuation character. Well, since I wrote the suggestion, a bug was found and fixed in `window-max-chars-per-line' while the bug still remains in `term-window-width'... -- Anders --94eb2c09daf049977305312b4e5f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!

I think that I already have solved this, but aw= aiting confirmation I haven't committed the change. In short, when eith= er fringe is zero, Emacs reserves one column for a terminal-style continuat= ion character. The function `window-adjust-process-window-size' in wind= ow.el should use `window-max-chars-per-line' rather than `window-body-w= idth' to take the continuation character into consideration.

See= http:/= /debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22891#26 for details.

I= n that message I also suggested removing `term-window-width' and instea= d use `window-max-chars-per-line', as both functions use a complex algo= rithm to determine whether or not a column is reserved for the continuation= character. Well, since I wrote the suggestion, a bug was found and fixed i= n `window-max-chars-per-line' while the bug still remains in `term-wind= ow-width'...

=C2=A0 =C2=A0 -- Anders

--94eb2c09daf049977305312b4e5f--