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.help Subject: Re: Correct way to implement `pixel-point-and-height-at-unseen-line'? Date: Wed, 15 Dec 2021 15:11:51 +0200 Message-ID: <834k7aj9m0.fsf@gnu.org> References: <87pmq1wag9.fsf.ref@yahoo.com> <87pmq1wag9.fsf@yahoo.com> <838rwomv73.fsf@gnu.org> <87czm0uifx.fsf@yahoo.com> <83bl1jl3ej.fsf@gnu.org> <871r2fthzg.fsf@yahoo.com> <835yrrl0ue.fsf@gnu.org> <87wnk6snsq.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6498"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 15 15:11:21 2021 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 1mxV04-0001Va-Te for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 15 Dec 2021 15:11:21 +0100 Original-Received: from localhost ([::1]:51896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxV02-0001Ec-S5 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 15 Dec 2021 09:11:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxU4t-000608-Ex for help-gnu-emacs@gnu.org; Wed, 15 Dec 2021 08:12:16 -0500 Original-Received: from [2001:470:142:3::e] (port=48104 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 1mxU4p-00011P-Su for help-gnu-emacs@gnu.org; Wed, 15 Dec 2021 08:12:15 -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=Mzze5VmRF9bbl09iQ3nz8xU64Mf3vsR+S+8So9zkttU=; b=MZ0NA3zCjSfV Opmhz4JR55iw0kIFGV+yUXYxstsfcNjN6tR2ON0BYhGMr5LSTBNeNsjuNxAuxXKMbJcAcdWpeKpW3 ILPB/3gSZKcVBtyE8MukmaoqvUinuatAHPyo3UT0MfRyQf6WfeHBWbaI7YNhBPkIVZeD8qr8Os5r/ nIe4dCTwRijZWho0tMP3eHNFmkGm/0LdDsZ8NsgE6pPM2hj0BDO4hSBQOtv48m1vWl7Ofei+Fhnws oPIPvW69kGKyr5tBx7nQWsZQSQtGtAyjG0PgRXmjtXSpOZW9h2LVlhnFnn0fP7qnixtMuoBY2sIqR X/AD0nOIDc2aKe4y4FjslA==; Original-Received: from [87.69.77.57] (port=1137 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 1mxU4n-0007c3-TE for help-gnu-emacs@gnu.org; Wed, 15 Dec 2021 08:12:11 -0500 In-Reply-To: <87wnk6snsq.fsf@yahoo.com> (message from Po Lu on Wed, 15 Dec 2021 08:40:37 +0800) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:134979 Archived-At: > From: Po Lu > Cc: help-gnu-emacs@gnu.org > Date: Wed, 15 Dec 2021 08:40:37 +0800 > > Eli Zaretskii writes: > > > But if you always need the line before window-start, i.e. use N = 1, > > then why is that a problem? > > Ah, I think we're misunderstanding things: > `pixel-point-and-height-at-unseen-line' is part of a much larger system > that tries to find the line (and pixel distance) for N = foo, by > iterating through lines where N = 1. Well, I did ask you to describe what you need to do, and responded to the only description you gave ;-)