From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: move_it_vertically_backward question Date: Thu, 16 Dec 2021 15:59:40 +0200 Message-ID: <838rwkhcqb.fsf@gnu.org> References: <87lf0pw78r.fsf.ref@yahoo.com> <87lf0pw78r.fsf@yahoo.com> <837dc8mue3.fsf@gnu.org> <874k7cuhv4.fsf@yahoo.com> <83lf0nl56t.fsf@gnu.org> <875yrrtiwj.fsf@yahoo.com> <837dc7l2pa.fsf@gnu.org> <87ilvqty24.fsf@yahoo.com> <8335muj8zk.fsf@gnu.org> <87h7bang3d.fsf@yahoo.com> <83mtl1j527.fsf@gnu.org> <87zgp1mldh.fsf@yahoo.com> <83tuf9gdg5.fsf@gnu.org> <87pmpwkikp.fsf@yahoo.com> <83mtl0hnm5.fsf@gnu.org> <87czlwkfpk.fsf@yahoo.com> <8735mskal2.fsf@yahoo.com> <83ee6che8h.fsf@gnu.org> <87y24kisgf.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28880"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 16 15:04:48 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mxrNI-0007Kl-3Y for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Dec 2021 15:04:48 +0100 Original-Received: from localhost ([::1]:56740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxrNG-0003fF-UV for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Dec 2021 09:04:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxrId-0006kU-0n for emacs-devel@gnu.org; Thu, 16 Dec 2021 08:59:59 -0500 Original-Received: from [2001:470:142:3::e] (port=35872 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxrIc-00038x-OV; Thu, 16 Dec 2021 08:59:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=cSCd4GKDTdJCpTyAOrb3d10V7i/zoh4a1UkjP3PObmA=; b=Los8G0YB2YA0 Nr0nJpaWiYZpqyexLKLLyF0FyxytmD4FwNXMq4cfznBkE9rutMvywbb3J6/daiflSom5+MDjhV9ty YygncmFJF/Yh92Qhn1dtSgtZDqgZ51g0gGtYltm5tWQbGDxYf7Zjmlz06yacYJ9uuVgz3pYfrSpqB mTWBq4IypFS2X5eDcYIW9vUXLZ39KJfxO5FFftgj8sNIpmhB9U0uaqHSFsNH4Udd4e8AUAIHrVIyk 1jgnw4SE5q96ZiTI7N3Me1lCP6V0iKhX2WHGO9nxyyY3B2gwCEx9z7iPaIKBvEnRURmPXKLjN9m9L oDyKqQJxNw6vcex6qyUu2g==; Original-Received: from [87.69.77.57] (port=4897 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxrIc-0007PO-Et; Thu, 16 Dec 2021 08:59:58 -0500 In-Reply-To: <87y24kisgf.fsf@yahoo.com> (message from Po Lu on Thu, 16 Dec 2021 21:34:40 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:282157 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org > Date: Thu, 16 Dec 2021 21:34:40 +0800 > > Eli Zaretskii writes: > > > What would such a primitive be used for, except for your specific use > > case? > > I can't think of any offhand, but I can't think of any other use case > for the modification to the `from' parameter of `window-text-pixel-size' > either. The difference is that window-text-pixel-size already exists, we just extend it for another use case. > > Since ascent+descent are the line height, I don't understand why this > > would be useful. > > In this case, we don't want the line height of the line up to TO > (because window start might be inside a line, such as in Info buffers > and when there is a line-prefix property). Well, then this is equivalent to telling window-text-pixel-size to stop at the visual left edge of a screen line, right? That is, interpret TO not as a literal buffer position, but as the visual beginning of the line which shows position TO.