From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59963: 29.0.50; 'window-max-chars-per-line' doesn't always work on GUI without fringe Date: Sun, 11 Dec 2022 20:50:13 +0600 Message-ID: <87tu22c7ve.fsf@disroot.org> References: <87edt6dwgq.fsf@disroot.org> <83sfhmt30p.fsf@gnu.org> Reply-To: Akib Azmain Turja Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27595"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59963@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 11 16:36:44 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p4ONg-0006wF-3m for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Dec 2022 16:36:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4OIC-0002BW-2G; Sun, 11 Dec 2022 10:31:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4OIA-00027x-4b for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2022 10:31:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4OI9-0003pW-Sg for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2022 10:31:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p4OI9-0005cX-Jd for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2022 10:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Akib Azmain Turja Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Dec 2022 15:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59963 X-GNU-PR-Package: emacs Original-Received: via spool by 59963-submit@debbugs.gnu.org id=B59963.167077265321598 (code B ref 59963); Sun, 11 Dec 2022 15:31:01 +0000 Original-Received: (at 59963) by debbugs.gnu.org; 11 Dec 2022 15:30:53 +0000 Original-Received: from localhost ([127.0.0.1]:46637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4OI0-0005cI-NN for submit@debbugs.gnu.org; Sun, 11 Dec 2022 10:30:53 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]:34840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4OHz-0005cC-5p for 59963@debbugs.gnu.org; Sun, 11 Dec 2022 10:30:51 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id CCD0641607; Sun, 11 Dec 2022 16:30:49 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5AQ69Chk_HGk; Sun, 11 Dec 2022 16:30:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1670772648; bh=OnD5xtYPfqYx3vSQzL3yaDvv1YVXQdayaYZV3sYbe2E=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=gdDZp47Kl1Ld0MdHsh8WOc3EIu+U/B2r5FoRqHqfPoUTKML4x2C8IMg0vCkYJtotE xCzZrDWWs04mrnoivFvj9DFKKW0KUe/9e7A9VTAxWwIExZYHY8PpaBSjvG862D6gve BFmhOunhsrY6ccdNtOJCbtQmHwJM5U229Wq+j4SkcOh6SI7nIAWhV+ALWqert7Busd s7Q7tB2ii6qb8bJAFa3Meu63Rj2/0BntkyVMlIVOVMEMmhT/xMRPrsZ060TCb7A6iy 6J+m53cXNHFP1QUyTWppg4R3x2Q8yLGVp3RukWzZtSq1fQmbB7gGYtSL5L0UYLjP57 Sso3jYdoTHKXw== In-Reply-To: <83sfhmt30p.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 11 Dec 2022 16:43:02 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:250616 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> Date: Sun, 11 Dec 2022 17:13:41 +0600 >> From: Akib Azmain Turja via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> 'window-max-chars-per-line' doesn't always work on GUI when fringe width >> is set to zero. Although it returns seemingly correct answer, actually >> writing that characters results in the continuation/truncation glyph to >> appear, decreasing the text area width. >>=20 >> I don't know precisely what condition needs to be meet for trigger the >> bug. But I think this is triggered when the width of the text area of >> window in character is a fraction. For example, my window is 1366px >> width, each character takes 8px; so my window is 170.75 characters >> width, and this triggers the bug. >>=20 >> This bug affects Term, Eat, Eat in Eshell, Coterm in Shell mode, Vterm, >> and possibly any other Emacs terminal emulator. >>=20 >> Reproduction steps: >>=20 >> 1. Run the command 'emacs -nw -Q' in any of the terminal emulators >> listed above. >> 2. Remove fringes with 'M-: (set-window-fringes nil 0 0)'. >> 3. To make the bug is even more clear, enable 'visual-line-mode'. >> 4. If everything seem to be OK, resize the window. > > I tried reproducing the problem, but couldn't: > window-max-chars-per-line returns a value correctly truncated to the > number of fully visible characters that can be shown on the line, > minus the continuation/truncation glyph if there should be one. I forgot to mention, probably you need to set 'window-resize-pixelwise' to t to get the correct width of reproducing the bug. =2D-=20 Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5 Fediverse: akib@hostux.social Codeberg: akib emailselfdefense.fsf.org | "Nothing can be secure without encryption." --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmOV7iUACgkQVTX89U2I YWvEmQ/+I9I/GbHsCpkUovbV9shDUmpOr8DYzoFmrxDPmECypNBrsnd5148nsTHM K7zPtM2G+CPClNfH98h1w54h0LmmfuTmxhHoaY/H1AuxEyMg3XlSRyGarYrCfKND osYpDy+6P6YrqHnruUXtzlGyvSom9gCySKmzZkEhA+EtwiiNVDQHRihlRbi8hO5I 9GL1zEx45ycJyHYcHJ+lzf0Z3CF3pTlevUWQ7x5GGM/zctnDIFHDaUP545ugRl4V akLG3NDBHbJRv2MPbTv8Y1VlD3Q6dWD4Or9H0/FadVAfNvds/saCD66JPnuM07vo PG4kvNVDqqsJptIxATH2PV86LOCO7pOSuPgzHA7Md/K4/AEFsdyuU4T+jZQyY5cC i3d99hhnr6zAcPfwVb1NuBx2qnzRJGS70I8aAgSsv6EvCec1vMCfskY5S9zTRyft 4MLA4PtX2VjtWa4JoFhP5y2vdF/AgSThpkLgDljcM9qYP9YntZMOBlmsYEcQWZrj Cam1CbGunkuH3BM6pqEXj2w/bRUDcjLFTMhoe1D/ZGbdiRAn1gFElE2fuMJV7UpE bp8pfZLN8pDJVVZjUfpp2hevfXm8ZEKoQSPDW69N8GYKsWLCuycIq9fl+KMjTvbH NColSYZzCQ6p3tVLPvhJFVN3mmsJDGd5UHVSu/KgmvCRdI9ytNk= =EQJW -----END PGP SIGNATURE----- --=-=-=--