From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: width of line numbers Date: Tue, 22 Dec 2020 10:23:26 +0100 Message-ID: <87eejip4ju.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17591"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.7; emacs 27.1.50 To: gnu-emacs-help@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 22 10:35:32 2020 Return-path: Envelope-to: geh-help-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 1kre4q-0004Sp-Er for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 22 Dec 2020 10:35:32 +0100 Original-Received: from localhost ([::1]:42894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kre4p-0001Ek-GF for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 22 Dec 2020 04:35:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kre4F-0001Ed-55 for help-gnu-emacs@gnu.org; Tue, 22 Dec 2020 04:34:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55812) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kre4E-0004Oh-Uh for help-gnu-emacs@gnu.org; Tue, 22 Dec 2020 04:34:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47576) by fencepost.gnu.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kre4E-0004UQ-C2 for gnu-emacs-help@gnu.org; Tue, 22 Dec 2020 04:34:54 -0500 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:40125) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kre4C-0004Mo-LX for gnu-emacs-help@gnu.org; Tue, 22 Dec 2020 04:34:54 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 1386F307 for ; Tue, 22 Dec 2020 04:34:49 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 22 Dec 2020 04:34:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=LO2P5cyKWrjaXtuJWqeLS2hEq9BoawAAD+btaLdcEgA=; b=d4c8/kF9 A0/3vWVmqD1NfuM4rNF8jMvwRfNul3d8P+mNr3zGCmN6FjRNCtElwqUJNqnGw1K/ P2gXOtoE6XSZ99rz+CELuafcwMM47gWbJg8v5lSUGpPQZemDsYNx9OzGclte5Cmz j1q3kF4zVPVglwYAjouaG6G0DAnScVZ0aQpmPgIBkns5zCFH1502GmeS023HXCx8 w44SY8kcasFUJi6iFy+Bvsud/TbwfvDQkBCzeOWXYJjfqjvA8P4fbYZiu1oID7wq aCD+MQH6K84bVNdcLEl0v8N0Ufyt/A1/STM68m77N4l9hLLQ+1V/l+XvNip+LcNq BgTBt9JpSPfFfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=LO2P5cyKWrjaXtuJWqeLS2hEq9Boa wAAD+btaLdcEgA=; b=UuJtYCWmQ/zMbUCHiBVTDeE6vubYXd/sWP1+xHAzvrBVk ZMpJ7+3ns1gtjxn/7aFLrbelgBgY5EW3Q2sPVunp08Hq98Pzj40uKIwzbnvbXxB5 iUvMcERn3PETfgbdMuo3hziQIBYAX/6D6xrF3nFXkzW9UAnsiV0oY1fF2HBd7zvQ r0vXSqElhnHkZ+Mo+g2QhEe1aAA+fl4VGZL71+vDHM8vXW8cuZRMs+FGMKziF+wx pJ64M35rjUuN064hx1h0C7J8tZ+giMUJRqMpxR7ox9GhJfmzKElZXblQlNHHgcz6 snvdb6Lh3Vke6brn3ml43NvwFSfWzF/1bRzD5ooaA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddtgedgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpegfhffvufffkfggtgesthdtredttd ertdenucfhrhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghr shesfhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepudeufedttefgleekhe eihfegtdelvdeutddvvedukedtieffiefhgfdvhfdtudefnecukfhppeelhedrledtrddv vdegrddvgeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from Lenovo.fastmail.com (ip5f5ae0f6.dynamic.kabel-deutschland.de [95.90.224.246]) by mail.messagingengine.com (Postfix) with ESMTPA id 2400B1080057 for ; Tue, 22 Dec 2020 04:34:48 -0500 (EST) Received-SPF: pass client-ip=64.147.123.21; envelope-from=joostkremers@fastmail.fm; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126666 Archived-At: Hi all, I was wondering if there's a way to find out the width of the current line number display (with `display-line-number-mode`, not `linum-mode`). Or, alternatively, get the window width without the line number. Both `window-body-width` and `window-total-width` (why are there two functions, BTW?) report the width of the text area without "dividers, scrollbars, margins, fringes", but the line number display is still included. TIA -- Joost Kremers Life has its moments