From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Allowing point to be outside the window? Date: Sun, 05 Dec 2021 15:16:13 +0800 Message-ID: <871r2rserm.fsf@yahoo.com> 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> <83v9034j9z.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22342"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: dick.r.chiang@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 05 08:17:45 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 1mtlmK-0005e6-PK for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 08:17:44 +0100 Original-Received: from localhost ([::1]:46356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtlmJ-0006YA-KS for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 02:17:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtllD-0005rj-L6 for emacs-devel@gnu.org; Sun, 05 Dec 2021 02:16:35 -0500 Original-Received: from sonic308-56.consmr.mail.ne1.yahoo.com ([66.163.187.31]:36161) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtllB-00038b-Te for emacs-devel@gnu.org; Sun, 05 Dec 2021 02:16:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638688580; bh=uzsB0PF06BQE4fj+F/a+bv4oqfoPNrV7Ueh0A21jsAs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=O9UQMHepG/07/VdVU8IX82haSz/wwNwszgqoV7kFWp6j2N3McIyReCG0hD/MTPGw98usYpXl8e0ys9uax3WCiHobPMXQmsEOLuJZzc4+/qTi19h0H64JWVJZIzoDVU15ejFWF/3wfETD4LVxOL6QGb/4LvE19fCI1UWDIwCEZPrLb7WTCp27JcdDuyDyms2STA4ampc4EopkiMSoKNv+Le1pU02NY0SIxzkdmZ1isIbvUEpgNTG8mipGv4WX28LFk4RsqUsvhTR5XABInF/s3DkfNZslAeRfgvQ0DvnvkaQ3y3+og9g6XFC/zahqWc0RbkbfwU1chX88/ghgzhEYTQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638688580; bh=324klU54CzGFMmUJZqrtZUOqQaEZnak6IOZAUhC1/Xk=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=nAPVIqomWzPvJAZRdF/bsPtxCdQRR1V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ezYbtHXdRTFdzP4UHj_KdlxqlQCtfHk3de_N713NEn7wvg5OM6pIJyVZUfjj4UffUdIDC.o8J o6t2q1j3efexx6bnhWRiLkT4_H3Yz5jgmnjISYKUro X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Sun, 5 Dec 2021 07:16:20 +0000 Original-Received: by kubenode502.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 2be7933aed5429941b0fbd71ad4ee875; Sun, 05 Dec 2021 07:16:18 +0000 (UTC) In-Reply-To: <83v9034j9z.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 05 Dec 2021 09:12:40 +0200") X-Mailer: WebService/1.1.19306 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.187.31; envelope-from=luangruo@yahoo.com; helo=sonic308-56.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:280966 Archived-At: Eli Zaretskii writes: >> 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. I meant to ask whether or not I can forgo calculating whether point is outside the window, and just test whether or not cursor.vpos is -1 to determine if the cursor should be displayed, when point is allowed to be outside the window. Thanks.