From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add function window-line-width Date: Thu, 7 Nov 2019 09:40:03 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="108715"; mail-complaints-to="usenet@blaine.gmane.org" To: =?UTF-8?Q?S=c3=a9bastien_Chapuis?= , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 07 09:46:29 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iSdQy-000Rxs-Tz for ged-emacs-devel@m.gmane.org; Thu, 07 Nov 2019 09:46:29 +0100 Original-Received: from localhost ([::1]:39812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSdQw-0007F9-SJ for ged-emacs-devel@m.gmane.org; Thu, 07 Nov 2019 03:46:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51566) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSdKx-0007Cv-VY for emacs-devel@gnu.org; Thu, 07 Nov 2019 03:40:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSdKw-0000hW-0J for emacs-devel@gnu.org; Thu, 07 Nov 2019 03:40:14 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:35903) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSdKv-0000BA-IH for emacs-devel@gnu.org; Thu, 07 Nov 2019 03:40:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1573116004; bh=M8SJSHiVkETJNYiGlH3Z0v6gdvpAuMEdEFnA8Pmusq8=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=NSdEUUqe+i8Wd5gqoSciwWJ7te/oeHpPdd82dVfGP2yC3FX4eC3aF7Eww7BvaZE3N zfBPA8gCK4tzNJY2FG4YT9eToYJEFlMxOTDNHlDiIl2WuAvn8fQHFxSnmSNwF1KEYL TiQgLbYx2SxkF9RfopxliAeqH0dQrC895rkHnN58= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.102] ([212.95.5.31]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mbir8-1hw2wM1ZXC-00dJVX; Thu, 07 Nov 2019 09:40:04 +0100 In-Reply-To: Content-Language: de-AT X-Provags-ID: V03:K1:w0t1ld+ijpbMp6zLA8kMEDoaUARRmQ+pRC99lGcGceonbiIJBCX eXjCtWJVZyCXLZYJfu8OpiB1mH4o7FkG6P+TBaaw4NNaOU8IqwmrIi9V8sIE72jpVeL01LJ dag/YPcSVQaQh6Pn61f9VPWVKAYePm7Vk/ocGNor7VYDpJ8zt7MmptMYjRmIYsfyiXo3whO wTSnA04XNru3B+e70aP6g== X-UI-Out-Filterresults: notjunk:1;V03:K0:F3ksCToDgMY=:t92FPYiB/V/zYOa9Cc5vcQ owLhF4QOD2CueniOyPzKnINg+d2RhXwYDVKZ6Hx+qYcQnLdZsToZEk+Xt74F7biC+9tZQrQxP zJZVdmvAzBxTBl2Hp7zxHvK1RaRLYq8WDkmK/LHFZfZQJSEWUpmPLgGA4at5N9zuV2NJWcGb7 1tFDEg2eHPyP7zR8Yuz9cKbjcf8u0+1sHT9ltdPJreJi+66EoH6nsSix5Mc9Lex1lZqYVzEXj sURdsApTFKKi4Ww5T9pw6j3Yldn76fS4RCDP7ys8NG5JTd0yXbKKRbmqV1o95IKXAZxvMilxl dL/pVQ6v5w9EIZsuk+oTJqd4MQ43DE9ijGNr3yo1KmkZJSnNqrUiXZUqVXi+mryKc7ggIf7tn UBQnhdpw+uB+NIZbiy/2z66Kc9imv96WHnMsMfbDJF4ZGLycnc/z8V6Nv/Fb4V+fQHqQOmnpP eRnVd+d6babppiO+TvvAJC5qs8oVmNae5J+sQvoXMlSExTZDQSuUAe4v1uyV54sAgd727KBv2 u7VM/jq7I+U/ryueWwsP/Z22PKHnTiApoqBgBAVO8PQyVe70NXqhKC3nr1L0eME7Odcr1/N4k KbKHwSnw2AdzFH/aSWLNhqq9PhQq4sqIi7cqQpcjOGqQ+h0Eucy8Ff2nZQm7vO9nkyleTL0g0 rJtw50Pl8iNOR9rMwdynK/IyPeYIcV+qR2pzKl63Df0NLP9nr6ktm11B7utvpEMXeig4v26dj JUIuH8HNoR+jfMhs2OikiflUFpOGjfg4ETww+fbFo45obLeukYifqMyZPo6nA3Kuni40hcY9 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241903 Archived-At: > I would like to propose the function `window-line-width'. > This is to use it in the package lsp-ui[1] Note that (window-text-pixel-size nil (line-beginning-position) (line-end-position)) does already return the size of the current line. Some sort of x-limit is advised in order to handle overlong lines. martin