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: Allowing point to be outside the window? Date: Sun, 05 Dec 2021 09:12:40 +0200 Message-ID: <83v9034j9z.fsf@gnu.org> References: <87ilwd7zaq.fsf.ref@yahoo.com> <87ilwd7zaq.fsf@yahoo.com> <83bl24yaed.fsf@gnu.org> <87sfvg7l51.fsf@yahoo.com> <83zgpowu23.fsf@gnu.org> <87zgpo5tws.fsf@yahoo.com> <83pmqkwi6r.fsf@gnu.org> <87v90c5su6.fsf@yahoo.com> <83o864wg2a.fsf@gnu.org> <87ilwb68ck.fsf@yahoo.com> <83zgpnunfo.fsf@gnu.org> <87fsrf3xmd.fsf@yahoo.com> <83y257ulfp.fsf@gnu.org> <8735ne4e0e.fsf@yahoo.com> <87czmcvcs1.fsf@yahoo.com> <87k0gkjzj3.fsf@dick> <87r1astsle.fsf@yahoo.com> <87ee6rubcz.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2011"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dick.r.chiang@gmail.com, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 05 08:13:21 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 1mtli4-0000Kb-35 for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 08:13:20 +0100 Original-Received: from localhost ([::1]:44330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtli2-0004xx-Nf for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 02:13:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtlhW-0004Hw-92 for emacs-devel@gnu.org; Sun, 05 Dec 2021 02:12:46 -0500 Original-Received: from [2001:470:142:3::e] (port=60766 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 1mtlhW-00044y-01; Sun, 05 Dec 2021 02:12:46 -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=6mcAKq3B/r+7miPgGnkJ5Q9ExaYD6STo+dxY7y6aO44=; b=JLd1EcRAGrqr OVt7O5WERUgttKEab4aYV5qt3ENLXJbHIgfGtcRYAswS7fESnWg/tx+izZlwnrtujrDY9a1VUoZVp rS9B+or/9qnHynx233fSFUAlYrPzHK5HPyYg+MUndJoSORek97W8K+8v12EYO8rthOtcmCJSNIZFB JNTSyXz+nDlqvdsnx7CrCHqK1KTg1au0YNsT/ciuCgFqDlJu2S6TgHKBBa+tN0GuvO2htyNQ7stOc ijz1mcLZ0WF2iYNXsxACYEoObyeO2OndeviQBgAzkcsZqaJAlkocM3dcPBlsuphjlOhXL0sNMj9V9 wW71XzVHn6Q8nZPXZN5NCg==; Original-Received: from [87.69.77.57] (port=2850 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 1mtlhV-0004kL-LJ; Sun, 05 Dec 2021 02:12:45 -0500 In-Reply-To: <87ee6rubcz.fsf@yahoo.com> (message from Po Lu on Sun, 05 Dec 2021 08:46:52 +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:280965 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org, dick > Date: Sun, 05 Dec 2021 08:46:52 +0800 > > Eli Zaretskii writes: > > > But you could perhaps avoid a separate flag if you'd set > > w->cursor.vpos to a negative value when the cursor is outside of the > > window. > > Actually, it now seems that cursor_visible_p is currently totally > redundant: cursor.vpos is already -1 when the cursor is supposed to be > invisible. > > Can that value be relied on? Depends what for and how you want to rely on it. It basically says that the cursor position inside the window is unknown. The "normal" redisplay must always calculate some reasonable coordinates and put them there, otherwise the cursor will not be visible, which is a display bug. If that is enough for you, then yes, you can rely on it.