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, 28 Nov 2021 21:10:25 +0800 Message-ID: <87v90c5su6.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18517"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 28 14:11:44 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 1mrJy3-0004aU-6Q for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Nov 2021 14:11:43 +0100 Original-Received: from localhost ([::1]:47314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrJy1-0007aS-4R for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Nov 2021 08:11:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrJwz-0006tQ-3G for emacs-devel@gnu.org; Sun, 28 Nov 2021 08:10:37 -0500 Original-Received: from sonic310-23.consmr.mail.ne1.yahoo.com ([66.163.186.204]:40528) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrJww-0005kz-Qi for emacs-devel@gnu.org; Sun, 28 Nov 2021 08:10:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638105033; bh=Y7JWC8KUYqPPjPw5fpWJnwkOzXzM0w50r33BVTG3Q3w=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=AL4ChaFuapY875T72ISbnOydCuBhV26n4XermaBdwy7VrxuoTupy2AVlNS0aX5ekE7T/Qvt5UOe1FxN0JAYwbKu6eaxBzdWsG6im2fl3rUkfMf7onhyfhwi7a3HcRv68yF9X2pfLiUVd8qEGOjhdvVfrGoQaK0KowP+8pSe9LiFF6Gvac10Sxic3dqbWE5zpWGSadrm45H6DcU7SZNmreApE7DXHrKzEIUH3ul384b95JmvcnhPpcjxILzR/yQCrMZZMbLIUsm/TvyuNymrL2d9QFS7JVXUC6C9kn5/za0hWxfKs2dk3jpL6UyKrLV9TA6DeLvgz0/ePDjzoU4wHUA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638105033; bh=+OdiDi5WUHHiJikUhaLHxDABhn7t2Y1fbwKY8KsGTZN=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=FlMYvIsH2GTBbBmQqrkvPY7sfLByEGyQmLFL9FQWDYLWmpmXMSzFCxlLgIp6zmhhJbuF0/eUKR0AgzJBofQAfbBuh8qtAcAG05ZKK/VMpnJ+VQ42T0Oy4TsouhH0wJl9ZlXWISGZUQ7j1Ku5C9QNZoBOpuiw0mSNBxwqLkAUEmizbShQ7qMZGPUpZT+IKWQlcJPmRUwGRcfEwSBOrCE3HWm89Z9/Q7sq6i+6rY3ivosYTEKWDjxLErq7cqdElD89ZXxRFkjvD5jMyqlzW4PRkJGQ+RwI72pvHIu9PC1b1hALMbbIu/SXph3FJI/IgPmDOqpq3hTK0tMO/6enW8kM0A== X-YMail-OSG: WwUKgV4VM1mmL3y.TSKrJH8C8nxsDFEJmkFdzSzGpfrTRETBYLoKoO4Hi0MFsYd mIh17IEFCY3mtJev95qkGHCdeq_2YjSzZbuHCiarRWT8DHfHEW211SE0q3s.ZNBAl0q00fz3Vzgy Cs.pu14Atao_P_1J5bbjEAjRGPTVjBpfEzg.9uG4cP6o.r9t0kG15jyXQWaZwIaxn9yfKs4aOMD8 B5u.3P9reJNBMfIw7gcvNsinFYFev5XYvw8kfvZLZzWW2GudQzGl74kOLbVJZVqBFg6ypcCxET9T tb2UJLrBPLwgtXhCH9WsHLZO1dlDuM0NNbRlE_7vND0mHNGMhXuWr4NeFFb2FJg2ZCFgZLU5DVR. iZDsPmFh4yB9p_AZbInls1CVOCFFU1ki7Do.sB8Cr2ey3wI47Lqkv8qJG7On4CLL07B9mYDH8OTD 4.JncEkvzQq.nuuDuDNSfi8DEFtTdfzXwAQLKQqQaGyYS9ZaNn3nksVubofck7p0l9WCaBqj_p_j G03nOuBBh0j71KNa4wEQL3ViUji9SGH3cgiGs.dAW7BywVIxc5J1vOy091B2cUjnTjL6dasBA0V. 2ZMujPNHHwUrEVFsrmTP2Ubcso0m.QSz2_fU8aHcCNHv5mMTGeF2949ZOM9Wlt.UWhVFsvnXnj56 0heQK1eAgVaZCygLkv9fgSI.CSEag23W.3SNUAxtvsxXAyAIcsqcF_kw0JlPfK0n_iyiBJcQ6ZhO xQAiaJHtRC8PxCsY6hWD4XmG7_BH8t_.J0E3eMkTF1j5vlnLLCAyn5f1PXC6_aXWGDBvCfxzHCSb 4ArLjUAS2BMm6aubx4xfWmInqykFax.uWF_dLcLhJ. X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Sun, 28 Nov 2021 13:10:33 +0000 Original-Received: by kubenode515.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 60d7e1e334d1414298c982e9f6d7f1d3; Sun, 28 Nov 2021 13:10:30 +0000 (UTC) In-Reply-To: <83pmqkwi6r.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 28 Nov 2021 14:58:20 +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.186.204; envelope-from=luangruo@yahoo.com; helo=sonic310-23.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=unavailable 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:280405 Archived-At: Eli Zaretskii writes: >> Hmm, thanks. One small question though: what should I do in order to >> make a window's cursor invisible? > Prevent display_and_set_cursor from being called, I presume? What if the cursor is already displayed? Is it OK to call erase_phys_cursor from redisplay_window? > There's also set_cursor_from_row, which calculates where to display > the cursor, and something should be done about that to indicate that > the cursor is not shown at all. set_cursor_from_row can just immediately return if I indicate that the cursor is invisible because point is before or after window start, correct? > display_and_set_cursor is also called from dispnew.c, so I'm not sure > redisplay_window alone will be enough. Hmm, thanks, I think I might put that logic in display_and_set_cursor instead. > And why only "before window start"? what about beyond window's end? I don't know how to get that information inside redisplay_window. AFAIU, it's not available until redisplay completes. > I think you need to add something to the struct window's 'cursor' and > 'phys_cursor' members. Okay, I'll do that. > You cannot express coordinates outside of the window as X/Y. I meant "X/Y" question as in a question that goes somewhat like this: - User wants to do X. - User doesn't know how to do X, but thinks they can fumble their way to a solution if they can just manage to do Y. - User doesn't know how to do Y either. - User asks for help with Y. - Others try to help user with Y, but are confused because Y seems like a strange problem to want to solve. - After much interaction and wasted time, it finally becomes clear that the user really wants help with X, and that Y wasn't even a suitable solution for X. I hope this isn't the case here, but I can't explain what the "X" here is in terms more specific than "I want the ability to have point outside the window". Thanks in advance.